Tagged articles
970 articles
Page 2 of 10
JD Tech
JD Tech
Jul 2, 2025 · Backend Development

How We Tamed Database Lock Contention in High‑Volume Inventory Allocation

This article examines the severe row‑lock competition in MySQL during hot‑SKU inventory positioning, analyzes its causes and risks, and presents a comprehensive set of mitigation strategies—including DB account isolation, flow‑control, request merging, and message‑queue optimizations—validated by extensive performance testing and successful rollout across multiple clusters.

Message QueuePerformance Testingbackend optimization
0 likes · 14 min read
How We Tamed Database Lock Contention in High‑Volume Inventory Allocation
Architecture & Thinking
Architecture & Thinking
Jun 30, 2025 · Backend Development

Mastering RocketMQ Retry: Producer & Consumer Strategies for Reliable Messaging

This article deeply explores Apache RocketMQ's retry mechanisms, detailing producer and consumer retry strategies, flow control handling, dead‑letter queue management, advanced configurations, best practices, and comparisons with Kafka and RabbitMQ, providing practical code examples and monitoring recommendations for building highly reliable distributed systems.

Dead Letter QueueDistributed SystemsIdempotency
0 likes · 8 min read
Mastering RocketMQ Retry: Producer & Consumer Strategies for Reliable Messaging
Lin is Dream
Lin is Dream
Jun 27, 2025 · Backend Development

How to Solve Common RocketMQ Issues: Duplicates, Throttling, Retries, and Loss

This article examines frequent RocketMQ problems such as duplicate sending, flow‑control throttling, message retries, duplicate consumption, backlog, and loss, and provides practical configuration tweaks, scaling strategies, batch sending, idempotent handling, and retry mechanisms to ensure reliable message delivery.

Distributed SystemsJavaMessage Queue
0 likes · 9 min read
How to Solve Common RocketMQ Issues: Duplicates, Throttling, Retries, and Loss
Lin is Dream
Lin is Dream
Jun 26, 2025 · Backend Development

Unveiling RocketMQ: How Messages Journey Through Storage, Delivery, and Expiration

This article systematically breaks down RocketMQ's core mechanisms—covering message roles, disk storage, push/pull delivery, expiration handling, retry queues, and cluster failover—so developers can understand every stage a message undergoes from creation to cleanup and ensure reliable, high‑performance messaging.

Distributed SystemsJavaMessage Queue
0 likes · 13 min read
Unveiling RocketMQ: How Messages Journey Through Storage, Delivery, and Expiration
Lin is Dream
Lin is Dream
Jun 25, 2025 · Backend Development

12 Essential RocketMQ Best Practices for Reliable Messaging

This article presents a comprehensive set of RocketMQ usage guidelines—including topic and tag conventions, producer and consumer group naming, key handling, logging, retry mechanisms, and cluster deployment recommendations—to help engineers build stable, high‑performance, and observable messaging systems in production environments.

Distributed SystemsMessage QueueRocketMQ
0 likes · 9 min read
12 Essential RocketMQ Best Practices for Reliable Messaging
Lin is Dream
Lin is Dream
Jun 24, 2025 · Backend Development

Master RocketMQ Console: From Zero to Full Monitoring in Minutes

This article walks you through installing and using the RocketMQ Dashboard to monitor topics, brokers, producers, consumers, and message details, explains common pitfalls such as client‑ID conflicts in Docker, and demonstrates how to troubleshoot consumption issues, TPS metrics, and dead‑letter handling.

DashboardJavaMessage Queue
0 likes · 9 min read
Master RocketMQ Console: From Zero to Full Monitoring in Minutes
Architect
Architect
Jun 22, 2025 · Backend Development

Mastering Idempotency: Ensure Reliable Operations in Distributed Systems

Idempotency ensures that repeated service calls or user actions produce the same effect without unintended side effects, a critical concern in distributed and microservice architectures; this article explains its principles, SQL examples, HTTP semantics, token strategies, lock handling, and message‑queue solutions.

IdempotencyMessage QueueToken
0 likes · 13 min read
Mastering Idempotency: Ensure Reliable Operations in Distributed Systems
Lin is Dream
Lin is Dream
Jun 20, 2025 · Backend Development

Unlocking RocketMQ: What Every SendResult Field Means

This article explains the composition of RocketMQ's SendResult object returned after a successful synchronous send, detailing each field such as sendStatus, msgId, offsetMsgId, messageQueue, and queueOffset, and provides practical examples and a full field‑by‑field breakdown for Java developers.

JavaMessage QueueRocketMQ
0 likes · 6 min read
Unlocking RocketMQ: What Every SendResult Field Means
Lin is Dream
Lin is Dream
Jun 19, 2025 · Backend Development

Master RocketMQ with Spring Boot: Complete Guide to Messaging APIs

This tutorial walks through integrating Alibaba's RocketMQ into a Spring Boot application, covering Maven dependencies, producer and consumer configurations, and detailed examples of synchronous, asynchronous, one‑way, delayed, ordered, transactional, request‑response, batch, and pull messaging APIs, along with best‑practice recommendations.

JavaMessage QueueMessaging API
0 likes · 21 min read
Master RocketMQ with Spring Boot: Complete Guide to Messaging APIs
Architecture & Thinking
Architecture & Thinking
Jun 19, 2025 · Backend Development

Why Does Message Backlog Occur in Kafka/RocketMQ and How to Fix It

The article explains how message backlog arises when producers outpace consumers in systems like Kafka or RocketMQ, outlines primary causes such as unexpected production spikes, broker failures, and consumer bottlenecks, and provides step‑by‑step mitigation strategies including capacity scaling, temporary queues, and optimization techniques for producers, brokers, and consumers.

BacklogMessage QueueRocketMQ
0 likes · 7 min read
Why Does Message Backlog Occur in Kafka/RocketMQ and How to Fix It
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Jun 16, 2025 · Backend Development

How RocketMQ Guarantees No Message Loss, Duplication, or Disorder

This article explains RocketMQ’s architecture, the roles of NameServer, Broker, Producer, Consumer, and how each component ensures reliable message delivery—covering synchronous, asynchronous, and one‑way sending, storage mechanisms, consumer retries, dead‑letter queues, installation steps, and Java client integration with code examples.

Distributed SystemsInstallationJava
0 likes · 20 min read
How RocketMQ Guarantees No Message Loss, Duplication, or Disorder
ITPUB
ITPUB
Jun 14, 2025 · Backend Development

When Should You Choose RPC Over MQ? A Practical Guide to Decoupling Services

The article explains why RPC should be used when callers need immediate results, while MQ is preferable for fire‑and‑forget notifications, illustrating the trade‑offs with code examples, common pitfalls of misusing each method, and practical steps to achieve physical and logical decoupling in backend systems.

Backend ArchitectureDecouplingMessage Queue
0 likes · 6 min read
When Should You Choose RPC Over MQ? A Practical Guide to Decoupling Services
Architect
Architect
Jun 6, 2025 · Backend Development

How to Prevent Duplicate Messages in Kafka and Pulsar: A Practical Guide

This article explains the three message delivery semantics, the common causes of duplicate messages in queue systems, and presents concrete producer‑side, broker‑side, and consumer‑side deduplication techniques for Kafka and Pulsar, including code samples and best‑practice recommendations.

BackendIdempotenceKafka
0 likes · 9 min read
How to Prevent Duplicate Messages in Kafka and Pulsar: A Practical Guide
Instant Consumer Technology Team
Instant Consumer Technology Team
Jun 5, 2025 · Big Data

Mastering Kafka in Production: Boost Throughput, Ensure Reliability, and Avoid Data Loss

This article shares practical Kafka production insights, covering architecture overview, producer throughput tuning, message loss prevention, broker and consumer configurations, duplicate consumption avoidance, backlog mitigation, ordering guarantees, and the mechanics of consumer group rebalancing, helping engineers build stable, high‑performance streaming pipelines.

Big DataKafkaMessage Queue
0 likes · 15 min read
Mastering Kafka in Production: Boost Throughput, Ensure Reliability, and Avoid Data Loss
Raymond Ops
Raymond Ops
Jun 1, 2025 · Backend Development

RocketMQ vs Others: Key Features, Reliability, and Performance

RocketMQ, an Apache‑licensed distributed message queue from Alibaba, offers low latency, high reliability, and high throughput through features like distributed architecture, synchronous disk flushing, master‑slave replication, and flexible messaging models, and it compares favorably against Kafka, RabbitMQ, and ActiveMQ in various scenarios.

High ThroughputMessage QueueRocketMQ
0 likes · 11 min read
RocketMQ vs Others: Key Features, Reliability, and Performance
Selected Java Interview Questions
Selected Java Interview Questions
May 19, 2025 · Backend Development

Designing Automatic Order Closure: Comparing DB Polling, Redis Expiration, Redis Zset Delay Queue, and Message Queue Delayed Messages

This article examines four techniques for automatically closing overdue orders—database polling, Redis key‑expiration listeners, Redis sorted‑set delay queues, and message‑queue delayed messages—detailing their implementations, advantages, drawbacks, and practical recommendations for reliable backend systems.

Message Queuedatabase pollingdelayed tasks
0 likes · 11 min read
Designing Automatic Order Closure: Comparing DB Polling, Redis Expiration, Redis Zset Delay Queue, and Message Queue Delayed Messages
Su San Talks Tech
Su San Talks Tech
May 19, 2025 · Backend Development

Mastering Asynchronous Architecture: Real‑World Scenarios and Spring Cloud Gateway

This article explains synchronous versus asynchronous processing through a parcel‑delivery example, outlines core async concepts, presents common async techniques such as message queues, event‑driven design and non‑blocking I/O, and demonstrates practical implementations with Spring Cloud Gateway, Netty, ELK‑Kafka pipelines, and CompletableFuture batch processing.

Java concurrencyMessage QueueMicroservices
0 likes · 17 min read
Mastering Asynchronous Architecture: Real‑World Scenarios and Spring Cloud Gateway
Java Tech Enthusiast
Java Tech Enthusiast
May 11, 2025 · Backend Development

Implementing Automatic Order Cancellation After 30 Minutes: Five Practical Solutions

This article explains why orders that remain unpaid for 30 minutes should be automatically cancelled and compares five technical approaches—database polling, JDK Timer, message‑queue delayed queues, distributed schedulers like Quartz, and Redis expiration listeners—detailing their implementation steps, code samples, pros, cons, and suitable scenarios.

Message QueueOrder CancellationQuartz
0 likes · 19 min read
Implementing Automatic Order Cancellation After 30 Minutes: Five Practical Solutions
Architecture Digest
Architecture Digest
May 9, 2025 · Backend Development

Implementing Order Auto‑Close with Delayed Tasks: Best Practices and Pitfalls

The article examines how e‑commerce platforms implement order auto‑closure using delayed tasks, compares methods such as message‑queue delayed delivery, Redisson delay queue, Redis expiration listening, RabbitMQ dead‑letter queues and time wheels, and recommends reliable approaches while warning against unsafe practices.

Backend DevelopmentMessage QueueRabbitMQ
0 likes · 6 min read
Implementing Order Auto‑Close with Delayed Tasks: Best Practices and Pitfalls
IT Services Circle
IT Services Circle
May 7, 2025 · Backend Development

Understanding RocketMQ Long‑Polling Mechanism and Its Implementation

This article explains how RocketMQ implements long‑polling for message consumption, detailing the pull‑based model, the broker and consumer timeout settings, the internal suspension of pull requests, and the processing loop that resumes suspended requests to improve efficiency.

BackendBrokerConsumer
0 likes · 7 min read
Understanding RocketMQ Long‑Polling Mechanism and Its Implementation
Architect
Architect
May 3, 2025 · Backend Development

Why Rebuild a Job Scheduler? Inside a Lightweight Distributed Timing Framework

This article explains the motivation, design choices, and implementation details of a custom distributed job scheduling framework, covering its architecture, load‑balancing strategy, message‑queue handling, persistence mechanisms, and key code snippets, while comparing it to existing solutions like Quartz, XXL‑Job, and PowerJob.

Distributed SystemsJavaMessage Queue
0 likes · 16 min read
Why Rebuild a Job Scheduler? Inside a Lightweight Distributed Timing Framework
Architect
Architect
May 2, 2025 · Backend Development

Understanding and Implementing LMAX Disruptor in Java

This article introduces the high‑performance LMAX Disruptor library, explains its core concepts such as Ring Buffer, Sequence, Sequencer, and Wait Strategy, and provides a step‑by‑step Java demo with complete code to build a producer‑consumer message queue.

Backend DevelopmentDisruptorJava
0 likes · 11 min read
Understanding and Implementing LMAX Disruptor in Java
Cognitive Technology Team
Cognitive Technology Team
Apr 30, 2025 · Backend Development

Preventing Message Loss, Duplicate Consumption, and Backlog in RocketMQ: Best Practices and Strategies

This article examines the three major reliability challenges of message queues—loss, duplicate consumption, and backlog—and provides detailed RocketMQ‑specific strategies, including producer acknowledgment, broker replication, idempotent consumer design, monitoring, scaling, and parameter tuning to ensure high‑availability distributed systems.

Message QueueRocketMQ
0 likes · 17 min read
Preventing Message Loss, Duplicate Consumption, and Backlog in RocketMQ: Best Practices and Strategies
Lobster Programming
Lobster Programming
Apr 28, 2025 · Backend Development

How RocketMQ Transactional Messages Ensure Distributed Data Consistency

This article explains RocketMQ's transactional message mechanism, covering half‑message storage, three transaction states, status‑check procedures, key APIs, storage reliability, and the two‑phase commit process that guarantees eventual consistency in distributed systems.

Data ConsistencyDistributed SystemsMessage Queue
0 likes · 6 min read
How RocketMQ Transactional Messages Ensure Distributed Data Consistency
Java Architect Essentials
Java Architect Essentials
Apr 25, 2025 · Backend Development

Precise Order‑Closing Delayed Tasks: Best Practices and Common Pitfalls

This article compares several ways to implement order‑closing delayed tasks—message‑queue delayed delivery, Redisson DelayQueue, Redis expiration listening, RabbitMQ dead‑letter queues, and time wheels—explaining their mechanisms, drawbacks, and recommending the most reliable solutions for production systems.

Backend ArchitectureMessage QueueRabbitMQ
0 likes · 7 min read
Precise Order‑Closing Delayed Tasks: Best Practices and Common Pitfalls
Tencent Cloud Middleware
Tencent Cloud Middleware
Apr 24, 2025 · Backend Development

How TDMQ RocketMQ Implements Distributed Rate Limiting for High‑Throughput Messaging

This article explains TDMQ RocketMQ's distributed rate‑limiting mechanism, covering conversion rules, fast‑fail behavior, token‑based implementation, counting periods, client best practices, elastic TPS options, code examples for different SDK versions, monitoring tips, and answers to common throttling questions.

BackendDistributed SystemsMessage Queue
0 likes · 15 min read
How TDMQ RocketMQ Implements Distributed Rate Limiting for High‑Throughput Messaging
Lobster Programming
Lobster Programming
Apr 17, 2025 · Backend Development

How Local Message Tables Solve Distributed Transaction Challenges

Using a local message table, developers can break down distributed transactions into local database operations and asynchronous MQ messages, ensuring eventual consistency, simplifying implementation, and handling retries, while balancing advantages like simplicity and compatibility against drawbacks such as added maintenance and potential queue dependencies.

Backend ArchitectureDistributed SystemsLocal Message Table
0 likes · 5 min read
How Local Message Tables Solve Distributed Transaction Challenges
Cognitive Technology Team
Cognitive Technology Team
Apr 12, 2025 · Backend Development

Implementation Principles of RocketMQ Distributed Transaction Messages

The article explains how RocketMQ implements distributed transaction messages using a two‑phase commit model to ensure data consistency across micro‑service subsystems, detailing the workflow from half‑message production, broker handling, local transaction execution, commit/rollback decisions, and periodic status checks.

Backend DevelopmentMessage QueueRocketMQ
0 likes · 7 min read
Implementation Principles of RocketMQ Distributed Transaction Messages
Architecture and Beyond
Architecture and Beyond
Apr 12, 2025 · Backend Development

How to Keep Your AIGC Service Stable: Queueing and Rate‑Limiting Strategies

This article explains why AIGC services need queueing systems and rate‑limiting, describes the user‑facing behaviors of both mechanisms, outlines design goals, compares queue and limiter implementations, and provides practical guidance on selecting middleware, monitoring, and integrating them into a production workflow.

AIGCBackendMessage Queue
0 likes · 28 min read
How to Keep Your AIGC Service Stable: Queueing and Rate‑Limiting Strategies
macrozheng
macrozheng
Apr 11, 2025 · Backend Development

How to Guarantee Exactly‑Once Message Consumption in High‑Concurrency Systems

This article explains common causes of duplicate message consumption in high‑traffic systems and presents a three‑layer defense—producer idempotence, broker de‑duplication, and consumer idempotent design—plus monitoring and reconciliation strategies to achieve reliable exactly‑once processing.

Exactly-OnceIdempotenceKafka
0 likes · 7 min read
How to Guarantee Exactly‑Once Message Consumption in High‑Concurrency Systems
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Apr 11, 2025 · Backend Development

Master RabbitMQ Exchanges: Direct, Topic, Fanout, and Headers Explained

RabbitMQ uses exchanges to route messages from producers to queues, and this guide details the four main exchange types—Direct, Topic, Fanout, and Headers—explaining their routing rules, suitable scenarios, and practical examples to help developers choose the right pattern for reliable messaging.

Backend DevelopmentExchangeMessage Queue
0 likes · 8 min read
Master RabbitMQ Exchanges: Direct, Topic, Fanout, and Headers Explained
Java Captain
Java Captain
Apr 10, 2025 · Backend Development

Design and Implementation of Delayed Task Processing for Order Systems

This article explains various approaches to delayed task handling—such as database polling, JDK DelayQueue, Redis expiration listeners, Redisson delay queues, RocketMQ delayed messages, and RabbitMQ dead‑letter queues—evaluating their advantages, drawbacks, and best‑practice recommendations for reliable order‑expiration workflows.

Distributed SystemsMessage Queuedelayed tasks
0 likes · 17 min read
Design and Implementation of Delayed Task Processing for Order Systems
Sanyou's Java Diary
Sanyou's Java Diary
Apr 10, 2025 · Backend Development

Why RocketMQ Beats Kafka: Architecture Simplified and Features Amplified

This article explains how RocketMQ, a Chinese‑origin message queue, simplifies Kafka’s architecture while adding powerful features such as tag‑based filtering, transactional messaging, delayed and dead‑letter queues, and a unified commit‑log storage model, making delayed processing and high‑throughput scenarios easier to implement.

Distributed SystemsKafkaMessage Queue
0 likes · 10 min read
Why RocketMQ Beats Kafka: Architecture Simplified and Features Amplified
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Apr 10, 2025 · Backend Development

Master RabbitMQ: Core Components and Architecture Explained

This article provides a comprehensive overview of RabbitMQ, an open-source AMQP-based message broker, detailing its core components—producers, exchanges, queues, consumers, and broker—along with auxiliary elements like bindings, connections, channels, virtual hosts, and key architectural features such as decoupling, flexible routing, reliability, and scalability.

AMQPBackend DevelopmentDistributed Systems
0 likes · 7 min read
Master RabbitMQ: Core Components and Architecture Explained
Tencent Cloud Middleware
Tencent Cloud Middleware
Apr 9, 2025 · Operations

How TDMQ Pulsar’s Cluster‑Level and Topic‑Partition Throttling Keeps Your Messaging System Stable

This article explains why high‑throughput producers and consumers can saturate CPU, memory, network and disk I/O in TDMQ Pulsar clusters, describes the built‑in cluster‑level distributed and topic‑partition rate‑limiting mechanisms, and provides practical guidance for configuration, monitoring, and troubleshooting.

Cluster ManagementMessage QueueOperations
0 likes · 12 min read
How TDMQ Pulsar’s Cluster‑Level and Topic‑Partition Throttling Keeps Your Messaging System Stable
php Courses
php Courses
Apr 1, 2025 · Backend Development

Integrating PHP Applications with Cloud-Native AI Services for Real-Time Decision Making

This article explains how to combine PHP web applications with modern cloud-native AI services—via REST APIs, SDKs, and message queues—to build efficient real-time decision systems, covering integration methods, sample code, use-case implementations such as recommendation, dynamic pricing, fraud detection, and performance optimization best practices.

Backend IntegrationCloud AIMessage Queue
0 likes · 8 min read
Integrating PHP Applications with Cloud-Native AI Services for Real-Time Decision Making
Selected Java Interview Questions
Selected Java Interview Questions
Mar 30, 2025 · Backend Development

Implementing Precise Order Cancellation: Pitfalls of Redis Expiration and Better Alternatives

The article explains why using Redis expiration or RabbitMQ dead‑letter queues for delayed order‑cancellation tasks is unreliable, compares several approaches such as message‑queue delayed delivery, Redisson delay queues, and time wheels, and recommends robust solutions like RocketMQ or Pulsar for accurate timing.

Message QueueRabbitMQTime Wheel
0 likes · 7 min read
Implementing Precise Order Cancellation: Pitfalls of Redis Expiration and Better Alternatives
Sanyou's Java Diary
Sanyou's Java Diary
Mar 17, 2025 · Backend Development

Mastering Flash Sale Scalability: Redis, MQ, and Inventory Hint Strategies

This article explores industry‑proven techniques for handling massive flash‑sale traffic, covering pressure‑distribution, Redis + MQ combos, Lua‑based stock deduction, RocketMQ transactional messages, and Alibaba Cloud's Inventory Hint to ensure consistency and performance under extreme concurrency.

Inventory HintLua ScriptMessage Queue
0 likes · 14 min read
Mastering Flash Sale Scalability: Redis, MQ, and Inventory Hint Strategies
Java Tech Enthusiast
Java Tech Enthusiast
Mar 14, 2025 · Backend Development

RocketMQ Message Tracing: Concepts, Configuration, and Implementation

RocketMQ’s message tracing feature records each message’s full lifecycle—including producer, broker, and consumer details such as timestamps, latency, and success flags—by enabling traceTopicEnable, creating an internal RMQ_SYS_TRACE_TOPIC, and allowing custom trace topics for fast diagnostics, end‑to‑end tracking, monitoring, and audit compliance.

BackendJavaMessage Queue
0 likes · 7 min read
RocketMQ Message Tracing: Concepts, Configuration, and Implementation
Code Ape Tech Column
Code Ape Tech Column
Mar 14, 2025 · Backend Development

Eight Common Use Cases of Message Queues in Backend Development

This article explores eight common scenarios for using message queues in backend development, covering asynchronous processing, service decoupling, traffic shaping, delayed tasks, log aggregation, distributed transactions, remote calls, and broadcast notifications, each illustrated with Java, RocketMQ, and Kafka code examples.

JavaKafkaMQ
0 likes · 15 min read
Eight Common Use Cases of Message Queues in Backend Development
Java Tech Enthusiast
Java Tech Enthusiast
Mar 9, 2025 · Backend Development

Handling Duplicate Messages in Message Queues

Message queues can deliver duplicates under at‑least‑once semantics, so to protect idempotent business logic such as orders and payments you should combine producer‑side idempotence (e.g., Kafka’s enable.idempotence), broker‑side deduplication (e.g., Pulsar), and a consumer‑side guard using unique IDs stored in a database or Redis.

IdempotenceKafkaMessage Queue
0 likes · 7 min read
Handling Duplicate Messages in Message Queues
Sanyou's Java Diary
Sanyou's Java Diary
Mar 6, 2025 · Backend Development

8 Real-World MQ Use Cases Every Backend Engineer Should Know

This article explores eight practical scenarios for using message queues—such as asynchronous processing, service decoupling, traffic shaping, delayed tasks, log collection, distributed transactions, remote calls, and broadcast notifications—providing code examples with RabbitMQ, RocketMQ, and Kafka to illustrate each pattern.

Broadcast NotificationsDistributed TransactionsMessage Queue
0 likes · 15 min read
8 Real-World MQ Use Cases Every Backend Engineer Should Know
Ops Development & AI Practice
Ops Development & AI Practice
Feb 20, 2025 · Backend Development

Mastering Apache RocketMQ: Ports, Commands, and Monitoring Tips

This guide explains the key port configurations of Apache RocketMQ brokers, details essential mqadmin commands for managing topics, checking status, and monitoring consumer progress, and provides practical examples to help administrators efficiently operate and troubleshoot RocketMQ clusters.

CLIDistributed SystemsMessage Queue
0 likes · 7 min read
Mastering Apache RocketMQ: Ports, Commands, and Monitoring Tips
IT Services Circle
IT Services Circle
Feb 20, 2025 · Backend Development

15 Common Redis Use Cases with Code Examples

This article presents fifteen practical Redis usage scenarios—including caching, distributed locks, leaderboards, counters, message queues, session management, bitmap sign‑ins, geolocation, rate limiting, pub/sub, delayed tasks, global IDs, recommendation models, user follow relationships, and timeline feeds—each illustrated with concise code snippets.

Message Queuegeolocationpub/sub
0 likes · 10 min read
15 Common Redis Use Cases with Code Examples
Zhuanzhuan Tech
Zhuanzhuan Tech
Feb 19, 2025 · Backend Development

High-Concurrency Flash Sale Solutions: Pressure Distribution, Redis + MQ, and Inventory Hint Techniques

This article examines common industry approaches for handling massive flash‑sale traffic, detailing pressure‑distribution sharding, Redis + MQ integration, the Inventory Hint optimization, and provides concrete Lua script examples and transactional‑message workflows for reliable stock deduction.

Inventory HintLua ScriptMessage Queue
0 likes · 12 min read
High-Concurrency Flash Sale Solutions: Pressure Distribution, Redis + MQ, and Inventory Hint Techniques
Senior Tony
Senior Tony
Feb 1, 2025 · Backend Development

How to Eliminate Duplicate and Missed Messages in Kafka Consumers

This article explains Kafka's push/pull consumption models, the impact of enable.auto.commit and auto.commit.interval.ms on offset handling, and presents practical configurations and code patterns plus MySQL and Redis based deduplication techniques to prevent both duplicate and missing message processing.

Duplicate ConsumptionIdempotencyMessage Queue
0 likes · 8 min read
How to Eliminate Duplicate and Missed Messages in Kafka Consumers
Architect
Architect
Jan 25, 2025 · Backend Development

HTTP Retry Strategies in Offline Store Systems: Simple Loop, Apache HttpClient, and MQ‑Based Asynchronous Retries

This article explores practical HTTP retry solutions for offline store applications, covering a basic loop retry, the built‑in retry mechanism of Apache HttpClient with custom handlers, and an asynchronous retry approach using message queues to achieve higher reliability and eventual consistency.

Apache HttpClientBackendHTTP
0 likes · 12 min read
HTTP Retry Strategies in Offline Store Systems: Simple Loop, Apache HttpClient, and MQ‑Based Asynchronous Retries
FunTester
FunTester
Jan 22, 2025 · Industry Insights

Aeron vs Chronicle Queue: Which Low‑Latency Messaging Solution Wins?

This article provides an in‑depth comparison of Aeron Queue and Chronicle Queue, examining their architectures, ideal use cases, performance characteristics, scalability, and persistence features to help engineers decide which low‑latency messaging system best fits distributed or single‑process applications.

AeronChronicle QueueLow latency
0 likes · 9 min read
Aeron vs Chronicle Queue: Which Low‑Latency Messaging Solution Wins?
Architecture & Thinking
Architecture & Thinking
Jan 14, 2025 · Backend Development

Master RocketMQ Basic Messages: Lifecycle, Code Samples & Use Cases

This guide explains Apache RocketMQ’s ordinary message concept, its full lifecycle, how to create topics, Java code for sending and receiving messages, key configuration tips, and real‑world scenarios such as asynchronous decoupling and traffic‑shaping for micro‑service architectures.

Distributed SystemsJavaMessage Queue
0 likes · 9 min read
Master RocketMQ Basic Messages: Lifecycle, Code Samples & Use Cases
IT Architects Alliance
IT Architects Alliance
Jan 11, 2025 · Backend Development

Why Microservices Can’t Escape Distributed Transactions—and How to Solve Them

The article explains why distributed transactions are inevitable in microservice architectures, outlines the challenges of data consistency, fault handling, and performance, and presents practical solutions such as message‑queue eventual consistency, two‑phase commit, Saga patterns, and tooling like Spring Cloud, Atomikos, and Narayana.

2PCBackend ArchitectureDistributed Transactions
0 likes · 17 min read
Why Microservices Can’t Escape Distributed Transactions—and How to Solve Them
Java Tech Enthusiast
Java Tech Enthusiast
Jan 10, 2025 · Backend Development

RocketMQ Consumer Scaling and Load Balancing Strategies

In RocketMQ, adding consumers speeds consumption only when they are fewer than MessageQueues, while pull delays arise from ProcessQueue thresholds or ordered‑lock timeouts; slow processing often stems from heavy business logic or external calls, and load can be balanced using average, round‑robin, custom, machine‑room, nearby‑room, or consistent‑hash allocation strategies.

ConsumerMessage QueueRocketMQ
0 likes · 9 min read
RocketMQ Consumer Scaling and Load Balancing Strategies
IT Architects Alliance
IT Architects Alliance
Jan 9, 2025 · Backend Development

Understanding Message Queues: Comparing Kafka, RabbitMQ, and RocketMQ

Message queues act as asynchronous communication bridges in distributed systems, and this article examines three leading solutions—Kafka, RabbitMQ, and RocketMQ—detailing their performance, scalability, reliability, strengths, drawbacks, and suitable use‑cases to guide developers in selecting the right technology.

KafkaMessage QueueRabbitMQ
0 likes · 13 min read
Understanding Message Queues: Comparing Kafka, RabbitMQ, and RocketMQ
Open Source Tech Hub
Open Source Tech Hub
Jan 8, 2025 · Backend Development

Build Asynchronous RabbitMQ Clients with Workerman in PHP

This guide explains how to install the workerman/rabbitmq package, set up producer and consumer scripts for both Workerman and PHP‑FPM environments, and run asynchronous RabbitMQ messaging using detailed PHP code examples and configuration options.

BackendMessage QueuePHP
0 likes · 7 min read
Build Asynchronous RabbitMQ Clients with Workerman in PHP
macrozheng
macrozheng
Jan 7, 2025 · Backend Development

8 Real-World Scenarios for Using Message Queues in Modern Applications

This article explores eight practical use cases for message queues—including asynchronous processing, service decoupling, traffic shaping, delayed tasks, log collection, distributed transactions, remote calls, and broadcast notifications—providing code examples and architectural guidance for building robust backend systems.

Message QueueRocketMQSpring Boot
0 likes · 13 min read
8 Real-World Scenarios for Using Message Queues in Modern Applications
IT Services Circle
IT Services Circle
Jan 3, 2025 · Backend Development

Eight Common Use Cases of Message Queues (MQ) with Code Examples

This article explains eight typical scenarios for using message queues—including asynchronous processing, service decoupling, traffic shaping, delayed tasks, log collection, distributed transactions, remote invocation, and broadcast notifications—providing clear explanations and Java code snippets for each case.

Distributed TransactionsKafkaMessage Queue
0 likes · 13 min read
Eight Common Use Cases of Message Queues (MQ) with Code Examples
Lobster Programming
Lobster Programming
Dec 26, 2024 · Databases

How to Migrate Tens of Millions of Rows: Strategies and Practical Steps

This article explains common data‑migration strategies such as hash‑modulo, time‑range and ID‑range sharding, and compares practical migration solutions including downtime migration, dual‑write, and an MQ + Redis approach, with detailed workflow diagrams and implementation tips.

Data MigrationMessage Queuedatabase scaling
0 likes · 8 min read
How to Migrate Tens of Millions of Rows: Strategies and Practical Steps
Selected Java Interview Questions
Selected Java Interview Questions
Dec 24, 2024 · Backend Development

Design and Implementation of a Custom Distributed Job Scheduling Framework (k‑job)

This article introduces the motivation, architecture, technology choices, and key implementation details of a lightweight, highly extensible distributed job scheduling framework built on gRPC, Protobuf, a custom name‑server, and a bespoke message‑queue, addressing limitations of existing solutions like Quartz, XXL‑Job, and PowerJob.

Distributed SystemsJavaJob Scheduling
0 likes · 14 min read
Design and Implementation of a Custom Distributed Job Scheduling Framework (k‑job)
Architecture & Thinking
Architecture & Thinking
Dec 18, 2024 · Backend Development

Mastering RocketMQ: Core Concepts of Topics, Queues, and Messaging

This article explains RocketMQ’s fundamental architecture, detailing the definitions, roles, and interactions of topics, message queues, messages, producers, consumers, consumer groups, and subscription relationships, and highlights how these components work together to achieve high performance, availability, and scalability.

Backend DevelopmentDistributed MessagingMessage Queue
0 likes · 7 min read
Mastering RocketMQ: Core Concepts of Topics, Queues, and Messaging
Architect
Architect
Dec 16, 2024 · Backend Development

How to Build a Scalable Feed Stream: Architecture, Models, and Best Practices

This article explains what a feed stream is, why it exists, how it evolved from RSS to modern social feeds, classifies different feed models, outlines the challenges of real‑time delivery, and provides a detailed backend architecture, data structures, storage design, pagination strategy, and core publish‑read workflows to help engineers build reliable, high‑performance feed systems.

Backend ArchitectureMessage QueueRead‑Write Diffusion
0 likes · 23 min read
How to Build a Scalable Feed Stream: Architecture, Models, and Best Practices
Alibaba Cloud Developer
Alibaba Cloud Developer
Dec 16, 2024 · Backend Development

How Redis Stream Revolutionized Real‑Time Traffic Processing and Cut Costs by 90%

This article explains how the traffic team replaced a costly MQ system with Redis Stream, covering its concepts, design, implementation details such as load balancing and cross‑region deployment, monitoring metrics, performance benchmarks, practical lessons learned, and the scenarios where Redis Stream is most suitable.

Backend ArchitectureMessage QueuePerformance Testing
0 likes · 12 min read
How Redis Stream Revolutionized Real‑Time Traffic Processing and Cut Costs by 90%
Huolala Tech
Huolala Tech
Dec 13, 2024 · Backend Development

Building a Scalable, Secure Customer IM System: Architecture & Key Solutions

This article details the design, architecture, and evolution of a self‑developed customer instant‑messaging system, covering its user‑centred philosophy, layered backend structure, technology choices such as WebSocket and Spring WebFlux, and how it solved challenges in gateway design, session storage, message ACK, and queue management to achieve high availability, security, and future‑ready scalability.

Instant MessagingMessage QueueScalable Design
0 likes · 14 min read
Building a Scalable, Secure Customer IM System: Architecture & Key Solutions
JD Tech Talk
JD Tech Talk
Dec 11, 2024 · Backend Development

Analysis of Message Queue Disorder Issues and Practical Solutions

This article examines the root causes of message queue disorder in distributed systems, illustrates real‑world impacts such as data loss during migration, and presents concrete mitigation strategies including ordered messaging, pre‑processing checks, state‑machine handling, and monitoring to improve system reliability.

Distributed SystemsMessage QueueReliability
0 likes · 9 min read
Analysis of Message Queue Disorder Issues and Practical Solutions
JD Cloud Developers
JD Cloud Developers
Dec 11, 2024 · Operations

How to Prevent Message Queue Disorder in Distributed Systems

This article examines the causes of message queue disorder in distributed systems and presents practical solutions such as ordered messaging, pre‑consumption checks, state machines, and monitoring to improve system stability and data consistency.

KafkaMessage OrderingMessage Queue
0 likes · 9 min read
How to Prevent Message Queue Disorder in Distributed Systems
Architecture & Thinking
Architecture & Thinking
Dec 5, 2024 · Backend Development

Understanding Apache RocketMQ: Domain Model, Communication & Message Patterns

This article explains Apache RocketMQ's core components—including producers, topics, queues, and consumer groups—covers synchronous RPC versus asynchronous messaging, compares point‑to‑point and publish‑subscribe transmission models, and highlights their suitable scenarios and trade‑offs.

Backend DevelopmentDistributed SystemsMessage Queue
0 likes · 9 min read
Understanding Apache RocketMQ: Domain Model, Communication & Message Patterns
Sanyou's Java Diary
Sanyou's Java Diary
Dec 2, 2024 · Big Data

Understanding Kafka: Core Architecture, Storage, and Reliability Explained

This article provides a comprehensive overview of Kafka, covering its overall structure, key components such as brokers, producers, consumers, topics, partitions, replicas, leader‑follower mechanics, logical and physical storage models, producer and consumer workflows, configuration parameters, partition assignment strategies, rebalancing, log retention and compaction, indexing, zero‑copy transmission, and the reliability concepts that ensure data durability.

Data StreamingDistributed SystemsKafka
0 likes · 18 min read
Understanding Kafka: Core Architecture, Storage, and Reliability Explained
ITPUB
ITPUB
Dec 1, 2024 · Fundamentals

Why Does Kafka Outperform RocketMQ? The Role of Zero‑Copy Techniques

The article explains how Kafka’s use of sendfile zero‑copy gives it higher throughput than RocketMQ, which relies on mmap, and discusses the trade‑offs between performance and feature richness when choosing between the two message‑queue systems.

Message QueueRocketMQZero Copy
0 likes · 9 min read
Why Does Kafka Outperform RocketMQ? The Role of Zero‑Copy Techniques
Architecture & Thinking
Architecture & Thinking
Nov 25, 2024 · Backend Development

Mastering RocketMQ: Core Concepts, Comparison, and Java Implementation

This comprehensive guide introduces RocketMQ's architecture, compares it with RabbitMQ and Kafka, outlines typical use cases, explains key concepts such as producers, brokers, consumers, topics, tags, and offsets, and provides complete Java code examples for building producers and consumers.

Backend DevelopmentDistributed SystemsJava
0 likes · 14 min read
Mastering RocketMQ: Core Concepts, Comparison, and Java Implementation
Huolala Tech
Huolala Tech
Nov 22, 2024 · Backend Development

Building a Scalable Message Fusion Platform for Billions of User Notifications

This article details how a rapidly growing on‑demand logistics service designed and implemented a high‑performance, extensible message fusion platform that handles massive, diverse user messages through distributed processing, visual configuration, and self‑healing mechanisms, enabling real‑time, personalized communication at scale.

Backend ArchitectureDistributed ProcessingMessage Queue
0 likes · 13 min read
Building a Scalable Message Fusion Platform for Billions of User Notifications
Alibaba Cloud Developer
Alibaba Cloud Developer
Nov 21, 2024 · Databases

How to Sync Redis with MySQL: Strategies, Code Samples, and Best Practices

This article explains why syncing Redis with MySQL is essential for performance and consistency, and details three implementation methods—database triggers, application-level double writes, and message queues—providing code examples, practical tips, and key considerations for reliable data synchronization.

Database TriggersMessage QueuePython
0 likes · 8 min read
How to Sync Redis with MySQL: Strategies, Code Samples, and Best Practices
Tencent Cloud Developer
Tencent Cloud Developer
Nov 21, 2024 · Backend Development

Design and Architecture of Feed Stream Systems

The article surveys feed‑stream systems—from their RSS roots to modern social‑media timelines—explaining classifications, core terminology, and a high‑performance architecture that uses Redis ZSET inboxes, write‑ and read‑diffusion, soft‑delete consistency, and last‑id pagination to handle massive real‑time writes, big‑V fan‑out, and efficient publishing and reading.

Message Queuefeed streampagination
0 likes · 21 min read
Design and Architecture of Feed Stream Systems
Tencent Cloud Developer
Tencent Cloud Developer
Nov 19, 2024 · Backend Development

Ten Common Interface Performance Optimization Techniques

Ten practical techniques—early validation, batch queries, asynchronous processing, parallel execution, caching, connection pooling, response compression, message‑queue decoupling, security best practices, and reusable design patterns—collectively reduce latency, boost throughput, and improve scalability of high‑concurrency interfaces.

Design PatternsGoMessage Queue
0 likes · 29 min read
Ten Common Interface Performance Optimization Techniques
Liangxu Linux
Liangxu Linux
Nov 16, 2024 · Backend Development

Step‑by‑Step Guide to Install and Run RabbitMQ on Linux

This tutorial walks you through installing Erlang, downloading the RabbitMQ server, starting it in detached mode, verifying its status, and troubleshooting common TCP‑listener errors on CentOS systems, providing all necessary commands and configuration details.

ErlangInstallationLinux
0 likes · 6 min read
Step‑by‑Step Guide to Install and Run RabbitMQ on Linux
Tencent Cloud Middleware
Tencent Cloud Middleware
Oct 30, 2024 · Backend Development

How Kafka Guarantees High Reliability and Performance – A Deep Technical Dive

This article thoroughly examines Apache Kafka’s architecture, covering its macro components, ack strategies, replication mechanisms, high‑watermark handling, leader election, and performance optimizations such as batch sending, compression, PageCache, zero‑copy, mmap and sendfile, while also explaining common pitfalls like data loss and log corruption.

Distributed SystemsKafkaMessage Queue
0 likes · 31 min read
How Kafka Guarantees High Reliability and Performance – A Deep Technical Dive
Top Architect
Top Architect
Oct 24, 2024 · Backend Development

tldb Distributed Lock: Usage Guide for Go and Java

This article introduces tldb's distributed lock mechanism, explains lock, trylock, and unlock methods, and provides step‑by‑step Go and Java client examples—including code snippets—for acquiring and releasing locks in a multi‑language environment.

GoJavaMessage Queue
0 likes · 10 min read
tldb Distributed Lock: Usage Guide for Go and Java
Xiaohongshu Tech REDtech
Xiaohongshu Tech REDtech
Oct 23, 2024 · Backend Development

Pulsar vs RocketMQ: Architecture, Cost Benefits, and Migration Strategy for Xiaohongshu Online Messaging

Xiaohongshu replaced its RocketMQ‑based online messaging platform with Apache Pulsar, achieving up to 48% total cost reduction, 43% higher CPU utilization, 30% resource savings, and a latency drop from 20.2 ms to 5.7 ms through cloud‑native, elastic scaling and a phased migration strategy.

Apache PulsarCost OptimizationMessage Queue
0 likes · 12 min read
Pulsar vs RocketMQ: Architecture, Cost Benefits, and Migration Strategy for Xiaohongshu Online Messaging
Tencent Cloud Middleware
Tencent Cloud Middleware
Oct 22, 2024 · Operations

Scaling Apache Pulsar on Tencent Cloud: Multi‑Network Access, Cluster Migration & HA Tips

This article details Tencent Cloud engineers' technical solutions for large‑scale Apache Pulsar deployments, covering multi‑network access challenges, a routing‑addressing redesign, product deployment models, a four‑step cluster migration process with subscription‑progress compensation, and high‑availability best practices such as rack‑aware and cross‑AZ replica distribution.

Apache PulsarCluster MigrationMessage Queue
0 likes · 11 min read
Scaling Apache Pulsar on Tencent Cloud: Multi‑Network Access, Cluster Migration & HA Tips
Test Development Learning Exchange
Test Development Learning Exchange
Oct 20, 2024 · Backend Development

Python Examples of Distributed Task Queues, Message Brokers, RPC, and Serialization Libraries

This article provides practical Python code examples for various messaging and serialization tools—including Celery, RQ, Huey, ZeroMQ, kafka‑python, Pika, stomp.py, nats‑py, gRPC, Thrift, Protobuf, Avro, msgpack, and Flatbuffers—demonstrating how to set up producers, consumers, and services for asynchronous processing and data exchange.

Distributed TasksMessage QueuePython
0 likes · 19 min read
Python Examples of Distributed Task Queues, Message Brokers, RPC, and Serialization Libraries
Alibaba Cloud Native
Alibaba Cloud Native
Oct 19, 2024 · Cloud Native

How ApsaraMQ’s Serverless Architecture Powers AI with Event‑Driven Messaging

The talk outlines ApsaraMQ’s journey to a fully serverless, cloud‑native messaging platform, detailing its compute‑storage separation, stateless proxy functions, RDMA‑enhanced performance, elastic scaling mechanisms, and how its event‑driven architecture empowers real‑time AI applications through seamless data vectorization.

AI integrationEvent-drivenMessage Queue
0 likes · 19 min read
How ApsaraMQ’s Serverless Architecture Powers AI with Event‑Driven Messaging
MaGe Linux Operations
MaGe Linux Operations
Oct 7, 2024 · Operations

Why Choose RocketMQ? Features, Comparisons, and Reliability Explained

This article provides a comprehensive overview of RocketMQ, covering its architecture, key features such as high reliability, low latency and high throughput, comparisons with Kafka, RabbitMQ and ActiveMQ, and detailed mechanisms that ensure message durability, performance, and ordered consumption.

Distributed SystemsLow latencyMessage Queue
0 likes · 12 min read
Why Choose RocketMQ? Features, Comparisons, and Reliability Explained
Architect's Guide
Architect's Guide
Oct 7, 2024 · Backend Development

RabbitMQ Overview, Installation Guide, and Delayed Message Implementation

This article introduces RabbitMQ, explains its core features and messaging model, discusses why to use it for asynchronous, decoupled, and throttled processing, and provides step‑by‑step installation instructions for macOS, Windows, and CentOS along with Java code examples for configuring and using delayed messages via the rabbitmq_delayed_message_exchange plugin.

BackendDelayed MessageInstallation
0 likes · 11 min read
RabbitMQ Overview, Installation Guide, and Delayed Message Implementation
Open Source Linux
Open Source Linux
Sep 27, 2024 · Operations

How to Install and Configure RabbitMQ with Erlang on Linux

This guide walks you through installing Erlang, downloading and building RabbitMQ 3.0.4 from source on a Linux system, verifying the installations, starting the server in detached mode, checking its status, and troubleshooting common port‑conflict issues on CentOS 6.

ErlangInstallationLinux
0 likes · 6 min read
How to Install and Configure RabbitMQ with Erlang on Linux
Liangxu Linux
Liangxu Linux
Sep 25, 2024 · Operations

How to Install and Troubleshoot RabbitMQ on Linux (Erlang Required)

This guide walks you through installing Erlang, downloading and extracting RabbitMQ 3.0.4, starting the server in detached mode, verifying its status, and troubleshooting common port‑conflict errors on CentOS 6, with complete command‑line examples.

ErlangInstallationLinux
0 likes · 6 min read
How to Install and Troubleshoot RabbitMQ on Linux (Erlang Required)
IT Services Circle
IT Services Circle
Sep 24, 2024 · Backend Development

Ensuring Message Reliability in RocketMQ: Producer, Storage, and Consumer Guarantees

This article explains how RocketMQ guarantees message reliability across the production, storage, and consumption stages, covering synchronous, asynchronous, and transactional sending, disk persistence and replication strategies, consumption models (at-least-once, at-most-once, exactly-once), and handling consumer crashes without message loss.

Backend DevelopmentConsumer CrashMessage Queue
0 likes · 6 min read
Ensuring Message Reliability in RocketMQ: Producer, Storage, and Consumer Guarantees
Java Backend Full-Stack
Java Backend Full-Stack
Sep 21, 2024 · Backend Development

How a Full‑Stack Charging‑Station Project Can Boost Your Interview Portfolio

This article walks through a zero‑to‑one charging‑station system built with Spring Cloud microservices, Vue front‑end, and a suite of enterprise features such as distributed locks, idempotency, multi‑level caching, and custom starters, providing concrete design documents and module breakdowns to help candidates showcase real project experience in interviews.

Charging StationDesign PatternsIdempotency
0 likes · 9 min read
How a Full‑Stack Charging‑Station Project Can Boost Your Interview Portfolio