Introduction
This wiki explains the design for decoupling the Druid service calls by calling the Sunbird-Obsrv API service.
Background & Problem Statement
At the moment LERN Batch Service is connecting to the Druid data store for fetching collection summary aggregate data using druid query on "audit-rollup-syncts" and "telemetry-events-syncts" data sources.The new design will fetch the same information by connecting with the API service owned by obsrvBB.
Design
To decouple the above druid calls,
Solution 1:
We can call the existing API service designed by obsrvBB by building the required request payload in LERN batch servicewhich in turn connects to the druid data store to query "audit-rollup-syncts" and "telemetry-events-syncts" data sources which will give the collection summary aggregate data as the response back to the LERN batch service which can be used for further computations.