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

[Host.Outbox] optimistic mode - hybrid strategy #316

Open
dundich opened this issue Oct 4, 2024 · 1 comment
Open

[Host.Outbox] optimistic mode - hybrid strategy #316

dundich opened this issue Oct 4, 2024 · 1 comment
Assignees

Comments

@dundich
Copy link
Contributor

dundich commented Oct 4, 2024

Is it often the case that the bus is unavailable?
if the sequence of messages is not of particular interest. Maybe we should provide for writing to the outbox only when the bus is unavailable (exception) - and add an option with a hybrid strategy?

ps. hybrid strategy - just a “save -> don't save” checkbox in the outbox if the bus is unavailable

Originally posted by @dundich in #313

@dundich dundich changed the title Is it often the case that the bus is unavailable? [Host.Outbox] optimistic mode - hybrid strategy Oct 4, 2024
@dundich
Copy link
Contributor Author

dundich commented Oct 17, 2024

Interception points

  1. current (classic) mode (PRE): first outbox -> transport (https://microservices.io/patterns/data/transactional-outbox.html)
  2. or optimistic mode (POST): first transport -> if error -> outbox ([Host.Outbox] optimistic mode - hybrid strategy #316)
  3. CircuitBreaker (CRON?) : if no healthcheck-> outbox -> transport #251 Health check circuit breaker #282

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

No branches or pull requests

2 participants