# Felix > A QUIC-based clustered log serving stream, cache and queue semantics, built for high-fanout delivery, predictable tail latency and strict slow-consumer isolation. The full text of every page is at https://docs.getfelix.dev/llms-full.txt. ## Start - [Felix](https://docs.getfelix.dev/): A QUIC-based clustered log serving stream, cache and queue semantics, built for high-fanout delivery, predictable tail latency and strict slow-consumer isolation. ## Getting Started - [Why Felix?](https://docs.getfelix.dev/getting-started/why-felix/): Why you might run one system instead of a log, a cache and a queue, and when you shouldn't. - [Overview](https://docs.getfelix.dev/getting-started/overview/) - [What Felix Is For](https://docs.getfelix.dev/getting-started/what-felix-is-for/) - [Quickstart](https://docs.getfelix.dev/getting-started/quickstart/) - [Installation](https://docs.getfelix.dev/getting-started/installation/): Build Felix from source, check the build, and find the released binaries and container images. - [felixctl](https://docs.getfelix.dev/getting-started/felixctl/): The felixctl command: publish, subscribe, read caches, work consumer groups and counters, see where shards live, manage the control plane, and run benchmarks. - [Docker or Podman](https://docs.getfelix.dev/getting-started/containers/): Run Felix's images, compose files and container-backed tasks with either Docker or Podman, and where the two differ. ## Tutorials - [Tutorials](https://docs.getfelix.dev/tutorials/overview/): Step-by-step tutorials that build a stream, a work queue, a lease and a small app on Felix, with code in Rust, Python, TypeScript, C# and C. - [Your first stream](https://docs.getfelix.dev/tutorials/first-stream/): Create a durable stream, publish to it, read it back with offsets, and resume where you stopped after a restart. - [A work queue](https://docs.getfelix.dev/tutorials/work-queue/): Build a job queue with a consumer group: workers that share the load, retries, a worker crash and its redelivery, dead letters and redrive. - [Cache, leases and watches](https://docs.getfelix.dev/tutorials/cache-leases-watches/): Store values with an expiry, take a lease with a conditional write whose version is a fencing token, and react to changes with a cache watch. - [Build an app](https://docs.getfelix.dev/tutorials/build-an-app/): An order pipeline on Felix: orders published to a stream, a worker group that fulfils them, results in a cache, and a dashboard that watches the cache. ## Use Cases - [Use Cases](https://docs.getfelix.dev/use-cases/overview/): The ways Felix is used, what each one is built from, and how it compares with the systems usually used for it. - [Config and Feature Flags](https://docs.getfelix.dev/use-cases/config-and-feature-flags/): Push configuration, feature flags, routing tables and policy to a large fleet so every consumer holds the current value and sees every change after it, with no gap. - [Live Updates at High Fanout](https://docs.getfelix.dev/use-cases/live-fanout/): Send one stream of updates to thousands of subscribers (dashboards, scoreboards, market-data-like feeds, notifications) without a slow subscriber slowing the publisher or anyone else. - [Browsers and Mobile Clients](https://docs.getfelix.dev/use-cases/browser-realtime/): Reach Felix from browsers through a WebSocket gateway whose tokens are narrowed to one scope, and from native services over QUIC. - [Leases, Locks and Idempotency](https://docs.getfelix.dev/use-cases/leases-and-locks/): Elect a leader among workers, hold short leases, claim idempotency keys and fence a single writer, using conditional cache writes and conditional publishes. - [Rate Limits and Counters](https://docs.getfelix.dev/use-cases/rate-limits-and-counters/): Per-user rate limits, quotas and live tallies from a durable counter that answers with the new total in one round trip. - [Work Queues](https://docs.getfelix.dev/use-cases/work-queues/): Hand background jobs to a pool of workers with acknowledgements, redelivery, retry limits and dead letters, on the same log that carries your events. - [Events and State Together](https://docs.getfelix.dev/use-cases/event-and-state/): Update an entity's state and publish the event about it as one record, with no crash window between the two. - [Audit Logs and Replay](https://docs.getfelix.dev/use-cases/event-log-and-replay/): Use a durable stream as an append-only audit and event log you can replay from an offset or a point in time. - [Coming from Kafka](https://docs.getfelix.dev/use-cases/kafka-migration/): Point Kafka producers and self-assigning consumers at Felix by changing a bootstrap address, then move fanout, queues and caches onto Felix clients in steps. - [Coming from NATS](https://docs.getfelix.dev/use-cases/nats-migration/): How NATS subjects, queue groups, JetStream, KV and accounts map onto Felix streams, consumer groups, the cache and tenants, and what to do about the NATS features Felix does not have. - [Multi-tenant SaaS](https://docs.getfelix.dev/use-cases/multi-tenant-saas/): Serve many customers from one Felix cluster with tenant scoping on every operation, narrowed tokens, per-key cache grants and a per-tenant publish cap. - [Data Residency](https://docs.getfelix.dev/use-cases/data-residency/): Pin a stream's leader and replicas to a region, with placement the control plane enforces through rebalancing, drains and failover, and spread copies across failure zones. ## Demos - [Demos Overview](https://docs.getfelix.dev/demos/overview/) - [Demo: Cross-broker Publishing](https://docs.getfelix.dev/demos/cross-broker-cluster/): A three-node cluster forwarding a publish from the broker that received it to the broker that owns the shard. - [Demo: Slow-consumer Isolation](https://docs.getfelix.dev/demos/slow-consumer-isolation/) - [Demo: Local State Divergence](https://docs.getfelix.dev/demos/state-divergence/) - [Demo: Queue Semantics](https://docs.getfelix.dev/demos/queue-semantics/): Work distribution, redelivery after a crash, dead letters, and the duplicate cost of at-least-once. - [Demo: Leader vs Quorum](https://docs.getfelix.dev/demos/cluster-consistency/): The same fault put to both consistency levels on a real three-node cluster. - [Demo: Multi-tenant Real-time Notifications](https://docs.getfelix.dev/demos/notifications/) - [Demo: Orders/Payments Pipeline](https://docs.getfelix.dev/demos/orders/) ## Architecture - [An Architecture Tour](https://docs.getfelix.dev/architecture/tour/): One publish, followed from the client API to bytes on three machines, plus a reading order for everything else. - [System Design](https://docs.getfelix.dev/architecture/system-design/) - [Component Architecture](https://docs.getfelix.dev/architecture/components/) - [Wire Protocol Specification](https://docs.getfelix.dev/architecture/wire-protocol/) - [Durable Storage](https://docs.getfelix.dev/architecture/durable-storage/): How Felix persists durable streams, what each fsync policy guarantees, and what durability costs. - [Felix Durable Segment Format (v8)](https://docs.getfelix.dev/architecture/storage-format/): The versioned on-disk byte layout for Felix durable stream segments and indexes. - [Delivery Semantics and Consistency Model](https://docs.getfelix.dev/architecture/semantics/) - [Projections](https://docs.getfelix.dev/architecture/projections/): Streams, caches and queues as three readings of one log, with the test behind every claim. - [How Felix Is Tested](https://docs.getfelix.dev/architecture/testing/): The history checker, fault injection on a real cluster, a deterministic simulator that runs a whole cluster on a seed, and the TLA+ models behind the replication claims. - [Correctness Evidence](https://docs.getfelix.dev/architecture/correctness-evidence/): What Felix's formal models, deterministic simulator, history checker and scale runs check, how much of each runs, the defects they found, and how to rerun any of it. - [Metadata Raft](https://docs.getfelix.dev/architecture/metadata-raft/): Control-plane metadata made highly available without an external database, by embedding a Raft group in the control-plane instances. ## Clients - [Choosing a Client](https://docs.getfelix.dev/clients/overview/): Why Felix has one client implementation with bindings over it, what the conformance suite checks, and which client to reach for. - [Building Resilient Clients](https://docs.getfelix.dev/clients/resilient-clients/): Seeds, reconnection, token refresh, retry classes, unknown outcomes, resuming, slow consumers, consumer groups and shutdown, with the real API in every client language. - [Errors Across Clients](https://docs.getfelix.dev/clients/errors/): Every broker error code and retry class, and the exception or status each Felix client turns it into: Rust, Python, TypeScript, C# and C. - [Auth and TLS Across Clients](https://docs.getfelix.dev/clients/auth-and-tls/): How to give each Felix client a token, a token provider, a CA file and a server name, and which clients can present a client certificate. - [Rust Client SDK](https://docs.getfelix.dev/clients/rust/) - [Rust: Publishing](https://docs.getfelix.dev/clients/rust/publishing/): Publish single records and batches, route by key, and send safely with idempotent producers. - [Rust: Subscribing](https://docs.getfelix.dev/clients/rust/subscribing/): Read a stream live or from a past offset or time, follow shards through moves, and resume after a restart. - [Rust: Cache Operations](https://docs.getfelix.dev/clients/rust/cache/): Key-value reads and writes with TTL, conditional writes, leases, watches, and counters. - [Rust: Consumer Groups and Commits](https://docs.getfelix.dev/clients/rust/groups-and-commits/): Work queues with consumer groups, atomic commits across streams and cache keys, and trimming a shard's head. - [Rust: Clusters and Operations](https://docs.getfelix.dev/clients/rust/operations/): Connecting to a cluster, connection management, telemetry, patterns, and testing. - [Python Client](https://docs.getfelix.dev/clients/python/): Installing and using the Felix Python client: both surfaces, streams, queues, cache watches, multi-shard consumption, and the failure modes worth writing code for. - [TypeScript Client](https://docs.getfelix.dev/clients/typescript/): Installing and using the Felix Node.js client: promises, typed errors, disposal, streams, queues, cache watches, multi-shard consumption, and the failure modes worth writing code for. - [C Client](https://docs.getfelix.dev/clients/c/): Installing from a release or building, and linking libfelix, the asynchronous callback model, and the C ABI for publishing, subscribing, consumer groups, caches, atomic commits, idempotent producers and hand-offs, queue and transport options, and inspecting shards and subscriptions. - [C# Client](https://docs.getfelix.dev/clients/csharp/): Using the Felix C# client: supported platforms, connecting, token refresh, queue and transport options, publishing, subscribing, sharded subscriptions, consumer groups, caches, counters and watches, atomic commits, conditional publishes, idempotent producers and hand-offs, inspecting shards and subscriptions, publisher and timestamp metadata, typed errors, cancellation and threading. - [Browsers (felix-gateway)](https://docs.getfelix.dev/clients/browsers/): felix-gateway relays a browser's WebSocket to Felix with a token narrowed to one scope: how sign-in and scoping work, the browser protocol in brief, every setting, running it next to a cluster, and its limits. ## Built on Felix - [Built on Felix](https://docs.getfelix.dev/built-on-felix/overview/): Applications that use Felix as their whole backend, and which Felix features each one depends on. - [felix-canvas](https://docs.getfelix.dev/built-on-felix/canvas/): A multiplayer whiteboard whose whole state is a Felix stream: how it uses durable and in-memory streams, caches, a consumer group and felix-gateway. - [felix-webhook-relay](https://docs.getfelix.dev/built-on-felix/webhook-relay/): A webhook relay with Felix as its only store: idempotent appends, one consumer group per endpoint, watched config caches, dead letters and replay by offset. - [felix-arena](https://docs.getfelix.dev/built-on-felix/arena/): A browser team-deathmatch game built on Felix: a simulator commits every tick to a durable stream, and a kill cam replays the match's log. - [felix-metro](https://docs.getfelix.dev/built-on-felix/metro/): A 3D city simulator in the browser built on Felix: every district's history is a durable stream, so the timeline can go back to any moment and play forward into live. - [felix-blocks](https://docs.getfelix.dev/built-on-felix/blocks/): A voxel building game in the browser built on Felix: the world is one cache key per chunk, edited concurrently with conditional writes and watched live by every player. - [felix-agents](https://docs.getfelix.dev/built-on-felix/agents/): A swarm of workers with Felix as its data backend: tasks flow out through a consumer group, results flow back through conditional cache writes, and one log records the whole run for live viewing and replay. - [felixd](https://docs.getfelix.dev/built-on-felix/felixd/): A node agent that runs deterministic Wasm workloads across a cluster with Felix as its only backend: a workload survives the loss of its node, resumes from an offset and can be replayed to any point. What runs today and what does not. - [Submitting work to felixd](https://docs.getfelix.dev/built-on-felix/felixd/submitting-work/): How to give felixd a workload: what a unit of work is, writing and building one, felixd run step by step, feeding it input, reading its output, changing and stopping it, and what to do when it goes wrong. - [felixd example workloads](https://docs.getfelix.dev/built-on-felix/felixd/examples/): Six complete felixd workloads that compile against contract 0.3: usage metering, an order lifecycle, idempotency keys, fraud scoring, a tumbling-window aggregate and a simulation. Each has its spec, its code, and how to submit it and read its outputs. - [How felixd works](https://docs.getfelix.dev/built-on-felix/felixd/how-it-works/): The life of a felixd workload: the spec, leases and claims, epochs and the fenced output stream, exactly-once output, snapshots, failover, resume, replay and checking. - [The felixd workload contract](https://docs.getfelix.dev/built-on-felix/felixd/contract/): Workload contract 0.3: the WIT interfaces a felixd workload exports, what a step receives including the authenticated publisher, what it may return, named and keyed outputs, rejection, poison and contract failures, snapshot layouts, fuel and the other limits. Contract 0.2 still runs. - [felixd record formats](https://docs.getfelix.dev/built-on-felix/felixd/records/): The records felixd writes: output stream version 4 with outputs, claims, failures, rejections and notes, snapshot stream version 3 with chunks and a manifest, the merge log, spec records, admission requests and decisions, the cache values, and which older versions are still read. - [Running felixd](https://docs.getfelix.dev/built-on-felix/felixd/running/): The felixd subcommands and flags, roles and admission, metrics, upgrading a node, the environment variables that point it at Felix, what it needs from a Felix cluster, and a quickstart that starts a broker, submits a workload and checks it. - [felixd terminology](https://docs.getfelix.dev/built-on-felix/felixd/terminology/): What the words used in the felixd docs mean: workload, fuel, epoch, fence, snapshot, fold, replay, needs-operator and the rest, each with a link to where it is used. ## API Documentation - [Broker API Reference](https://docs.getfelix.dev/api/broker-api/) - [Control Plane API](https://docs.getfelix.dev/api/control-plane-api/) ## Features - [QUIC Transport](https://docs.getfelix.dev/features/quic-transport/) - [Publish/Subscribe](https://docs.getfelix.dev/features/pubsub/) - [Sharding](https://docs.getfelix.dev/features/sharding/): How Felix splits a stream into shards, how a record finds its shard, and what that means for ordering, placement and readers. - [Queues and Consumer Groups](https://docs.getfelix.dev/features/queues/): Distribute work across consumers with acknowledgements, redelivery, and dead letters. - [Atomic Commits](https://docs.getfelix.dev/features/atomic-commits/): Write an event and the state it changes as one record, so no reader ever sees one without the other. - [Cache Features](https://docs.getfelix.dev/features/cache/) - [Kafka Compatibility](https://docs.getfelix.dev/features/kafka/): Read durable Felix streams with Kafka consumers that assign their own partitions, and write to them with Kafka producers, idempotent ones included. - [MQTT](https://docs.getfelix.dev/features/mqtt/): Let MQTT devices connect to a Felix broker with a Felix token, mount a stream at a topic prefix, and publish to it at QoS 0 and 1. Every PUBACK means the message is in the stream. Subscribing is planned for 0.8.0. - [Performance Tuning](https://docs.getfelix.dev/features/performance/) - [Benchmarks](https://docs.getfelix.dev/features/benchmarks/) - [0.6.0 performance report](https://docs.getfelix.dev/features/v060-performance/): What Felix v0.6.0 does on real Azure hardware: one broker and a three-broker RF=3 cluster, the exact conditions, how to read the numbers, throughput and latency for each publish shape, a NATS JetStream comparison on the same VMs, and the defects the measurement round found and fixed. - [Case Study: Two Throughput Defects](https://docs.getfelix.dev/features/performance-case-study/) - [Observability](https://docs.getfelix.dev/features/observability/) - [Security](https://docs.getfelix.dev/features/security/) ## Deployment - [Running in Production](https://docs.getfelix.dev/deployment/production/): Size a Felix cluster, pick its durability settings, and harden it before real traffic arrives. - [Choosing a Configuration](https://docs.getfelix.dev/deployment/choosing-a-configuration/): A few recommended sets of Felix settings, what each one is good for, and what you give up with it. - [Local Development Deployment](https://docs.getfelix.dev/deployment/local/): Run a Felix cluster on your own machine, run a broker by hand, tune it, and run the demos. - [Docker Compose Deployment](https://docs.getfelix.dev/deployment/docker-compose/): Run the control plane and a broker under Docker Compose, with the credential, storage and metrics a broker needs. - [Kubernetes Deployment](https://docs.getfelix.dev/deployment/kubernetes/): Install the control plane and a broker cluster with the Helm chart, mint the first credential, and run the day-2 operations: rolling upgrades, scaling, replacing a volume. - [Adding, draining and removing brokers](https://docs.getfelix.dev/deployment/scaling/) - [Moving shards by hand](https://docs.getfelix.dev/deployment/moving-shards/) - [Control-plane high availability](https://docs.getfelix.dev/deployment/control-plane-ha/): Run several identical control-plane instances over one HA Postgres: what Felix handles, what the database platform must provide, and what a failover looks like. - [Failover without the control plane](https://docs.getfelix.dev/deployment/failover-without-control-plane/): How a shard's replicas elect a new leader themselves when its leader dies while the control plane is down, what you see when it happens, its limits, and how to turn it on. - [Backup and restore](https://docs.getfelix.dev/deployment/backup-and-restore/) - [Process lifecycle and graceful shutdown](https://docs.getfelix.dev/deployment/graceful-shutdown/) - [Upgrades and compatibility](https://docs.getfelix.dev/deployment/upgrades/): What happens when two versions of Felix meet on the client protocol, between brokers, against the control plane and on a broker's own disk, and the upgrade order that follows. - [Diagnosing a Cluster](https://docs.getfelix.dev/deployment/diagnosing/): What to look at, in order, when a shard will not serve, a follower falls behind, a subscriber misses records or lags, a client is refused, local disk fills while offload is on, or a broker will not start. ## Reference - [Terminology](https://docs.getfelix.dev/reference/terminology/): What the words used across the Felix docs, code and tools mean. - [Configuration Reference](https://docs.getfelix.dev/reference/configuration/) - [Environment Variables Reference](https://docs.getfelix.dev/reference/environment-variables/) - [Metrics Reference](https://docs.getfelix.dev/reference/metrics/): Every Prometheus metric Felix registers, by component: name, type, labels and what it tells you. - [Error Codes Reference](https://docs.getfelix.dev/reference/error-codes/): Every client-facing error code, retry class and detail reason a Felix broker sends, with the cause, what a client should do, and how each language client surfaces it. - [felixctl Reference](https://docs.getfelix.dev/reference/felixctl/): Every felixctl command, subcommand and flag, with defaults and examples. - [Troubleshooting Guide](https://docs.getfelix.dev/reference/troubleshooting/) - [Frequently Asked Questions](https://docs.getfelix.dev/reference/faq/) ## Release Notes - [Release notes](https://docs.getfelix.dev/release-notes/): What changed in each Felix release, generated from the changelog. - [Upgrading to 0.7](https://docs.getfelix.dev/release-notes/upgrading-to-0-7/): What an operator moving a cluster from 0.6.2 to 0.7 needs to know. ## Development - [Contributing to Felix](https://docs.getfelix.dev/development/contributing/): Licensing, sign-off, and the rules a pull request to Felix is reviewed against. - [Building & Testing](https://docs.getfelix.dev/development/building/): The toolchain, the task commands CI runs, and the two build traps worth knowing. - [Fuzzing](https://docs.getfelix.dev/development/fuzzing/) - [Project Structure](https://docs.getfelix.dev/development/project-structure/): Where things live in the Felix repository, and the rules that shape the layout. - [How Felix Works](https://docs.getfelix.dev/development/how-felix-works/): A tour of one broker's data path for contributors: which task owns each piece of work, where data is queued, and what happens under overload. - [Internals: The Publish Path](https://docs.getfelix.dev/development/internals-publish/) - [Internals: Subscribe & Fanout](https://docs.getfelix.dev/development/internals-subscribe/) - [Internals: Backpressure & Core Sharding](https://docs.getfelix.dev/development/internals-concurrency/) ## Other - [Felix 0.1.0](https://docs.getfelix.dev/release-notes/releases/v0-1-0/): Release notes for Felix 0.1.0, 2026-08-07. - [Felix 0.1.1](https://docs.getfelix.dev/release-notes/releases/v0-1-1/): Release notes for Felix 0.1.1, 2026-08-09. - [Felix 0.2.0](https://docs.getfelix.dev/release-notes/releases/v0-2-0/): Release notes for Felix 0.2.0, 2026-09-07. - [Felix 0.3.0](https://docs.getfelix.dev/release-notes/releases/v0-3-0/): Release notes for Felix 0.3.0, 2026-09-15. - [Felix 0.3.1](https://docs.getfelix.dev/release-notes/releases/v0-3-1/): Release notes for Felix 0.3.1, 2026-09-16. - [Felix 0.4.0](https://docs.getfelix.dev/release-notes/releases/v0-4-0/): Release notes for Felix 0.4.0, 2026-09-18. - [Felix 0.4.1](https://docs.getfelix.dev/release-notes/releases/v0-4-1/): Release notes for Felix 0.4.1, 2026-09-18. - [Felix 0.5.0](https://docs.getfelix.dev/release-notes/releases/v0-5-0/): Release notes for Felix 0.5.0, 2026-09-19. - [Felix 0.6.0](https://docs.getfelix.dev/release-notes/releases/v0-6-0/): Release notes for Felix 0.6.0, 2026-10-23. - [Felix 0.6.0-preview](https://docs.getfelix.dev/release-notes/releases/v0-6-0-preview/): Release notes for Felix 0.6.0-preview, 2026-10-02. - [Felix 0.6.0-preview.2](https://docs.getfelix.dev/release-notes/releases/v0-6-0-preview-2/): Release notes for Felix 0.6.0-preview.2, 2026-10-04. - [Felix 0.6.0-preview.3](https://docs.getfelix.dev/release-notes/releases/v0-6-0-preview-3/): Release notes for Felix 0.6.0-preview.3, 2026-10-08. - [Felix 0.6.0-preview.4](https://docs.getfelix.dev/release-notes/releases/v0-6-0-preview-4/): Release notes for Felix 0.6.0-preview.4, 2026-10-09. - [Felix 0.6.0-preview.5](https://docs.getfelix.dev/release-notes/releases/v0-6-0-preview-5/): Release notes for Felix 0.6.0-preview.5, 2026-10-10. - [Felix 0.6.0-preview.6](https://docs.getfelix.dev/release-notes/releases/v0-6-0-preview-6/): Release notes for Felix 0.6.0-preview.6, 2026-10-10. - [Felix 0.6.0-preview.7](https://docs.getfelix.dev/release-notes/releases/v0-6-0-preview-7/): Release notes for Felix 0.6.0-preview.7, 2026-10-11. - [Felix 0.6.0-preview.8](https://docs.getfelix.dev/release-notes/releases/v0-6-0-preview-8/): Release notes for Felix 0.6.0-preview.8, 2026-10-16. - [Felix 0.6.0-preview.9](https://docs.getfelix.dev/release-notes/releases/v0-6-0-preview-9/): Release notes for Felix 0.6.0-preview.9, 2026-10-17. - [Felix 0.6.1](https://docs.getfelix.dev/release-notes/releases/v0-6-1/): Release notes for Felix 0.6.1, 2026-10-24. - [Felix 0.6.2](https://docs.getfelix.dev/release-notes/releases/v0-6-2/): Release notes for Felix 0.6.2, 2026-10-25. - [Felix 0.7.0](https://docs.getfelix.dev/release-notes/releases/v0-7-0/): Release notes for Felix 0.7.0, 2026-11-08. - [Felix 0.7.0-preview.1](https://docs.getfelix.dev/release-notes/releases/v0-7-0-preview-1/): Release notes for Felix 0.7.0-preview.1, 2026-10-29. - [Felix 0.7.0-preview.2](https://docs.getfelix.dev/release-notes/releases/v0-7-0-preview-2/): Release notes for Felix 0.7.0-preview.2, 2026-11-01. - [Felix 0.7.1](https://docs.getfelix.dev/release-notes/releases/v0-7-1/): Release notes for Felix 0.7.1, 2026-11-10. - [Felix 0.7.2](https://docs.getfelix.dev/release-notes/releases/v0-7-2/): Release notes for Felix 0.7.2, 2026-11-12. - [Felix 0.7.3](https://docs.getfelix.dev/release-notes/releases/v0-7-3/): Release notes for Felix 0.7.3, 2026-11-19.