(Quick Reference)

threads

Purpose

Sets the theadpool size of the connection.

Examples

rabbitmq {
    connection = {
        connection(
            host: "rabbit.example.com",
            username: "foo",
            password: "bar",
            threads: 5
        )
    }
}

Description

The number of threads determines how many total concurrent consumers will be delivered and processed at a time. The default is 5 threads.

If the total number of consumers exceeds the thread count, the number of concurrently processed messages will be limited by the number of threads assigned to the connection.