- 
                Notifications
    
You must be signed in to change notification settings  - Fork 30
 
Open
Description
Transactional API is required to use Exactly Once Semantics provided by Kafka.
One of the ideas how to structure this:
- Make new actor 
KafkaTransactionalProducerwhich supports regularKafkaProducerAPI and transactional API (likebeginTransaction,commitTransaction,abortTransactionetc. Maybe it's simpler to makeKafkaProduceras class and inherit transactional producer from it to avoid code duplication - 
KafkaTransactionalProducershould havesendandsendOffsetwithin a transaction
 KafkaTransactionalProducershould taketransactional.idas parameter.KafkaTransactionalProducershould callrd_kafka_init_transactions(...)and make sure it's initialised and not fenced with others.KafkaTransactionalProducershould handle retriable errors and tries to recover. Possible such errors also need to be delivered to optional callback (as notification)
Metadata
Metadata
Assignees
Labels
No labels