Building business logic
This section explains how to implement business logic with strong types and clear boundaries.
Core flow
- Scaffold service artifacts with the PURISTA CLI (
purista add ...). - Define a Service and shared Builders.
- Capture Schemas & validation to power types/OpenAPI.
- Add Commands with request/response contracts.
- Stream multi-frame responses through Streams.
- React to events via Subscriptions.
- Configure Queues for pull-based workloads.
- Add AI Agents with managed manifests, orchestration queues, and evaluation helpers.
- Emit Custom event messages, wire Logging, and Error handling.
- Connect Stores and expose APIs through exposing commands + HTTP clients.
- Operate/observe services via Connect to PURISTA and the Advanced topics (JavaScript events, message structure, delivery semantics).
