docs.nestjs.com icon indicating copy to clipboard operation
docs.nestjs.com copied to clipboard

CQRS - how to use external command/event/query bus

Open kamilmysliwiec opened this issue 4 years ago • 7 comments

I'm submitting a...


[ ] Regression 
[ ] Bug report
[ ] Feature request
[ ] Documentation issue or request (new chapter/page)
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Environment


For Tooling issues:
- Node version: XX  
- Platform:  

Others:

kamilmysliwiec avatar May 14 '20 07:05 kamilmysliwiec

Related to this issue https://github.com/nestjs/docs.nestjs.com/issues/957

kamilmysliwiec avatar May 14 '20 08:05 kamilmysliwiec

Is there any update on this?

kodeine avatar Dec 15 '20 15:12 kodeine

no updates on this?

delucca avatar Feb 20 '21 15:02 delucca

I'm also wondering if there's any update on this;

I have successfully been able to implement an external EventBus/Store via an extension on the EventBus, but am not able to the same for the CommandBus? I could share my EventBus extension, if it's needed (as an example) or if anyone is interested?

petervankleef avatar Jun 15 '21 09:06 petervankleef

I have an example repo which illustrates how this can be achieved using Kafka (see here https://github.com/bradsheppard/nest-cqrs-kafka-example). It would be good to have this in the docs though. I don't mind putting up a PR to add it.

bradsheppard avatar Aug 01 '21 21:08 bradsheppard

Also an example repo of external eventbus in use with REDIS here! Hope this help somebody :)

https://github.com/goznauk/nest-external-eventbus/tree/main/examples/simpleCqrs

goznauk avatar Jul 22 '22 05:07 goznauk

@kamilmysliwiec Do you expect to provide some example in a near future ? Sounds like a production grade feature. Neither intel with https://github.com/nestjs/docs.nestjs.com/issues/957

ScreamZ avatar Oct 06 '22 09:10 ScreamZ