This is a Pub/Sub System aimed to create subscription of all events of topics and publish the event to the topic
-
Laravel - Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
-
Redis- The open source, in-memory data store used by millions of developers as a database, cache, streaming engine, and message broker.
- Create subscription to all events of topics
- Publishing event to a topic
Clone the project
git clone https://github.com/devsahm/Pub-Sub-System
cd ulession-task
composer installCreate .env file
cp .env.example .envStart the publisher server (you can use any port of your choice, pass your desired port number after the --port=)
php artisan serve --port=8002Start the subscriber server also using any port ( --port=)
php artisan serve --port=8000Run Test
php artisan testStart queue
php artisan queue:workThe Postman collection is at the root of the project directory or get it HERE