Skip to main content
~/writing

Writing

Everything I publish, newest first — blog posts, opinions, and notes together.

Blog

Two-sided membership needs one lock, not two

A bidirectional relationship — users know their rooms, rooms know their users — has to be updated under a single lock, or readers will catch it half-done.

2 min read
#Go#Concurrency#Data Structures#Real-time Systems
Blog

Endpoint maps over hand-rolled methods

When a client library wraps ~25 near-identical HTTP endpoints, describing them as data instead of writing 25 methods pays off — with one real trade-off.

2 min read
#Go#API#API Design#REST

Blog →Opinions →Notes →