Sidekiq is a popular library for background job processing in Ruby on Rails applications. It uses Redis as a backend to store and manage the job queue, providing efficient and scalable processing. Sidekiq allows developers to define asynchronous tasks that will be executed in the background, freeing the main thread to handle other requests. It supports advanced features such as job scheduling, prioritized queuing, and failure retention, ensuring reliability and error recovery. With its simple and easy-to-use interface, Sidekiq has become a popular choice for handling time-consuming tasks or tasks that do not require an immediate response, thereby improving the user experience.
To monitor Sidekiq in the One Platform:
- Go to the product application where you want to add Sidekiq as a dependency.
- Click on the "Products" menu, then click on the desired product card, and finally, click on the name of the application you want.
- Under "External Dependencies," located just below the latency graph, you can add or search for an already registered dependency. To search for a dependency, type its name in the search field. To add a new one, click on the green button with a plus symbol (+).
When you click on "Add," a modal will appear. In this modal, you will name your queue and choose the Environment. In the "Check type" field, select the option "Queue," and in the "Method" field, choose "Sidekiq." After selecting the method, a field for "Healthcheck URL" will appear.
In the Queue size field, enter the maximum desired queue size. Select "Skip SSL Validation" to ignore the existence of the SSL certificate. In the Busy Size, Scheduled Size, and Connected Clients fields, fill in according to the desired number to trigger alerts for incidents.
Check the example string for Sidekiq below:
For questions, inquiries, or technical support, please contact us through the chat on the ElvenWorks platform or on our website.