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

Replace InMemoryServiceInstanceStateRepository with real database #324

Open
royclarkson opened this issue Jan 28, 2020 · 4 comments
Open

Comments

@royclarkson
Copy link
Member

This implementation was meant to be obviously the wrong thing to use in a production application, but now it's causing problems with Reactor and BlockHound (see #313). Let's replace it with a real Reactive data repository and deprecate this one (or remove it entirely).

@buddyavis
Copy link

Is it recommended to persist SI state in MongoDB through Mongo CRUD service REST API?

@Albertoimpl
Copy link
Member

Hi, Siva.
We have a sample app that showcases how to create the ServiceInstanceRepository using R2DBC: https://github.com/spring-cloud-samples/spring-cloud-app-broker-samples#service-instance-state-repositories but it is up to you to choose the database that suits your needs. MongoDB is a perfectly valid option, but if you don't have mongo, you could try R2DBC. Last, if you can't use any reactive driver nor compatible database, you can use what is shown on at the end of that sample app. However, it has some downsides that are explained in the notes.
Let us know if that helped!

@buddyavis
Copy link

Thank you @Albertoimpl

@spikymonkey
Copy link
Contributor

Discussed today... We think a nice way to solve this would be to autoconfigure a data store based on database starter availability on the classpath.

@spikymonkey spikymonkey added this to the 1.2.0-M3 milestone Jun 11, 2020
@spikymonkey spikymonkey removed the 1.2.x label Jan 14, 2021
@spikymonkey spikymonkey modified the milestones: App Broker 1.4.0-M2, App Broker 1.4.0 Dec 7, 2021
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

No branches or pull requests

4 participants