talira

C++ framework for high-performance server applications on multi-core hardware

open sourceApache-2.0free

Seastar is an open source C++ framework for writing high-performance server applications on modern multi-core hardware, made by ScyllaDB. It runs one thread per core (a shard) with partitioned memory, so each piece of data is owned by one shard and work is sent to it instead of locking shared data. Everything that takes time is a future, and C++ coroutines are the recommended way to write new code. It powers the ScyllaDB database, Redpanda and Ceph Crimson.

Problems it solves

  • build a C++ server that scales linearly across every core without locks
  • write a low-latency storage or database engine in C++ with async disk and network I/O
  • kernel-bypass networking with DPDK for a high-throughput C++ service

Features

  • futures, promises and C++ coroutines for asynchronous code
  • sharded services: one instance per core, with invoke-on and map-reduce across shards
  • semaphores, gates, condition variables, queues and parallel loops
  • CPU scheduler with scheduling groups that isolate components
  • DMA-based zero-copy disk I/O over io_uring or Linux AIO, with an I/O scheduler
  • TCP, UDP, SCTP and Unix sockets, TLS, and an optional userspace TCP/IP stack over DPDK
  • HTTP server and client, WebSocket, RPC with streaming, DNS and JSON
  • Prometheus metrics, structured logging and a reactor stall detector
  • Boost.Test integration and a microbenchmark framework