Idempotent Message Handler
To simplify the implementation of idempotent message processing, jEAP provides the Java annotation
@IdempotentMessageHandler. Within the configured retention period, it ensures that a message handler
method executes successfully at most once for a given idempotence ID and message type, by recording
successfully processed messages in a database — so a microservice doesn't need to extend its own
persistent business data with the idempotence IDs of processed messages.
See jeap-messaging — Idempotent message handler
for the dependency, the required database schema, annotating a handler method, the @Transactional advice-order
caveat, and the full configuration reference.
Related
- At-least-once delivery — why idempotent processing is necessary.
- How to: integrate Kafka into a service
- Expand-Migrate-Contract — why idempotency context ignores the major version.