Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Cap for outbox pattern #87

Open
blenddata opened this issue Apr 14, 2021 · 3 comments
Open

Implement Cap for outbox pattern #87

blenddata opened this issue Apr 14, 2021 · 3 comments
Labels

Comments

@blenddata
Copy link

Hi nice work here
can you explain how to add Cap before publishing event to the message broker to enable outbox pattern in your code?
I assume it has to be added in your IExternalEventProducer to publish in Cap instead of Kafka the Cap send it to Kafka after persist it into database but don't have any idea where to consume it, if you don't mind give me some guide
Thanks in advance

@oskardudycz
Copy link
Owner

oskardudycz commented May 1, 2021

@blenddata I apologise for the late answer. Indeed adding implementation of IExternalEventProducer is a valid option.

The other is to create a CapPipeline as I did for EventStorePipeline. Your implementation would need to implement custom Handle with storing to Cap. Thanks to that, each event published to IEventBus will be automatically stored there.

Btw. I didn't know Cap before. Looks interesting. I also plan to write my Outbox implementation but didn't have enough time yet.

@blenddata
Copy link
Author

@oskardudycz thank you, I think the pipeline is the better option, which every notification will be publish into cap and outbox will be implemented automatically.
I'll do that and keep you inform about the result.

@oskardudycz
Copy link
Owner

Sounds good. 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants