ebubekirdinc / SuuCat

SuuCat is a sample containerized application consisting of several microservices. Its purpose is to use microservice patterns in practice.
MIT License
116 stars 33 forks source link

Question about Saga #9

Open ayazzali opened 10 months ago

ayazzali commented 10 months ago

What if while creating order rabbit will be rebooting or smth - so that means OrderCreatedEvent will not be created created and order will always stay at Pending status.

PS just learning sagas and stuff. Your repo is excellent for learning. Thanks PPS dint see some simple ui so we can easily create user product and order it

ebubekirdinc commented 10 months ago

To make sure it is sent, the Outbox Pattern must be applied to send "at least once". I will use it in this project to show the outbox pattern in the future. You can use Swagger UI to send requests. I also plan to share Postman collection when it matures.

Thanks.

elenacalugaru commented 9 months ago

Hello, I have a question, for eg when OrderCompletedEvent is published by the statemachine to both Order and Notification services shall consume the same event, but if Order consumes first the message then it wont be consumed by Notification because once it is consumed it is deleted from the queue.

ebubekirdinc commented 9 months ago

Yes, in this case it should be sent as an event, not as a command.

akash-karve-dev commented 9 months ago

To make sure it is sent, the Outbox Pattern must be applied to send "at least once". I will use it in this project to show the outbox pattern in the future. You can use Swagger UI to send requests. I also plan to share Postman collection when it matures.

Thanks.

I am eagerly waiting for outbox/inbox pattern. I liked your saga implementation

ebubekirdinc commented 9 months ago

To make sure it is sent, the Outbox Pattern must be applied to send "at least once". I will use it in this project to show the outbox pattern in the future. You can use Swagger UI to send requests. I also plan to share Postman collection when it matures. Thanks.

I am eagerly waiting for outbox/inbox pattern. I liked your saga implementation

Thanks. I will develop the inbox/outbox pattern soon.

Misiu commented 6 months ago

Hi there, any update on the inbox/outbox pattern? I'm currently learning MT with Sagas and your repository is great place for learning :) Thank you for sharing the code 👍👏💪