SAService Architect Open designer
SAService ArchitectDocumentation
Broker guide

Redis Streams

Consumer-group processing and XADD publication on Go, Python, TypeScript and C++ Coro.

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.
  • Input reads new records and periodically reclaims idle pending entries using XAUTOCLAIM. XACK is explicit and does not delete stream entries.

Connection properties

Connection

PropertyTypeDescription
serversstring[]

Exactly one redis:// or rediss:// URL without credentials or database path.

redisDatabaseinteger

Separate database index, default 0.

Endpoint properties

Endpoint

PropertyTypeDescription
streamKeystring

Required exact stream key, not a pattern.

consumerGroup / consumerNamestring

Input group is required; omit consumerName for unique replica identity.

createConsumerGroupboolean

Input opt-in using MKSTREAM; default false.

groupStartIdstring

0-0 (default) or $ for new group creation; never resets an existing group.

readCount / readBlockMsinteger

Input batch size and bounded blocking read in milliseconds.

claimIdleMs / claimIntervalMsinteger

Minimum idle age and scan cadence for reclaim in milliseconds.

createStreamboolean

Sink opt-in, default false; otherwise XADD NOMKSTREAM fails for missing streams.

publisherMaxInFlightinteger

Sink publication admission bound.

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

from sa_dsl import Project, Function, LOCAL_MODULE

project = Project("BrokerExample")
broker = project.redis_streams_connector("Events", servers=["redis://localhost:6379"],
    redis_database=0)
endpoint = broker.endpoint("Receive events", stream_key="orders", consumer_group="workers",
    create_consumer_group=False,
    function=Function("ReceiveEvents", module=LOCAL_MODULE))