Periodic jobs when running multiple servers

前端 未结 3 943
长发绾君心
长发绾君心 2021-01-12 19:52

I\'m planning to deploy an app using Play and have never used their \"Jobs\" before. My deploy will be large enough to require different Play servers load-balanced, but my c

3条回答
  •  攒了一身酷
    2021-01-12 20:27

    You can use a database flag as described here: Playframework concurrent jobs management by Pere Villega for two jobs.

    But I think the solution from Guillaume Bort on Google Groups to use Memcache is the best one. There seems to be a module for Play 2: https://github.com/mumoshu/play2-memcached

提交回复
热议问题