dxe / adb

Activist Database Project
11 stars 5 forks source link

Background job distribution & locking #161

Open jakehobbs opened 3 years ago

jakehobbs commented 3 years ago

Currently background jobs are only ran on the main instance of the ADB. This is enabled via an environment variable.

It would be more robust to have some sort of distribution system for background jobs. Maybe this could be done via a simple "jobs" table in the database, some sort of locking mechanism, or a message broker.

jakehobbs commented 3 years ago

This looks interesting: https://github.com/ehsaniara/gointerlock