# Laravel Queues

> Configure Laravel queues for background jobs such as email sending and workflows in a self-hosted Advanzo CRM installation.

> **Info:** On the hosted version at [advanzo.app](https://advanzo.app) this is already configured. This page applies to Enterprise installations on your own infrastructure.

Advanzo CRM has to handle resource-intensive tasks, such as sending emails, executing workflows and processing Zapier zaps. Behind the scenes, it uses Laravel Queues to run these tasks in the background.

If you have set up [workflows](https://www.advanzo.ch/docs/sections/workflows), for example sending an email when a contact is created, you may notice a slight delay before the contact appears on your screen. The reason for the delay is that the queue is not configured in Advanzo CRM.

By default, queues are not enabled in Advanzo CRM installations, because configuring them may require server-level access, typically with root permissions.

Advanzo CRM supports two queue drivers: **database** and **redis**. Both can be configured in your `.env` file, as in other Laravel installations.

However, **we strongly discourage using the database driver** for anything other than development and testing. If you already have redis installed on your server, we recommend configuring the redis driver for improved performance.

To better understand and configure Laravel Queues, refer to the [Laravel Queues](https://laravel.com/docs/10.x/queues) documentation.

> **Warning:** Configuring Laravel Queues requires editing the `.env` file. [Read more](https://www.advanzo.ch/docs/sections/config#edit-env-file) about editing the `.env` file.
