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 queue-backed AI agents for model-driven or conversational workflows.
- 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 (message structure, delivery semantics, protocol internals).
