Kafka Event publish details for merge API
The Merge API publishes events to a Kafka topic for user creation and update operations. The events include details about the changes, captured in a structured payload.
Both user creation and update event published into below Kafka topic
Kafka Topic Name: folio-dev-volaris.ALL.users.users
Each event payload includes a field type, which denotes the type of operation performed:
CREATED: Indicates the creation of a new user from a staging user.UPDATED: Indicates the update of an existing user from a staging user.
Event Types and Payloads
1. CREATED Event
Triggered when a new user is created from a staging user.
Sample Payload:
2. UPDATED Event
Triggered when an existing user is updated from a staging user.
Sample Payload:
User Expiration via Cron Job Scheduler
The User Expiration Cron Job Scheduler API handles the expiration of users by updating their active flag from true to false.
For this operation, an UPDATED event is published to the same Kafka topic (folio-dev-volaris.ALL.users.users).
The
UPDATEDevent structure remains the same as defined earlier.The
NEWnode in the payload reflects the change, with theactivefield set tofalse.
Example of the Updated Payload: