Alexey MetelevAvoid long-running sidekiq jobs. Use Batches with Callbacks insteadThe Sidekiq jobs can be killed any time because of deployment or machine restart. In this case, your job will be pushed back into the…1 min read·Mar 4, 2021----
Alexey MetelevMake your Sidekiq job idempotent and transactionalIdempotency means that your job can safely execute multiple times. This is important because your job might be half-processed, throw an…1 min read·Feb 26, 2021----
Alexey MetelevDon’t use Sidekiq default retry policyBy default, Sidekiq retries jobs 25 times during ~21 days. So it’s better to always set the retry option explicitly.2 min read·Feb 26, 2021----