Skip to main content

Overview

Publish to an S2.dev stream. S2 is a serverless HTTP API for durable streams with support for high read fanout and bottomless storage. Use it to share streams of data to front-end and back-ends, as an alternative to Kafka, AWS SQS, or Google Pub/Sub.
S2 is ideal for serverless architectures and teams using TypeScript or Python stacks who want a simpler alternative to Kafka for event streaming. Try the S2 Playground to get started.

Configuration

sinks:
  my_s2_sink:
    type: s2_sink
    from: my_transform
    access_token: your_access_token_here
    basin: your-basin-name
    stream: your-stream-name
    primary_key: id # Optional

Parameters

type
string
required
Must be s2_sink
from
string
required
The transform or source to read data from
options.access_token
string
required
S2 access token for authentication. Get one at s2.dev.
options.basin
string
required
Basin name (must be a valid BasinName format).
options.stream
string
required
Stream name to write data to.
primary_key
string
Optional. Primary key field name for the records.

Features

  • Highly Durable: Using object storage as a base, s2 is both fast and highly durable
  • Auto Batching: Data is automatically batched according to S2’s batch size limits
  • Serverless: No infrastructure to manage - simple HTTP API