Skip to content

OT-UserSession (5) #3

@frlzjosh

Description

@frlzjosh

WHAT TO DO:

  1. Creating a microservice called UserSession in any framework/language with the approval of the majority of the OFF-TOP team.
  2. 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.
  3. Create a Consumer called 'NewFocusScore', and when you subscribe to this event you will pass the data into your service called insertSession()
  4. 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.
  5. Insert these objects into mongodb whenever you receive them

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions