-
•
14 min read
This article is also available on YouTube! The Token Bucket algorithm is a flexible and efficient rate-limiting mechanism. It works by filling a bucket with tokens at a fixed rate (e.g., one token per second). Each request consumes a token, and if no tokens are available, the request is rejected. The bucket has a maximum…
-
•
14 min read
This article is also available on YouTube! The Fixed Window Counter is the simplest and most straightforward rate-limiting algorithm. It divides time into fixed intervals (e.g., seconds, minutes, or hours) and counts the number of requests within each interval. If the count exceeds a predefined threshold, the requests are rejected until the next interval begins. Looking for…
-
•
6 min read
This article is also available on YouTube! Rate limiting — it’s something you’ve likely encountered, even if you haven’t directly implemented one. For example, have you ever been greeted by a “429 Too Many Requests” error? That’s a rate limiter in action, protecting a resource from overload. Or maybe you’ve used a service with explicit request quotas…
-
•
13 min read
Today, I decided to ask people on Twitter what was the first message queue system that came to their mind. And to my surprise, one of the responses was: Postgres. PostgreSQL 😅https://t.co/rXlvhPTmyZ — João Paulo Gomes 🇧🇷 🇳🇱 @johnowl@bolha.us (@john_owl) July 8, 2024 I opened the link and got surprised not only by the possibility…
-
The open-source community and giant cloud providers like Amazon Web Services (AWS), Google Cloud Platform (GCP), and Azure have always had a complex relationship. One of the most compelling stories that highlights this tension is the saga between Redis Labs and these tech giants. The Genesis of Redis Before diving into the complexities, it’s important…
-
•
15 min read
In this story, we will dive into Redis Stream, understand what they are, how they work, and how to easily get started with them. As the need to process real-time streaming data continues to grow, it’s no surprise that Redis has introduced support for stream-like data structures. A stream allows us to process and analyze…
-
•
8 min read
Besides being a database, Redis is also a message broker that supports typical pub/sub operations. In this story, we’ll dive into the world of Pub/Sub in Redis and explore its capabilities and limitations. Pub/Sub in a nutshell Pub/Sub stands for “Publish/Subscribe”. It is a pattern in computer programming that involves allowing messages to be sent from…
-
•
6 min read
Redis is an in-memory database that is widely used for caching, real-time analytics, and message brokering. One of the key features of Redis is its support for transactions, which allows you to execute a series of commands as a single unit of work. This ensures that either all of the commands are completed, or none of them…
-
•
4 min read
It all started with my attendance at Brian Sam-Bodden’s presentation at Spring IO 2022, which rose a great curiosity about how powerful Redis could be as a primary database. The main reason was speed, a writing operation takes less than a millisecond to be performed due to Redis data being stored in memory. I needed to…
-
•
12 min read
If you read my story on 10 things you didn’t know about Redis — From a Message Broker to a Graph Database, and already have your own server running locally, as explained in How to run Redis locally in a Docker Container and manage it with Redis Insight and Redis CLI. You are ready to enable Redis…