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

Allow synchronous publishing in Nats #116

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

kobergj
Copy link
Contributor

@kobergj kobergj commented Jul 5, 2023

We ran into problems when the nats server is crashing. Clients would keep the events in their queue waiting for nats to come up again. (This is the point in async publishing.) However if the clients get restarted while nats is gone the events will be lost and there is no way to retrieve them.

This adds a configuration option to do synchronous publishes instead. The default is still asynchronous so there are no breaking changes.

@Davincible
Copy link
Contributor

Nice, looks good. Thanks

@Davincible Davincible merged commit ea37907 into micro:main Jul 6, 2023
@kobergj kobergj deleted the NatsAllowSyncPublishing branch July 7, 2023 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants