TutorialPost
A router in 20 lines
Each path gets its own handler, and /posts/:slug hands the slug over as a parameter. None of the 20 lines is a regular expression.
Backend developer in Weststadt. Writes the series here, runs stummel on a mini PC under her desk, and answers pages one week in six.
TutorialPost
Each path gets its own handler, and /posts/:slug hands the slug over as a parameter. None of the 20 lines is a regular expression.
Letter
Incident
Redirects worked, but no click was counted between 22:40 and 07:51. A migration had locked the clicks table.
Resolved
Minor
Every redirect worked, but no click was counted for nine hours. A migration I started at 22:40 waited for a lock on Migrations now run with clicks and held up every insert behind it. The counter queue filled, and stummel dropped clicks it could not write.clicks and waits for a lock.ALTER TABLE is waiting behind a long SELECT from the stats export.SET lock_timeout = '5s' and fail instead of waiting. Rerunning a failed migration costs a minute; losing a night of clicks costs a night of clicks.
TutorialPost
Method, path, headers and body, turned into a standard Request. The server still answers everything with the same text.
Post
stummel looked up every code with a sequential scan over 1.2 million clicks’ worth of links. EXPLAIN ANALYZE showed it in one line.
1 min
PostMembers only
Seven questions I answer before any migration touches a table with data in it. For members, free.
1 min
TutorialPost
Chapter 1 of six: an empty folder, Node 24 and a server that says Hello to every request. No dependencies, now or later.
PostPaid members only
I was paged 14 times in my first week on call and needed to act on three. Twelve weeks later it was three pages and two actions.
1 min
Post
A 150-euro mini PC under the desk gives numbers I trust more than my laptop’s. Same machine, same load, every time.
1 min
Post
Every element a post here can use, written the way Lene and I write them.
6 min
Post
Test first when I know what the answer should be. Code first when I am still finding out what the question is.
1 min