Reputation: 21
I have a spring boot app which is used to load data into solr during post construct and retrieve accordingly but i want to make sure solr server is up and running before spring boot app comes up. How can i achieve that? Is there a way to load solr instance in java?
Upvotes: 0
Views: 289
Reputation: 52902
You can use the EmbeddedSolrServer - but that's going to limit your architecture and performance early and is not recommended for production use.
By keeping Solr separate from your application you can scale it as necessary, both to achieve clustered performance and better uptime / fail over support.
Upvotes: 0