Minimal, focused examples for experimenting with Seastar’s sharded architecture and coroutine-based I/O.
Each folder is an independent, buildable sample.
Shows how each Seastar shard can listen on its own TCP port using
server_socket::load_balancing_algorithm::fixed
.
Highlights
- Per-shard port binding (base + shard ID)
- Coroutine-based accept loop
- Graceful shutdown using
gate
+abort_source
Run
mkdir build && cd build
cmake ..
make
./example --smp 4
Somesh Mohan
Systems engineer & Seastar enthusiast.
LinkedIn • Medium • Github