Building a Delayed Message System with Redis and FastAPI

Recently, I had a chance to help a fellow software engineer with an interesting project – building a system that allows printing delayed messages using Redis. The requirements were simple: 1. Implement a POST API endpoint that accepts a string message and a relative time in seconds (since now).2. Implement…

Proper use of static keyword

Recently I found a funny bug in our code and I wanted to share some insights on it so you won’t do the same mistakes. Let’s assume we have a function that produces a lot of output and it can run from multiple threads. I wrote a simple program to…

Why you shouldn’t trust the documentation ?

Today Microsoft Azure introduced the new F-series VM sizes (you can read about it here) and our software faced a bizarre issue. When we want to create a new instance in Azure, we have an implementation that chooses VM size based on some criteria. One of the criteria is the…