I need to resolve this task.
I need to develop a service, which delivers HTTP GET requests with guarantee using EventMachine.
- Service has API /send? url=http%3A%2F%2Fya.ru, where url it is http request which is need to be delivered/
On every request the API responds at once 200 with body OK. After this, the service tries to deliver all requests. If answer 200 is received, then the request is considered as delivered. If the request failed, then try to repeat later.
- Service has function /stats, which shows a diagram with 'highcharts' where we see three lines - received requests, successful requests, failed requests.
The step is 1 second. The code should be covered with tests rspec/cucumber. Is it possible if the service is not persistent, it will loose data after restart?
Any help will be greatly appreciated. I don't know where to begin. But I have some experience with building applications using RoR. I'll be pleased if someone can give me really similar task which is solved already.