timeplus-io/proton

The fastest unified streaming SQL Engine in a single C++ binary. ⚡ Millisecond latency. 100+ GB/s throughput. Continuously compute stateful context from streams, logs, metrics, events, and CDC.

What is Timeplus Proton?

Timeplus Proton is a SQL engine for streaming data — data that arrives continuously, like sensor readings, server logs, or stock prices. It's packaged as a single C++ program (no Java, no external services) that lets you write SQL queries against live data streams and get continuously updating results.

The project describes itself as a faster, simpler alternative to Apache Flink and ksqlDB, built on top of the ClickHouse database engine.

Core idea

Traditional stream-processing tools (Flink, ksqlDB) require running a cluster of Java processes plus extra services like ZooKeeper or Kafka. Proton instead ships everything in one binary (under 500MB). You start it, open a SQL shell, and start querying streams.

It extends ClickHouse — a well-known fast database — with stream-processing capabilities. That means you get thousands of ClickHouse-compatible SQL functions and fast query performance, plus new features for live data: windows, watermarks, materialized views that update as data arrives, and more.

Key capabilities (from the README)

  • Connect to many systems via SQL: Kafka, Redpanda, Pulsar, ClickHouse, MySQL, Postgres, MongoDB, S3/Iceberg, OpenSearch
  • Streaming ingestion — pull data in continuously
  • Multi-stream JOINs — combine multiple live data sources
  • Incremental materialized views — pre-computed query results that refresh as new data arrives
  • Alerting and tasks
  • User-defined functions in Python and JavaScript
  • Query both live and historical data with the same SQL — you can query a stream as it flows, or query the same data as a static table

Performance claims

The README reports (from their own testing):

  • Written in C++, uses SIMD (CPU-level parallel processing)
  • On an Apple M2 Max laptop: 90 million events per second, 4ms end-to-end latency, and aggregation over 1 million unique keys
  • Runs on very small hardware: an AWS t2.nano instance (1 vCPU, 0.5 GiB RAM)

How it compares to alternatives

The README includes a comparison table. Key differences:

Proton Apache Flink ksqlDB
Runtime Single C++ binary, no dependencies JVM cluster (multiple Java processes) JVM servers + requires a Kafka cluster
Interface SQL with ClickHouse functions Java/Scala/Python APIs + SQL KSQL (its own SQL dialect)
Queryable results Built-in storage for both streaming and historical results Results go to external sinks Materialized tables with pull queries
Historical + live Same SQL for both Separate batch and streaming modes Streaming only
Smallest footprint 1 vCPU / 0.5 GiB Several JVM processes JVM server plus Kafka
License Apache 2.0 Apache 2.0 Confluent Community License

Use cases

  1. Real-time analytics ETL/pipelines — ingest live data from Kafka, transform/filter/enrich it in the pipeline, and route it to data warehouses like ClickHouse or other Kafka topics.
  2. Telemetry pipelines and alerting — process logs, metrics, and traces, reduce noise, trigger real-time alerts, then forward to Splunk, Elastic, or S3.
  3. AI/ML feature pipelines — compute real-time features with low latency using streaming SQL and materialized views, with support for backfill and advanced windowing.

Getting started

Install with one command:

curl https://install.timeplus.com/oss | sh

Then run two commands in separate terminals:

proton server   # starts the server, stores data in ./proton-data
proton client   # opens the SQL shell

A quick example from the README — create a stream of random device temperatures, then run a streaming query that keeps updating until you press Ctrl+C:

CREATE RANDOM STREAM devices(
  device string default 'device'||to_string(rand()%4),
  temperature float default rand()%1000/10);

SELECT device, count(*), avg(temperature) FROM devices GROUP BY device;

You can also run it via Docker, Docker Compose, or Homebrew (Mac).

What's NOT included (Proton vs. the paid Enterprise version)

The README includes a comparison table. Proton (the open-source version) is single-node only and supports fewer data sources/destinations. For example, it lacks: WebSocket/HTTP streams, NATS, CSV upload, Slack/webhook sinks, and the hundreds of Redpanda Connect connectors. Those are in Timeplus Enterprise, which also adds clustering and paid support.

Integrations

Official drivers exist for Java (JDBC), Go, and Python. It also integrates with ClickHouse, Grafana, dbt, Sling, Docker Testcontainers, and Homebrew.

License

Apache 2.0.

Bottom line

Timeplus Proton is a lightweight, single-binary SQL engine for processing streaming data — positioned as a simpler alternative to heavier Java-based stream processors. It's fast (C++/SIMD), small enough to run on a tiny cloud instance, and lets you work with live and historical data using the same SQL. The trade-off vs. the paid Enterprise version is single-node deployment and fewer built-in connectors.

Related

  • Project
  • Project
  • Project
  • Project
  • Project