Skip to content

FahmyChaabane/dummy-microservices-nest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

microservices in NEST :

Redis VS RMQ : https://www.educba.com/rabbitmq-vs-redis/

By default, Redis implementation is send and forget, Rabbitmq does persist the data when the consumer is busy or down. also, Redis dispatch (the term is "multiplexing" i believe...) between all subscribers sharing the same pattern (same queue name too). RabbitMq does not, it just loadbalances between consumers. WHY ? READ about this : https://stackoverflow.com/questions/10620976/rabbitmq-amqp-single-queue-multiple-consumers-for-same-message it's just Nestjs implementation : https://stackoverflow.com/questions/62949674/listening-to-multiple-rabbitmq-queues-with-nestjs

hint to allow mutiple transports for a nestjs microservice : nestjs/nest#444 & https://github.com/nestjs/nest/blob/master/sample/03-microservices/src/main.ts

to run supportive containers

docker container run -d --name some-rabbit -p 5672:5672 -p 15672:15672 rabbitmq:3-management // second port is for the web gui docker container run -d --name some-redis -p 6379:6379 redis:alpine // i downloaded https://snapcraft.io/install/redis-desktop-manager/ubuntu as gui

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published