Sidekiq provides a number of public APIs for various functionality.
- Middleware
- Lifecycle Events
- Data API
- Components
Middleware run around the the client-side push and the server-side execution of jobs. This allows plugins which mutate job data or provide additional functionality during the executing of specific jobs.
With lifecycle events, Sidekiq plugins can register a callback upon startup
, quiet
or shutdown
.
This is useful for starting and stopping your own Threads or services within the Sidekiq process.
The code in sidekiq/api
provides a Ruby facade on top of Sidekiq's persistent data within Redis.
It contains many classes and methods for discovering, searching and iterating through the real-time job data within the queues and sets inside Redis.
This API powers the Sidekiq::Web UI.