3 ms·
Ah, gotcha, makes sense. Thank you for the explanation. Did you guys treat Solr as a source of truth? Curious about use cases in which client updates a record a
by andreygrehov 9y ago
Ah, gotcha, makes sense. Thank you for the explanation. Did you guys treat Solr as a source of truth? Curious about use cases in which client updates a record and then immediately queries it through something like Solr.
- parasubvert 9y agoYeah we used The Solr real time get handler and a few caching tricks - we updated the cached result set for the client so we didn’t need to request Solr immediately. If I recall the cache had a TTL of about 30 seconds that could be bypassed with a refresh button for super users - intended to shock absorb the system for common queries. Generally it took a second for new data to be queriable. For the writes to Solr we listened for Hibernate events. It’s been 5 years or so and I don’t think this has changed much with either Elastic or Solr product-wise