Ignoring Solr in a Ruby Heroku app if Solr is inaccessible

27 views Asked by At

I've got a simply Ruby app deployed on Heroku, which uses the WebSolr add-on to support searchable indexes. If and when WebSolr is down, the app stops working with 503 service unavailable errors. I wouldn't mind if the app continued to work and indexing didn't work temporarily. Is it possible to ignore Solr outages so that the ruby app continues to function?

1

There are 1 answers

1
Rob Sears On

You could always set up something like Sidekiq and push your updates into a queue. Then you could have failed requests retry until they succeed (or expire). That way when connectivity is restored, all of your queued updates would dump into Solr automatically.