#@nestjs/cqrs external eventbus

7 messages · Page 1 of 1 (latest)

prime wing
#

Hello,

I am using @nestjs/cqrs package and I would like to use redis/kafka or any other pubsub for the CQRS EventBus.

Is it possible?

This is not docummented (https://docs.nestjs.com/recipes/cqrs) and the only ressources I found were obsolete.

daring pilot
#

Hi, I'm having the same issue. Please let us know if you find anything

full tiger
#

I am a bit confuse, wouldn't you use something like RabbitMQ instead of K/V store like redis?

daring pilot
#

Simply because My service doesn't need that level of complexity. It's too small to justify setting up redis or rabbitmq. Also I think my question has changed. I looked at the cqrs module code and found that the underlying mechanism for the eventBus can be managed by passing a different publisher.

#

I just want to ensure that some event handlers are executed in a certain order. by modifying the DefaultPubSub class