-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
WHAT TO DO:
- When requesting data from the user microservice, there will be instances that we won't need to get users that already exist in the UserReport DB. This task requires you to only request users that do not exist in your database already.
- Look into Kafka Streams or Kafka Observables for this task, so that we can filter the users we need on the fly right when consuming the user data.
RESOURCES:
(KAFKA-OBSERVABLES)
- https://github.com/ghermeto/kafka-observable
- https://www.linkedin.com/pulse/nodejs-kafka-easy-peasy-observables-guilherme-hermeto/
- https://www.npmjs.com/package/kafka-observable
(KAFKA-STREAMS) - https://www.npmjs.com/package/kafka-streams
- https://github.com/nodefluent/kafka-streams/blob/master/docs/quick-start.md
DONE:
- You are able to request users from the user microservice, and will only persist the users that don't exist in the UserReport DB.