Prerequisites
1
Install S2 CLI
Choose your preferred installation method:Verify installation:
Make sure you have version 0.26 or later for S2 Lite support.
2
Start S2 Lite
Run S2 Lite in in-memory mode (no persistence):You should see output like:
3
Configure CLI
Point the S2 CLI to your local Lite instance:Verify the server is ready:You should see:
The
S2_ACCESS_TOKEN can be any value when using S2 Lite locally.4
Create a Basin
Create a basin with auto-creation of streams enabled:List basins:
5
Write and Read Data
Write some data to a stream:Read it back:You should see:
Running with Object Storage
For persistent storage, run S2 Lite with an S3-compatible bucket.AWS S3
1
Set up AWS credentials
Make sure you have AWS credentials configured:Or use environment variables:
2
Start S2 Lite with S3
The
--path argument sets a prefix within the bucket. This allows multiple S2 Lite instances to share a bucket.Tigris, R2, or Other S3-Compatible Storage
1
Set credentials and endpoint
2
Start S2 Lite
Running with Local Filesystem
For single-node deployments with local persistence:Testing Performance
Run the built-in benchmark to test your setup:Testing Streaming Sessions
S2 Lite supports bidirectional streaming sessions.1
Open a read session
In one terminal:This will wait for new records.
2
Write data in real-time
In another terminal:You should see the events appear in the read terminal immediately.
Initializing Resources at Startup
You can pre-create basins and streams using an init file.1
Create an init file
Create
resources.json:resources.json
2
Start S2 Lite with the init file
The init file uses create-or-reconfigure semantics, so it’s safe to use on repeated restarts.
Next Steps
Deployment
Deploy S2 Lite to production
Configuration
Learn about all configuration options
Kubernetes
Deploy with Helm
Monitoring
Set up monitoring and observability