How-Tos: Messaging
Kafka, message types, contracts and registries, the transactional outbox, error handling, and process archiving/context tracking.
Kafka
- Integrate Kafka into a service — an end-to-end checklist from message type to deployed consumer/producer.
- Connect a service to multiple Kafka clusters — hybrid-cloud setups, e.g. on-prem + AWS MSK.
- Declare message contracts — the annotations a producer/consumer must declare.
- Use the idempotent message handler —
@IdempotentMessageHandler, for consumers that must tolerate at-least-once delivery. - Install all message types of a program locally — resolve a Message Type Registry's generated classes into your local Maven repository.
- Set up a Message/Archive Type Registry for a program — Message Type Registry getting started, Archive Type Registry getting started.
Message evolution
- Apply EMC Message Evolution to a Kafka message type — evolve an incompatible change through compatible steps instead of a new major version.
- Evolve a message type consumed by its own producer — the extra steps needed when a service produces and consumes the same message type (jEAP Messaging 7.5.0+).
Outbox, error handling & process services
- Send a Kafka message within a database transaction via the transactional outbox pattern.
- Set up an Error Handling Service instance (jeap-error-handling) — topics, consumer config, authorization, Agir/Jira hookup.
- Set up a Process Context Service instance for a business application.
- Set up a Process Archive Service instance (jeap-process-archive-service).
- Read an archived artifact back (jeap-process-archive-reader) into a typed Avro object.
- Set up a Message Exchange Service instance.