Description
Provides HTTP interface for all manager services data layer.
While acting primarily as a communication channel between client (dashboard) and system, it may also be used for campaigns tasks consumption (by manager consumer).
Scheduler API
Returns a list of campaign_request to be executed on the same cluster on behalf of which the request was made (by manager-consumer).
Input
When request is made, a batch of campaign request entities is prepared to be returned to the client. Since they are being immidiately removed from the database (mongo), they are put into the Redis in case of response will not make it back to the client.
This way, whenever the client marks his requst with a retry flag, server will immediately look for the data in the Redis and return it back if found.