Rails 4 apps backed by Sidekiq + Clever Cloud.

At Clever Cloud, we want developers to be happy. To achieve that we try to adapt as quickly as we can to users needs. The other day, someone asked for Sidekiq support for their Rails applications.

What's Sidekiq

Sidekiq is a solution to run long background tasks in ruby. It works by running a background server and treating jobs stored in a Redis. It's helpful to delay tasks, take a long API call to the background while still be able to answer to a request in a timely manner.

How do I use Sidekiq on Clever Cloud?

First, you need a Redis instance. Start by provisioning a redis addon on Clever Cloud. Remember to link the redis add-on to your application in the Console.

The redis addon provides a REDIS_URL environment variable which will be used by sidekiq to connect to the redis addon.

  • The next and only step is to add/modify the clevercloud/ruby.json file to add the
    "sidekiq" flag:
{
   "deploy": {
      "sidekiq": true
   }
}

Then commit and push your application, and you should be all set!

Blog

À lire également

SuperBOL: The COBOL revolution in the Cloud

COBOL, a programming language that is over 60 years old, continues to power a large proportion of the IT systems of the world's major companies, particularly in the financial and insurance sectors.
Features

Clever Cloud welcomes the first startups to the UP Programme

Clever Cloud is proud to announce the arrival of the first five startups selected to join its UP Programme, an initiative dedicated to supporting young technology companies in their growth phase.
Company

A minor update resulted in a cascade of errors: how it went wrong, what we’ve learnt

On Friday, August 2nd, 2024 Clever Cloud’s platform became very unstable, leading to downtime of varying duration and scope, for customers using services on the EU-FR-1 (PAR) region, and remote zones depending on the EU-FR-1 control plane (OVHcloud, Scaleway, and Oracle). Privates and on-premise zones weren’t impacted.
Company Engineering