PUB Command
Syntax
Parameters
Parameter | Description | Required | Example |
|---|---|---|---|
CLIENT_ID | ID of the client sending the event | Yes |
|
EVENT_NAME | Type of event being published | Yes |
|
PAYLOAD | JSON data payload | Yes |
|
DELIVERY_TO | Service ID of the recipient | Yes |
|
METADATA | Additional contextual information | No |
|
Response
Success
The response includes:
IDEM: A unique ID assigned to the eventTIMESTAMP: The time the event was published (in milliseconds since epoch)
Error
Examples
Basic Event Publishing
Event with Metadata
Notes
Event names follow a hierarchical path-like structure (e.g.,
domain/resource/action)Payload must be valid JSON
Events are stored in the persistent storage layer and cached for fast access
Events are delivered to all subscribers of the specified event type
The system verifies that the client has permission to publish the specified event type
Each event is assigned a unique IDEM for tracking and deduplication