Function createOutboxConsumerTemplate

OutboxConsumer is rensposible for consuming events from one partition (partitionKey option) and publishing it through an publishEvent callback.

Event - Events handled by the OutboxConsumer.