Tabour follows a modular architecture and the core concept of it's architecture is a Registry
You need to register the registry to the Tabour container
and start the Tabour container
.
After that step, the consumers that you have configured and registered will start consuming messages from the queues
they have been configured to consume.
A registry is a collection of Consumers
and Producers
for a specific messaging system. Tabour comes with a handful
of functions that create consumers
and producers
which you need to attach (register
) to a specific registry
A consumer is a class that has been configured to consume messages from a specific queue/topic depending on the messaging system.
A producer is a class that has been configured to produce messages to a specific queue/topic depending on the messaging system.
val container = tabour { numOfThreads = 2 }
// check docs/sqs/registry.md about the creation of a registry
container.register(registry)
tabour.start()