Tagged: Go
4 posts tagged “Go”.
- N° 008
Teaching my Telegram bot to complain with us, not about us
I added /roast to my group-chat bot. The first version made fun of the wrong person, the second mocked the right one, and the one we kept roasts the situation instead. Plus what it took to get Claude running on Bedrock.
- N° 007
A Postgres job queue in one statement, and what breaks when you remove each part
UPDATE ... WHERE id = (SELECT ... FOR UPDATE SKIP LOCKED) is the standard Postgres job queue. I removed its parts one at a time: duplicate claims, workers that think the queue is empty, and a queue that runs in single file.
- N° 006
I built a bot that listens to my friends' voice messages so nobody else has to
A Telegram bot that turns long voice messages and round videos into short, funny summaries. Two Go Lambdas, Amazon Transcribe, Nova Lite on Bedrock, and the small surprises along the way.
- N° 002
A missing `tx` didn't fail my test. It deadlocked my service
I broke a Postgres transaction on purpose and expected a red test. The test hung instead. One query that skipped the transaction made every pool connection wait on another, and Postgres had no way to tell.