I am creating a rails app where users can vote on an item every 15 seconds. I want the same item to show up for every user on this website. Basically, I want each session to be synchronized in the content shown. There are two ways that I believe this can be done, but I am not totally sure about the implementation of them. One way is to define a global variable for such an item every 15 seconds. This global variable needs to be the same across all sessions on this website. Another way is to have some background process or main thread running in the back that chooses this item every 15 seconds, and each session gets the current item from this background process. Does anyone have any ideas on how I can do this? Thanks in advance!I am creating a rails app where users can vote