← Back
Home › Systems › Frontend and UI

ssr-web-framework

server-rendered web framework

Next.js, Leptos

SystemTechniques · 18Primitives · 59 ssr-web-framework CDN and edgecloud · medium: CDNs cache content in hundreds of PoPs near users, cutting latency and egress bills; edge compute runs small code there. Bandwidth price spreads 10x between providers.›Tree shakingcompilers · medium: Remove unused exports via module graph reachability and side-effect analysisDeterministic simulation testingdistributed · medium: Run the whole system in one thread under a seeded scheduler with simulated network, disk and clock, so every failure replays from its seed.›Primary-backup replicationdistributed · medium: One node orders all writes and ships them to standbys; the acknowledgement rule (none, one, all) sets what a crash loses, and an external arbiter decides who takes over.›Code splitting lazy loadinggraphics · medium: Split bundles at dynamic imports, load chunks on demand, preload critical pathsSignals and fine-grained reactivitygraphics · medium: A dependency graph of signals, memos and effects where reads auto-subscribe, so a state change re-runs exactly the outputs that used it, with no tree diff.›Partial hydration islandsgraphics · medium: Ship JS only for interactive islands of a server-rendered page; resumability variantsHTTP caching semanticsnetworking · low: The rules (RFC 9111) that decide whether a stored response is still fresh, and how a cheap conditional request revalidates it when it is not.›HTTP/2networking · low: Binary multiplexed framing for HTTP over one TCP connection: streams, per-stream and per-connection credit windows, HPACK header compression and the limits that contain abuse.›LRU and CLOCKsystems · low: LRU evicts the least recently used entry via hash map plus linked list; CLOCK approximates it with a reference bit, so hits take no lock.›Hdr histogramdata-structures · low: Log-linear bucketed histograms with bounded relative error for latency percentilesProcess supervisionhardware-os · low: A parent process starts services, reaps their exits and restarts them under a delay and burst-limit policy, then stops them with SIGTERM before SIGKILL.›epoll event loopnetworking · low: One thread waits on thousands of non-blocking sockets with epoll_wait and handles only ready ones; the core of nginx, Redis and tokio.›HTTP/1.1 message parsingnetworking · low: Parse HTTP/1.1 requests and responses incrementally from a byte stream: RFC 9112 body-length rules, chunked decoding and the strictness that stops request smuggling.›Trie url routingnetworking · low: Radix-tree HTTP routers with params and wildcards; matching priorityInput validation and injectionsecurity · low: Keep untrusted data as data: parse it into types at the boundary, and never splice it into code, queries, shells or HTML.›Mutual TLSsecurity · low: TLS where the client also proves a certificate key, so every connection carries a verified, rotatable machine identity.›OWASP Top 10 riskssecurity · low: The web and API vulnerability classes that cause most real breaches, each with the one structural fix that removes it.›Sessions vs tokenssecurity · low: Opaque server-side sessions in cookies for browsers, short-lived signed tokens between services; revocation decides most cases.›Graceful drainingsystems · low: On a termination signal, stop taking new work, finish in-flight work until a deadline, tell clients to reconnect elsewhere, then exit; clients resume from a token.›Request coalescingsystems · low: Collapse concurrent identical requests into one backend fetch (singleflight)Module resolutioncompilers · low: Resolve import specifiers to files: Node and ESM resolution, package exports, CJS interopName resolutioncompilers · low: Bind every use of a name to its declaration with a scope stack, handling shadowing, hoisting and closure capture in one AST walk.›+ 11 more techniques+ 43 more primitives

Similar systems

Share the most building blocks with this one.