Plurrrr

Wed 12 Apr 2023

Why We Ditched RabbitMQ And Replaced It With A Postgres Queue

We recently ripped out RabbitMQ from our system and replaced it with a queue built on top of our Postgres db and written in SQL. The change took half a day to implement + test, and had a net delta of -580 LOC. Much more importantly, it drastically improved the reliability and resiliency of our system. This is a writeup of that change, the rationale behind it, and how we did it.

Source: SQL Maxis: Why We Ditched RabbitMQ And Replaced It With A Postgres Queue, an article by Charles Chretien.

Quickly formatting a stack of commits

A certain category of developer uses Git with a “patch stack” workflow, in which they accumulate a sequence of small, individually-reviewable commits that together implement a large change. In these cases, it’s oftentimes useful to run linters or formatters on each commit in the stack and apply the results. However, this can be tedious, and a naive approach can cause needless merge conflicts. (One workaround is to run formatters on each commit in the stack backwards.)

git-branchless’s git test command offers a solution to quickly run formatters, etc., on an entire stack of commits without causing merge conflicts. Additionally, it can be performed in parallel, and it caches results so that reformats of the same commits are skipped. You can see the announcement post or the documentation for git test.

Source: Quickly formatting a stack of commits, an article by Waleed Khan.

Narvik: Hitler's First Defeat (2022)

April 1940. The eyes of the world are on Narvik, a small town in northern Norway, source of the iron ore needed for Hitler's war machinery. Through two months of fierce winter warfare, Hitler is dealt his first defeat.

In the evening I watched Narvik: Hitler's First Defeat. I liked the movie and give it a 7 out of 10.