Skip to content

Queues

Coherence supports the creation and management of queues for your services. Queues are used to manage asynchronous tasks, such as processing background jobs, sending emails, or handling notifications.

Redis is used as the default queue provider in Coherence, and can be used to create multiple queues for different tasks or services.

Creating a queue

To create a queue in Coherence, follow these steps:

  1. Navigate to your environment homepage, open the Services tab, and click New service.
  2. Scroll down to the Cache section and click Redis.
  3. Fill in the required fields to configure your Redis service, including the service name, version, and engine.
  4. Click Create service to provision the Redis service.

    A cropped screenshot shows the "New Redis service" dialog.

  5. Once the Redis service has been provisioned, your application can access Redis using the system environment variables provided in the Variables tab on the environment homepage.

    A cropped screenshot shows five environment variables: MY_REDIS_QUEUE_PORT, MY_REDIS_QUEUE_IP, MY_REDIS_QUEUE_HOST, MY_REDIS_QUEUE_HOST, and REDIS_URL.

For more information on using system environment variables in your application, see the environment variables documentation.