Rails 4 apps backed by Sidekiq + Clever Cloud.

rails4 sidekiq 1

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

Kubernetes in production: how to keep the standard without taking on all its operations

Kubernetes has become a standard for running containerised applications, structuring distributed architectures and integrating into cloud-native environments.
Company

Clever Cloud Takes Control of Its IP Prefix Announcements

Since January 22, 2025, Clever Cloud has been announcing its own IP prefixes on the Internet in our Paris region. We now manage this critical part of our network infrastructure internally, rather than delegating it to a third party.
Engineering

CKE in public beta: managed, sovereign, and properly integrated Kubernetes

Clever Cloud was founded in 2010. At that point, Docker did not exist, and Kubernetes even less. The problem, however, was already there: running our first customers' applications reliably, in isolation, and predictably.
Company Engineering Features