Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

handling concurrent requests and race conditions is rails using redis

$
0
0

I am building an application with ruby on rails as a part of a hiring process. This is my first time using ruby or rails.
It's required to handle concurrent requests while saving to DB i.e.: if the server is hosted on many machines and they sent requests simultaneously it should be correctly ordered. I thought to use Redis as a queue to store requests and handle them one by one, but unfortunately, I did not find enough resources or tutorials on how to implement that.
Can someone explains how this is implemented or show me a better way to achieve the requirement?


Viewing all articles
Browse latest Browse all 873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>