Skip to content

akhilesh-saipangallu/redis-streams-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redis Streams Example

Steps to Run the Project

1. Setup a Virtual Environment:

python3 -m venv .env
source .env/bin/activate

2. Install Dependencies:

pip install -r requirements.txt

3. Run the Publisher:

python publisher.py

This will publish a message every second to the Redis stream.

4. Run the Consumers Separately:

Open two separate terminal windows and run:

python consumer_1.py

python consumer_2.py

Each consumer will consume messages from the stream.

Notes

  • Ensure that Redis is running before executing the scripts.
  • The consumers will receive the same messages separately.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages