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

Persistence changes #4024

Merged
merged 22 commits into from Mar 27, 2024
Merged

Persistence changes #4024

merged 22 commits into from Mar 27, 2024

Conversation

danielmarbach
Copy link
Contributor

@danielmarbach danielmarbach commented Mar 21, 2024

This PR makes the following changes to the persistence seam:

  • We can now guard against accidentally restarting the embedded RavenDB server while we are shutting down
  • The primary RavenDB persister now uses IRavenDocumentStoreProvider model like the audit persister had, which solves the initialization problem that we previously needed the custom IHostLifetime implementations to work around.
  • Other changes have been made to align persistence concepts between the primary and audit instances, and to better align how the persisters interact with IHostApplicationBuilder being used to bootstrap the instances.

@mauroservienti mauroservienti changed the title Guard against accidentally restarting the embedded ravendb server while we are shutting down Guard against accidentally restarting the embedded RavenDb server while we are shutting down Mar 22, 2024
@bording bording changed the title Guard against accidentally restarting the embedded RavenDb server while we are shutting down Persistence changes Mar 27, 2024
@bording bording merged commit df9a6cf into master Mar 27, 2024
19 checks passed
@bording bording deleted the ravendb-embedded-shutdown branch March 27, 2024 23:18
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.

None yet

3 participants