---
title: "Ongoing Tasks: Queue Sink Overview"
description: "Ingest messages from Kafka, RabbitMQ, and Azure Service Bus into RavenDB documents using queue sink tasks with configurable processing scripts."
url: "https://docs.ravendb.net/7.2/server/ongoing-tasks/queue-sink/overview"
version: "7.2"
---

# Ongoing Tasks: Queue Sink Overview

> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

## Ongoing Tasks: Queue Sink Overview

> **Note**
>
> - Message brokers are high-throughput, distributed messaging services that
>   host data they receive from **producer** applications and serve it to
>   **consumer** clients via FIFO data queues.
> - RavenDB 5.4 and on can function as a *Producer* in this architecture.  
>   RavenDB 6.0 and on can also function as a *Consumer*.
>   > **Info**
>   >
>   > This overview and the other pages in the Queue Sink section explain
>   > **only** RavenDB's role as a *Consumer* through the implementation of
>   > a sink connector.  
>   > To learn about RavenDB's role as a *Producer* please refer to the
>   > [Queue ETL section](https://docs.ravendb.net/7.2/server/ongoing-tasks/etl/queue-etl/overview.md).
> - RavenDB can run an ongoing Sink task that reads JSON formatted messages
>   from broker queues, apply a user-defined script that can, among other things,
>   construct documents from the retrieved messages, and potentially store
>   manufactured documents in RavenDB's database.
> - Supported message brokers currently include **Apache Kafka**, **RabbitMQ**, and **Azure Service Bus**.
>
> > **Info**
> >
> > Using RavenDB as a message broker sink can benefit users who want to combine
> > Kafka, RabbitMQ, or Azure Service Bus's immense capability to collect and stream data with RavenDB's
> > ability to process this data, reveal and exploit its value.
>
> - In this page:
>   - [Supported Message Brokers](#supported-message-brokers)
>   - [Task Statistics](#task-statistics)
>   - [Licensing](#licensing)

## Supported Message Brokers

Message brokers currently supported by RavenDB include **Apache Kafka**, **RabbitMQ**, and **Azure Service Bus**.

![Ongoing Tasks](https://docs.ravendb.net/assets/images/overview_ongoing-tasks-9b8c237d76005f6a9aa3880df2a88853.png)

1. Open the **tasks menu**.
2. Open the **ongoing tasks** view.
3. Create a new **database task**.  
   ![Define Queue Sink Task](https://docs.ravendb.net/assets/images/overview_task-selection-6637aef00ea2cebfd47f5a324db1f874.png)
   - **A**. **Kafka Sink**  
     Click to define a [Kafka Queue Sink task](https://docs.ravendb.net/7.2/server/ongoing-tasks/queue-sink/kafka-queue-sink.md).
   - **B**. **RabbitMQ Sink**  
     Click to define a [RabbitMQ Queue Sink task](https://docs.ravendb.net/7.2/server/ongoing-tasks/queue-sink/rabbit-mq-queue-sink.md).
   - **C**. **Azure Service Bus Sink**  
     Click to define an [Azure Service Bus Queue Sink task](https://docs.ravendb.net/7.2/server/ongoing-tasks/queue-sink/azure-service-bus-queue-sink.md).
4. Open the **info hub** for information about ongoing tasks and this view.  
   ![Info Hub](https://docs.ravendb.net/assets/images/info-hub-a01df4b413cefee54073b79597a8fcbf.png)

---

## Task Statistics

Use Studio's [Ongoing Task Stats](https://docs.ravendb.net/7.2/monitoring/performance-views/ongoing-task-stats.md)
view to see transfer statistics.

![Queue Brokers Stats](https://docs.ravendb.net/assets/images/overview_stats-ccc2285f18fe2f36fb83e2347122b49c.png)

1. **Kafka sink task statistics**  
   All statistics related to the sink task.  
   Click the bars to expand or collide statistics.  
   Hover over bar sections to expose statistics.
2. **RabbitMQ sink task statistics**
3. **Sink statistics**
   - Total duration  
     The time it took to get a batch of documents (in MS)
   - Currently allocated  
     Memory allocated for the task (in MB)
   - Number of processed messages  
     The number of messages that were recognized and processed
   - Number of read messages  
     The number of messages that were actually transferred to the database
   - Successfully processed  
     Has this batch of messages been fully processed (yes/no)
4. **Queue readings**  
   The duration of reading from queues (in MS)
5. **Script processing**  
   The duration of script processing (in MS)

## Licensing

> **Info**
>
> Queue Sink is Available on an **Enterprise** license.

Learn more about licensing [here](https://docs.ravendb.net/7.2/licensing/overview.md).
