Recent Posts (redis)
Redis Modes Explained: Standalone, Replication, Sentinel and Cluster
- By Ercan
- 07/11/2025
Redis is one of the most popular in-memory data stores today — fast, simple, and widely adopted. But when it comes to deploying Redis in production, the question is no longer “How do I run Redis?” — it’s “Which mode should I run it in?” In this guide, we’ll explore Redis’s four main operation modes: Standalone Replication (Master–Slave) Sentinel Cluster We’ll discuss what each mode does, when it’s useful, and when you should consider moving to the next level. 1. Redis Standalone What It Is The simplest form of Redis — a single redis-server instance running on on..
Simplifying Redis Cluster Setup with Docker
- By Ercan
- 07/11/2025
When you work with Redis in cluster mode, local setup can quickly become a pain — especially when new developers join the team or when Redis is upgraded to a new version. Traditionally, Redis cluster initialization requires building from source and running manual scripts. Each time the version changes, the build process has to be repeated, which isn’t ideal for agile teams or fast-paced projects. In this article, I’ll share how I built a Redis cluster Docker image based on the official Redis image, allowing you to spin up a full cluster in seconds with a single docker run command. 1. ..
Redis Pub/Sub Explained with a Real-World Example
- By Ercan
- 29/10/2025
Real-time communication between distributed services is a common challenge in modern applications. Traditional approaches, such as polling the database or cache on each request, introduce latency, network overhead, and scalability issues. To tackle this, Redis Pub/Sub provides a push-based notification mechanism that allows instances to stay in sync instantly and efficiently. To illustrate this concept, we implemented a feature flag synchronization project in Spring Boot. While feature flags serve as our example scenario, the core lesson is about Redis Pub/Sub architecture and its advan..
Spring Boot Rate Limiting Example based on Redis
- By Ercan
- 15/10/2025
Rate limiting is one of the most fundamental building blocks in backend engineering — it protects your system from excessive requests, ensures fair usage, and prevents overload. While there are countless ways to implement it, achieving both accuracy and efficiency in a distributed environment is a more delicate challenge. In this post, I’ll share my hands-on experience building a Redis-based rate limiting system in Spring Boot, comparing five popular algorithms, and highlighting how Lua scripting can significantly improve performance and reliability. Project Overview The project, a..
