Articles on architecture
Every GhostPane article about architecture — 5 in total.
-
How to build web analytics on Cloudflare Workers
Analytics is a write-heavy workload behind a read-heavy interface. On a free tier that constraint decides almost every design choice, including one that is not obvious.
-
Counting unique visitors with Durable Objects
Two edge locations each seeing one visitor cannot tell whether that is one person or two. Solving that properly turns out to give you session stitching and real-time for nothing.
-
Using Cloudflare D1 for analytics: what works and what does not
D1 is SQLite with a request budget. That combination rules out the obvious analytics schema and makes a less obvious one work very well.
-
Server-side versus client-side analytics: what each can actually see
The debate is usually framed as accuracy versus detail. That is roughly right, but the specific list of what each side can and cannot observe is more useful than the slogan.
-
Edge analytics: counting the request instead of the page
Moving measurement from the browser into the request path changes what is observable. Two things become visible that no tracking script has ever been able to see.