Skip to content

devsahm/laravel-pub-sub

Repository files navigation

Pub/Sub system

This is a Pub/Sub System aimed to create subscription of all events of topics and publish the event to the topic

Stack

  • 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.

Features

  • 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 install

Create .env file

cp .env.example .env

Start the publisher server (you can use any port of your choice, pass your desired port number after the --port=)

php artisan serve --port=8002

Start the subscriber server also using any port ( --port=)

php artisan serve --port=8000

Run Test

php artisan test

Start queue

php artisan queue:work

Documentation

The Postman collection is at the root of the project directory or get it HERE

About

This is a Pub/Sub System aimed to create subscription of all events of topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages