Overview
Publish to an S2.dev stream. S2 is a serverless HTTP API for durable, append-only streams with support for high read fanout and bottomless storage on object storage. Use it to share streams of data with front-ends and back-ends as a simpler alternative to Kafka, AWS SQS, or Google Pub/Sub.Configuration
Parameters
string
required
Must be
s2_sinkstring
required
The transform or source to read data from
string
required
Stream name to append records to.
integer
default:"1000"
Runtime-level parameter — maximum number of rows the Turbo runtime buffers before appending them to the S2 stream. See Batching on the overview page.
string
default:"1s"
Runtime-level parameter — maximum time the Turbo runtime waits before flushing a batch, even if
batch_size has not been reached. Accepts humantime durations such as 500ms, 1s, or 30s. See Batching.Behavior
- Append-only: Each pipeline record is appended to the S2 stream as a single record. S2 streams are append-only by design, so updates and deletes are not supported.
- JSON encoding: Records are serialized as line-delimited JSON (one JSON object per S2 record) before being appended.
- Auto batching: Records are grouped into
AppendRecordBatchinstances up to S2’s per-batch size limits. When a batch fills up, the sink starts a new one and keeps appending. - Serverless: No infrastructure to manage. The sink talks to S2 over its HTTP API.