SAService Architect Open designer
SAService ArchitectDocumentation
Broker guide

NATS Core

Ephemeral subject-based pub/sub with optional queue-group distribution on all six runtimes.

When to use

Use when selecting a broker or configuring its Input/Sink endpoints.

Behavior

  • Input receives messages into a pipeline; Sink publishes messages from a pipeline. Declaring an endpoint alone does not connect a graph.
  • Check the deployed generator capability catalog for the selected language and direction. Updating a plugin alone does not update the backend.
  • Creation is explicitly enabled per resource; existing-only is the default. Missing or incompatible resources fail instead of being silently replaced.
  • Supply credentials through runtime environment/Vault configuration. Never embed secrets in architecture source, URLs or Help examples. TLS certificate paths require deployed files.
  • Request completion (Done) is not a broker ACK. A publication result is not proof of downstream business processing. Unknown send outcomes must not be blindly retried.
  • queueGroup distributes messages among subscribers in the group; it does not create a durable consumer.

Connection properties

Connection

PropertyTypeDescription
serversstring[]

Explicit broker URL list; credentials are supplied separately.

connectTimeoutMs / operationTimeoutMsinteger

Connection and operation deadlines in integer milliseconds.

tlsEnabled / tlsServerName / tlsCaFile / tlsCertFile / tlsKeyFilestring

TLS configuration where exposed by this connector. Client certificate and key must be supplied together.

Endpoint properties

Endpoint

PropertyTypeDescription
subjectstring

Required for Input and Sink.

queueGroupstring

Optional Core Input-only group; forbidden on Sink.

enabled / tracingEnabledboolean

Common endpoint controls; disabled endpoints stay in the graph.

Python DSL declaration (wire endpoints to Input/Sink separately)

from sa_dsl import Project, Function, LOCAL_MODULE

project = Project("BrokerExample")
broker = project.nats_connector("Events", servers=["nats://localhost:4222"])
endpoint = broker.subject("Receive events", subject="orders.created", queue_group="workers",
    function=Function("ReceiveEvents", module=LOCAL_MODULE))