Mutex for Rails Processes

前端 未结 3 1084
遇见更好的自我
遇见更好的自我 2021-01-03 02:22

When deploying Rails via Passenger or Mongrel you have multiple instances of the application running. What is the best practice or pattern to establish a mutex on shared res

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-03 02:47

    You could use a background job scheduler to do the actual work, for example delayed_job (http://github.com/tobi/delayed_job).

提交回复
热议问题