Skip to content

Conversation

groyoh
Copy link
Contributor

@groyoh groyoh commented Oct 14, 2025

Context

Today, we are using Sidekiq to handle our background jobs. While it works well for most of our needs, we are reaching some limitations with the open-source version, particularly around job reliability during high load.

Sidekiq uses BRPOP to fetch a job from the queue in Redis. This is very efficient and simple but it has one drawback: the job is now removed from Redis. If Sidekiq crashes while processing that job, it is lost forever.

Description

getlago/lago-api#4482 added sidekiq-pro as an optional dependency which can be install when building the Docker image.

This allow to easily start the development container with or without Sidekiq Pro by specifying BUNDLE_WITH and BUNDLE_GEMS__CONTRIBSYS__COM:

BUNDLE_WITH='sidekiq-pro' BUNDLE_GEMS__CONTRIBSYS__COM='xxx:yyy' lago up -d api api-worker

@groyoh groyoh requested review from IxDay and jdenquin October 15, 2025 09:16
@groyoh groyoh marked this pull request as ready for review October 15, 2025 12:00
@groyoh
Copy link
Contributor Author

groyoh commented Oct 15, 2025

Closing this as it's probably better to rely on the .env.development file.

@groyoh groyoh closed this Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant