报道正文
本文目录5 个章节
The ideal web server is a single self-contained binary that embeds the full stack — HTTP handling, frontend assets, caching, database, file serving, and job queues.
- One Full-Stack Binary everything in-process
To scale horizontally, we make that binary peer-aware so instances coordinate sharded data and distributed job queues among themselves — while each instance remains a complete, self-contained application server.
- Collaborating Peer Cluster same binary on every server
Data is dynamically rebalanced whenever instances join or leave the cluster.
Interactive Cluster Simulator
60 virtual shards (R=2). Add nodes, drain cleanly, kill a node mid-flight, or step through reads and writes.
Primary Mirror Learner (Phase 1 sync) Unowned epoch=3 · 3 active nodes · 60 shards (R=2) Speed
Why build it this way?
Most "scalable" architectures spend more effort operating databases, caches, queues, and orchestrators than running application code. Making the app peer-aware collapses the stack back to one moving part.
Conventional "Scalable" Stack 12+ systems Docker / Containers Kubernetes Istio / Service Mesh Ingress / Envoy Postgres Cluster Redis Kafka / RabbitMQ S3 / Object Store Terraform Helm / ArgoCD Cert-Manager YAML + Glue
Your application logic is small, yet most of your engineering time goes to keeping external infrastructure wired together, versioned, and alive.
Fractal Cluster 1 executable Embedded Sharded DB Peer Replication Distributed Queues Live Pub/Sub Built-in Blobs
Orchestration isn't a separate control plane — it's compiled into the program. Copy one binary to another VPS, point it at a peer, and watch the cluster absorb it.
01 / SELF-AWARE
The logic stays inside the program
Your server binary knows its peers, routes reads and writes to the right shard automatically, and runs background jobs across the cluster — zero external daemons.
02 / LIVE RESIZING
Two-phase rebalance & planned drain
New nodes join as non-serving learners receiving live mirrored writes before ownership flips. Drain a server to hand off its shards with zero hiccups — or survive sudden crashes.
03 / ZERO-OPS
No S3, no Redis, no K8s
Even media uploads and rolling binary upgrades are built in. Ship one compiled file per platform and let the cluster handle replication, queues, and cutovers.