← all notes

Your Cell just got closer: GeoDNS on Tissue.

Tissue now runs multiple production edges, and every Cell is served from the one nearest to the visitor. The URL doesn't change, your code doesn't change, and there is nothing to configure: the routing happens at the DNS layer, before the first packet of the request is even sent.

A visitor on the US West Coast and a visitor in Europe now ask the same question (where is crane-a4f2.strand-9c.tissue.dev?) and get different answers. Each one lands on the edge with the fewest milliseconds between them and your Cell.

Every Cell lives at <cell>.<account>.tissue.dev, two labels deep. That detail turns out to decide the whole architecture, because of a rule written into DNS itself: a wildcard record matches exactly one label. *.tissue.dev matches foo.tissue.dev, but it does not match crane-a4f2.strand-9c.tissue.dev.

No hosted DNS product can wildcard names at arbitrary depth, let alone pick the answer by the visitor's location on top of that. So Tissue has always run its own authoritative nameserver for tissue.dev: instead of storing a zone file, it synthesizes an answer for any Cell name, at any depth, on the fly. Adding geography meant teaching that synthesis one more trick: choosing which edge IP to answer with.

When a query arrives, the nameserver looks up where it came from in an IP-geolocation database, computes the great-circle distance to each healthy edge, and answers with the closest one:

$ dig +short crane-a4f2.strand-9c.tissue.dev   # from San Francisco
→ the US-West edge

$ dig +short crane-a4f2.strand-9c.tissue.dev   # from Berlin
→ the US-Central edge (closest to Europe today)

Most queries don't come from you, though. They come from your resolver (Google's 8.8.8.8, Cloudflare's 1.1.1.1, your ISP), whose servers may sit nowhere near you. Geolocating the resolver would route you to its nearest edge, not yours. The fix is EDNS Client Subnet (RFC 7871): well-behaved resolvers attach a truncated form of your network to the query, and our nameserver prefers that over the packet's source address. You get routed by where you are.

Geo answers carry a short TTL, so when the picture changes (an edge drains for maintenance, a new one joins) clients re-resolve and follow within a minute, not a day.

Handing out a nearby IP is worthless if that edge can't actually serve you. The real work was making every edge complete, able to answer for any Cell on the platform:

LayerHow every edge serves it
Cell codeFetched on demand the first time an edge sees a request for a Cell, then cached locally. Deploy once; every edge picks it up.
Objects (g7)Replicated across edges. A file uploaded through one edge is served from any of them.
SQL (c3)Each database has a home. Your Cell runs on the edge nearest the visitor, and its queries are routed to the database's home over our private backbone, transparently, so your data stays in exactly one authoritative place.
TLSCertificates live in a store shared by all edges, so any edge can terminate HTTPS for any Cell, and for your custom domains.

The compute follows the visitor; the data keeps a single home. That's a deliberate trade: your Cell's static assets, code, and TLS all serve from the nearest edge, while a database write never has to reconcile two conflicting copies. Read replicas at every edge are the natural next step, and the architecture is built to grow into it.

A geo-router that keeps sending people to a dead server is worse than no geo-router. The nameserver continuously health-checks every edge; one that stops answering is dropped from the candidate set, and its region falls back to the nearest healthy edge. Combined with the short TTL, a failing edge drains out of the request path in about a minute. No pager, no DNS change to push.

Nothing. Existing Cells, existing URLs, and custom domains (which resolve through the same path via their CNAME) all geo-route now. Visitors far from US-West simply get faster first bytes, and the platform gained the shape it needs to keep adding edges: stand one up, let it fill its caches, add it to the map.

Deploy a function, get a live URL, and let DNS worry about the geography. Sign up and run ribo deploy.