RESOURCE CATALOG
Beacon
Lightweight pub/sub — NATS for notifications, fan-out, and reactive services.
type: "beacon"managed pub/subDefinition
Beacon provisions NATS with optional JetStream persistence. Connect via nats:// URL for low-latency messaging between Compute instances.
When to use
- Real-time notifications and live updates.
- Fan-out to many subscribers.
- Microservices with minimal latency overhead.
When not to use
- Guaranteed job processing — prefer Lane.
- Long-retention event logs — prefer Conduit.
Configuration fields
Each field is validated at creation time. Defaults apply when fields are omitted.
config · beacon
| Campo | Tipo | Default · Opções |
|---|---|---|
jetstream JetStream persistence | bool | Default false |
Examples
Full payloads for POST to /api/projetos/{id}/recursos:
Live notifications
json
{
"tipo": "beacon",
"nome": "notifications",
"config": {
"jetstream": true
}
}