Tagged articles
18 articles
Page 1 of 1
Architecture & Thinking
Architecture & Thinking
Dec 16, 2025 · Backend Development

Designing a 100k RPS Like/Read Counter with Redis and MySQL

This article explains how to build a high‑throughput like and read counter that can handle 100,000 requests per second by layering Redis caching, optional AOF or MySQL persistence, cleaning invalid client requests, and separating business, statistics, and reporting logic.

Countermysql
0 likes · 5 min read
Designing a 100k RPS Like/Read Counter with Redis and MySQL
Tech Freedom Circle
Tech Freedom Circle
Oct 25, 2025 · Databases

Designing a 10 WQPS Redis Counter Component: A Systematic Timer Solution

This article presents a complete, step‑by‑step analysis of a high‑concurrency Redis counter component that supports up to 100 000 QPS, covering business pain points, architectural design, two core counting strategies, sharding, local batch optimization, code walkthroughs, and performance benchmark results.

CounterSliding WindowSpring Boot
0 likes · 33 min read
Designing a 10 WQPS Redis Counter Component: A Systematic Timer Solution
Java One
Java One
Sep 8, 2025 · Operations

Understanding Prometheus Metric Types: Gauge, Counter, Summary, and Histogram Explained

Prometheus supports four core metric types—gauge, counter, summary, and histogram—each with distinct semantics and usage patterns; this guide explains their definitions, how to update them via client libraries, and how they appear in the Prometheus text exposition format, including example code and query tips.

CounterGaugeHistogram
0 likes · 10 min read
Understanding Prometheus Metric Types: Gauge, Counter, Summary, and Histogram Explained
Ma Wei Says
Ma Wei Says
Apr 23, 2025 · Backend Development

Mastering Redis Counters: INCR/INCRBY vs DECR/DECRBY and Robust Design Patterns

This article explains Redis's atomic counter commands (INCR, INCRBY, DECR, DECRBY), highlights their pitfalls such as missing TTL and concurrency issues, and presents practical design solutions—including SET NX+EX initialization, double‑TTL compensation, retry queues, fallback strategies, and performance optimizations like Lua scripting and pipelining.)

CounterTTLdecr
0 likes · 10 min read
Mastering Redis Counters: INCR/INCRBY vs DECR/DECRBY and Robust Design Patterns
Test Development Learning Exchange
Test Development Learning Exchange
Jun 26, 2024 · Fundamentals

Python collections module: Counter, defaultdict, deque, namedtuple, ChainMap, custom containers, heapq, and LRU cache examples

This article introduces several useful classes from Python's collections module—including Counter, defaultdict, deque, namedtuple, ChainMap, UserList/UserDict/UserString, as well as heapq and an OrderedDict‑based LRU cache—explaining their purposes and providing ready‑to‑run code examples for each.

ChainMapCollectionsCounter
0 likes · 6 min read
Python collections module: Counter, defaultdict, deque, namedtuple, ChainMap, custom containers, heapq, and LRU cache examples
MaGe Linux Operations
MaGe Linux Operations
Jan 29, 2022 · Fundamentals

Master Python’s Powerful Containers: Counter, defaultdict, OrderedDict, deque & ChainMap

This article introduces Python’s collections module as a versatile alternative to built‑in containers, detailing the purpose, key methods, and practical code examples for Counter, defaultdict, OrderedDict, namedtuple, deque, and ChainMap, helping developers choose the right specialized container for their tasks.

ChainMapCollectionsCounter
0 likes · 11 min read
Master Python’s Powerful Containers: Counter, defaultdict, OrderedDict, deque & ChainMap
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Sep 24, 2021 · Backend Development

Mastering Redis: 16 Real-World Patterns for Caching, Locks, Counters, and More

This article presents sixteen practical Redis use‑cases—including caching, distributed sessions, locks, global IDs, counters, rate limiting, bitmap statistics, shopping carts, timelines, message queues, lotteries, likes, tags, filtering, follow models, and ranking—explaining their data types, commands, and sample code.

BitmapCounterMessage Queue
0 likes · 8 min read
Mastering Redis: 16 Real-World Patterns for Caching, Locks, Counters, and More
MaGe Linux Operations
MaGe Linux Operations
Sep 17, 2021 · Backend Development

Mastering Redis: Caching, Distributed Locks, Counters, and More for Scalable Backend Systems

This article explores how to leverage Redis for a wide range of backend functionalities—including caching, distributed data sharing, locks, global IDs, counters, rate limiting, bitmap statistics, shopping carts, timelines, message queues, lotteries, likes, product tagging, filtering, follow relationships, and leaderboards—providing practical code examples and usage patterns.

BitmapCounterbackend-development
0 likes · 8 min read
Mastering Redis: Caching, Distributed Locks, Counters, and More for Scalable Backend Systems
MaGe Linux Operations
MaGe Linux Operations
Feb 19, 2020 · Fundamentals

Boost Your Python Productivity with 5 Overlooked Tricks

This article shares five practical Python tips—dictionary and set comprehensions, the Counter class, pretty‑printing JSON, a quick XML‑RPC web service, and criteria for choosing solid open‑source libraries—each illustrated with clear code examples to help developers write cleaner, more efficient code.

ComprehensionsCounterJSON
0 likes · 8 min read
Boost Your Python Productivity with 5 Overlooked Tricks