글

11월, 2026의 게시물 표시

What Is a Proxy Server - and When You Actually Don't Need One

이미지
A proxy server is a machine or process that sits in the middle of a network conversation: the client connects to the proxy, and the proxy makes its own connection onward to the real destination. Because every byte passes through that middle point, a proxy server is the natural place to put anything you want applied to traffic without changing the client or the server at either end. The problem it exists to solve is the absence of a seam . Direct client-to-server traffic gives you nowhere to add TLS termination, caching, authentication, rate limiting, retries, or logging. You either modify every client, modify every server, or insert a hop you control. The proxy is that hop. The word covers two quite different deployments that happen to share a mechanism. A forward proxy acts on behalf of clients leaving a network. A reverse proxy acts on behalf of servers receiving traffic. Same machinery, opposite direction of trust, and confusing them is the most common source of bad proxy desig...

What Is the OSI Model - and When Its Layers Actually Help You Debug

이미지
What is the OSI model ? It is a seven-layer reference framework that splits everything a network does into separate concerns, from electrical signalling at the bottom to application semantics at the top. It is a map, not a protocol - nothing you run in production implements "the OSI model" as such. The problem it exists to solve is coordination. Before layered models, a networking product was a vertical silo: a vendor's cable, a vendor's framing, a vendor's addressing, a vendor's application. If you wanted two systems to interoperate, every piece had to match. Layering says: define the boundary between concerns, and any implementation that honours that boundary can be swapped for any other. That is why you can run HTTP over Wi-Fi in a cafe and over fibre in a data centre without the application knowing or caring. The layer boundary is the whole product. In practice you will use the model in two ways: as shared vocabulary when someone says "that's ...

What Is a B-tree Index - and When an Index Makes Things Worse

이미지
A B-tree index is a sorted, balanced tree stored on disk that lets a database find a row by key in a handful of page reads instead of scanning the whole table. When someone says "add an index" without qualifying it, they almost always mean a B-tree index - it is the default index type in essentially every relational database. The problem it exists to solve is a physical one. Table rows live wherever the storage engine put them, in no useful order. Without something else to consult, answering WHERE email = ? means reading every page of the table and discarding almost all of it. An index is a second structure that keeps the keys in sorted order and points back at the rows. Sorted order is what makes binary search possible, and the tree shape is what keeps that search cheap when the data lives on a device where every read costs you a round trip. The catch is that you now have two structures to keep consistent on every write. That trade is the whole story, and it is why ...

What Is Immutable Infrastructure - and When You Actually Don't Need It

이미지
Immutable infrastructure is a deployment model where you never change a running server. If you need a new version of the application, a patched kernel, or a different config value, you build a fresh machine image with that change already in it and replace the old instance entirely. The problem it exists to solve is configuration drift . When servers are modified in place — an SSH session here, a package upgrade there, a hotfix applied at 2am and never written down — the fleet slowly stops being identical. After a year, the machine that has been running longest is a unique artifact that nobody can rebuild. When it fails, you are debugging an archaeology problem. Immutable infrastructure removes that failure mode by removing the capability that causes it. Servers become disposable: short-lived, built from a recorded definition, and thrown away rather than repaired. The cost is that every change, however small, now goes through a build-and-replace cycle. That is the whole tradeoff, an...

What Is a Feature Flag - and When You Actually Don't Need One

이미지
A feature flag is a conditional in your running code that decides, at request time, whether a particular code path executes. The point of a feature flag is that the decision lives outside the deployed artifact - you change behaviour by changing a value somewhere else, not by shipping a new build. That solves one specific problem: in a normal pipeline, deploying code and releasing behaviour are the same event. Merge, build, ship, and the moment the binary is live, users have the new thing. If it's wrong, your only lever is another deploy. Flags break that coupling. The code goes out dark, and the decision to turn it on becomes a separate, cheap, reversible action - one you can take for 1% of users, or for one internal account, or for everyone, and then undo in seconds. The cost is that every flag is a branch in your runtime behaviour that someone has to own, test, and eventually delete. That bill is real, and most of this page is about when it is worth paying. Concept Fe...