-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
WHAT TO DO:
- Creating a microservice called UserSession in any framework/language with the approval of the majority of the OFF-TOP team.
- Migrate the services living in location to your microservice, and make sure that you're able to insert new session as well as get all session data from the database connected to it. https://github.com/Off-Top-App/off-top-python/blob/master/backend-services/Services/UserSessionService.py. Converting Python to Kotlin syntax.
- Create a Consumer called 'NewFocusScore', and when you subscribe to this event you will pass the data into your service called insertSession()
- Create a Producer called 'EndSession', and which requires Kafka streams to compute the session duration of that user's recording session as well as sending that user's current session objects to another microservice.
- Insert these objects into mongodb whenever you receive them