GMF v2.0.0 — Runtime-Agnostic gRPC Server Framework
Major rewrite: GMF is now a runtime-agnostic, thread-per-core gRPC server framework.
Highlights
- Runtime-agnostic architecture — choose between monoio (default), glommio, or tokio
- Thread-per-core design — one event loop per CPU core, zero cross-thread synchronization
- io_uring support — syscall batching via monoio/glommio on Linux 5.6+
- Graceful shutdown —
serve_with_shutdownaccepts anyFuture<Output = ()> - CPU pinning —
sched_setaffinityper core for L1/L2 cache locality SO_REUSEPORT— kernel-level connection distribution, no userspace load balancing
Runtimes
| Runtime | Feature | Platforms | Backend |
|---|---|---|---|
| monoio (default) | monoio-runtime |
Linux, macOS | io_uring / kqueue |
| glommio | glommio-runtime |
Linux only | io_uring |
| tokio | tokio-runtime |
All | epoll / kqueue |
Breaking Changes
- Complete API redesign from v1 — see README and Architecture docs