Recommended Topologies
On this page 5 sections
QSCS clusters scale gracefully from a single node to a globally distributed mesh. The shape you pick depends on three things: where your origin server lives, where your users are, and how much failure tolerance you need. Below are four shapes that cover the common cases.
1. Single node
One QSCS process sits in front of one origin web server, on the same host or one network hop away. This is the simplest possible deployment, and a perfectly valid production setup if your site lives on one machine.
Use when: small site, single host, want HEADLESS protection during transient origin failures. Benefit profile: resilience.
2. Master plus thin clients
One QSCS node hosts the origin (master). One or more additional QSCS nodes sit in different locations and proxy through the master.
Use when: users are spread across regions but the origin only exists in one place. Benefit profile: resilience + lower regional latency (region-local cache) + reduced complexity (each region needs only one open ingress port).
3. Hot-standby pair
A two-node cluster where one node is master and the other is a thin client co-located with, or attached to, a separate replica of your origin. Both nodes cache everything; if the master fails, you promote the thin client.
Use when: you have two origin web servers and want manual failover with minimal user impact. Benefit profile: resilience (warm cache survives master loss) + simplicity (no separate replication service required; the cache is the replication channel).
4. Geo-distributed edge
One master, three or more thin clients spread across continents. All thin clients have the master's cache replicated; users hit the nearest edge.
Use when: you serve a global audience and the round-trip from the far side of the world to your origin matters. Benefit profile: dramatic latency reduction for cache hits (a user in Tokyo gets a response from a Tokyo-region edge in single-digit milliseconds rather than crossing the Pacific to hit your origin), plus the security and simplicity of a single encrypted port per node.
Choosing between them
| Need | Pick |
|---|---|
| Just want outage protection on one host | Single node |
| Origin in one region, users in many | Master + thin clients |
| Want quick manual failover | Hot-standby pair |
| Truly global audience | Geo-distributed edge |