User Cache Updater
'user-cache-updater-2.0' job is used to generate the user-metadata information which is complied by fetching information from various Cassandra tables and are stored into the Redis cache. This user-metadata information is used by few exhaust reports.
Additional Reading:
Design guide:
Configuration variables:
Variable | Default Value | Purpose |
---|---|---|
kafka.input.topic | {{env}}.telemetry.audit | Kafka topic from which messages/events are read to be processed. |
kafka.groupId | {{env}}-user-cache-updater-group | Kafka input topic group Id |
redis-meta.database.userstore.id | 12 | Redis index to which user metadata is to be written to for caching |
redis-meta.database.key.expiry.seconds | 3600 | Redis cache expiry in seconds |
user-read.api.url | "/learner/private/user/v1/read" | API Endpoint for fetching User profile details |
regd.user.producer.pid | learner-service | used to specify service providing user microservice |
user.self.signin.types | ["google","self"] | used to specify self sign-in modes available in application |
user.validated.types | ["sso"] | used to specify sign-in modes where user validation is signed from third party system |
user.self.signin.key | "Self-Signed-In" | |
user.valid.key | "Validated" | |
user.read.url.fields | "locations,organisations" | used to specify the user metadata properties that are to be cached to Redis |
user.read.api.error | ["CLIENT_ERROR"] |
Sample event:
Source code:
Last updated