hngprojects / hng_boilerplate_nextjs

https://deployment.nextjs.boilerplate.hng.tech
206 stars 265 forks source link

[Improvement]: Update Subscriber Logic to Listen to Redis Pub/Sub Instead of Database #1501

Open Olasam-web opened 2 months ago

Olasam-web commented 2 months ago

Description

Update the existing subscriber logic to listen to messages from Redis Pub/Sub channels instead of polling the database.

Acceptance Criteria

  1. Modify the code to subscribe to a Redis Pub/Sub channel and receive messages directly from Redis.
  2. Ensure proper handling of incoming messages, including deserialization and processing.
  3. Validate that the subscriber correctly receives and processes messages from the Redis Pub/Sub channel.

Links

| FIGMA LINK

Images

image