nestjs / docs.nestjs.com

The official documentation https://docs.nestjs.com 📕
MIT License
1.19k stars 1.71k forks source link

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

Open kamilmysliwiec opened 4 years ago

kamilmysliwiec commented 4 years ago

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 commented 4 years ago

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

kodeine commented 3 years ago

Is there any update on this?

delucca commented 3 years ago

no updates on this?

petervankleef commented 3 years ago

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?

bradsheppard commented 3 years ago

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.

goznauk commented 2 years ago

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

ScreamZ commented 1 year ago

@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