mosquito-cr / mosquito

A background task runner for crystal applications supporting periodic (CRON) and manually queued jobs
MIT License
227 stars 24 forks source link

Add ability to configure global Redis namespace prefix #133

Closed dammer closed 6 months ago

dammer commented 6 months ago

Currently, there is no way to configure a global Redis namespace prefix in Mosquito. This poses challenges when running multiple instances of the application in cloud environments like AWS with shared Redis instance. Since I want each application instance to have its own execution context, we are currently facing an issue of Redis worker overlap between containers, which can lead to tasks being unexpectedly executed from other containers.

Please include some details:

Crystal version: 1.11.2 Mosquito Shard version: 1.0.2

dammer commented 6 months ago

Many thanks to @robacarp for the quick response and helpful remarks. It's great to improve such an excellent product!