New CDN iTaas
Log files can tell much about a system’s behavior in a production environment.
Extracting data from these files helps the decision-making process for both business
and development roadmap.
ITaaS Solution is a company focused on content delivery, and one of its largest
business challenges was CDN (Content Delivery Network) costs. Larger CDN costs
increase the final pricing for its customers, reduce profits, and make it difficult to enter
After extensive research from their software engineers and financial team, they obtained
an excellent deal from the company “minha cdn”, and signed a one-year contract with
ITaaS Solution already has a system capable of generating billing reports from logs,
called “Agora”. However, it uses a specific log format, different from the format used by
You have been hired by iTaaS Solution to develop a system that can convert log files to
the desired format, which means that at this moment they need to convert them from
the “minha cdn” format to the “agora” format.
This is a sample log file in the “minha cdn” format.
101|200|miss|"post /myimages http/1.1"|319.4
199|404|miss|"get /not-found http/1.1"|142.9
The sample above should generate the following log in the “Agora” format:
#Date: 15/12/2017 23:01:06
#Fields: provider http-method status-code uri-path time-taken
"minha cdn" get 200 /robots.Txt
100 312 hit
"minha cdn" post 200 /myimages 319 101 miss
"minha cdn" get 404 /not-found 143 199 miss
"minha cdn" get 200 /robots.txt
245 312 Refresh_hit
“minha cdn” will make log files through specific urls.
The specification requires you to implement a solution that receives as input an URL
(sourceUrl) and a destination file (targetPath). A sample call could be:
The Sourceurl parameter includes a file in the “minha cdn” format, and the output
specified in the targetpath parameter corresponds to the file that needs to be created in
the “agora” format.
A sample log file that can be used for testing is available here:
I also need a readme file explaining how to run/execute/test the new log format.Category
: IT & ProgrammingSubcategory
: Web developmentWhat is the scope of the project?
: Small change or bugIs this a project or a position?
: ProjectI currently have
: I have specificationsRequired availability
: Full timeExperience in this type of projects
: No (I haven’t managed this kind of project before)Roles needed