How services work
Every service follows this pattern:1
Connect
Authenticates and establishes a real-time connection to the data engine.
2
Subscribe
Sends a query defining which entities it cares about (e.g., “entities with an EDI component and a Customer component”).
3
Receive
Gets entity change events as they happen — either single changes or batches.
4
Process
Runs business logic on the changed entities. May create new entities, update existing ones, or link entities together.
5
Acknowledge
Confirms the change was processed. This prevents re-delivery.
Guaranteed delivery
Services receive changes through a durable message queue. This provides:
This is different from how users receive changes (fire-and-forget pub/sub). Services get guaranteed delivery.
Service capabilities
Inside a service’s processing logic, the following tools are available:Service queries
Services subscribe using JSON queries that match against entity state:EDI component and a Customer component. The query engine evaluates matches efficiently using a combination of in-memory assertions and database queries.
Logging
Services can broadcast log messages visible to admin users in our UI. Lifecycle events are logged automatically:- Processing started — when a batch begins
- Processing complete — when it succeeds
- Processing failed — when it fails (includes error details)