Tag

Message Queue

0 views collected around this technical thread.

Java Tech Enthusiast
Java Tech Enthusiast
Jun 15, 2025 · Backend Development

Understanding RocketMQ Name Server: Routing, Registration, and Heartbeat Explained

This article revisits RocketMQ's Name Server, detailing its core components, how it registers brokers, maintains routing information, handles client queries, and uses heartbeat mechanisms to ensure high availability and dynamic scaling in distributed messaging systems.

Distributed SystemsMessage QueueName Server
0 likes · 11 min read
Understanding RocketMQ Name Server: Routing, Registration, and Heartbeat Explained
Java Architect Essentials
Java Architect Essentials
Jun 10, 2025 · Backend Development

Why Rebuild a Distributed Scheduler? Inside a Custom Java Job Framework

This article explains the motivations behind creating a new distributed scheduling framework, compares existing solutions, and details the design choices—including gRPC communication, protobuf serialization, a custom NameServer for load balancing, and a built‑in message queue with persistence and retry mechanisms—to handle frequent task creation and dynamic parameter changes in a high‑concurrency environment.

JavaMessage Queuedistributed scheduling
0 likes · 14 min read
Why Rebuild a Distributed Scheduler? Inside a Custom Java Job Framework
Architecture Digest
Architecture Digest
Jun 9, 2025 · Backend Development

How to Embed FolkMQ in SpringBoot: A Tiny 7 MB Message Middleware

This article introduces FolkMQ, a pure Chinese message middleware, explains its lightweight 7 MB embedded version with a web console, and provides step‑by‑step integration instructions, configuration files, code samples, testing procedures, and a link to a complete SpringBoot example.

Embedded MiddlewareFolkMQJava
0 likes · 6 min read
How to Embed FolkMQ in SpringBoot: A Tiny 7 MB Message Middleware
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.

BackendKafkaMessage Queue
0 likes · 9 min read
How to Prevent Duplicate Messages in Kafka and Pulsar: A Practical Guide
Architecture & Thinking
Architecture & Thinking
May 30, 2025 · Backend Development

Mastering RocketMQ Delayed Messages: Principles, Implementation, and Best Practices

This tutorial explains RocketMQ's delayed message feature, covering its core concepts, implementation using a time‑wheel algorithm, step‑by‑step usage instructions, practical code examples, and important considerations for reliable scheduling in distributed backend systems.

BackendDelayed MessageJava
0 likes · 10 min read
Mastering RocketMQ Delayed Messages: Principles, Implementation, and Best Practices
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 23, 2025 · Big Data

Step-by-Step Guide to Installing and Using Apache Kafka 3.8.1 on Linux

This tutorial walks through downloading, extracting, configuring, starting, creating topics, producing and consuming messages, and finally stopping Apache Kafka 3.8.1 on a Linux system, including all necessary command‑line instructions.

Big DataInstallationKafka
0 likes · 4 min read
Step-by-Step Guide to Installing and Using Apache Kafka 3.8.1 on Linux
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.

BackendMessage QueueRedis
0 likes · 11 min read
Designing Automatic Order Closure: Comparing DB Polling, Redis Expiration, Redis Zset Delay Queue, and Message Queue Delayed Messages
Code Mala Tang
Code Mala Tang
May 12, 2025 · Backend Development

How to Build a FastAPI Service with RabbitMQ Consumer & Publisher

This guide walks through creating a FastAPI application that both publishes and consumes messages via RabbitMQ, detailing the setup of a Pika client, asynchronous consumer, message handling, API routes, and deployment with uvicorn, complete with code snippets and testing instructions.

AsyncFastAPIMessage Queue
0 likes · 7 min read
How to Build a FastAPI Service with RabbitMQ Consumer & Publisher
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.

JavaMessage QueueOrder Cancellation
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.

Message QueueRabbitMQRedis
0 likes · 6 min read
Implementing Order Auto‑Close with Delayed Tasks: Best Practices and Pitfalls
Java Captain
Java Captain
May 9, 2025 · Backend Development

Implementing Precise Order Cancellation: Delayed Task Solutions and Their Pitfalls

The article examines various approaches for implementing accurate order‑cancellation timers in e‑commerce systems, compares message‑queue delayed delivery, Redisson delay queues, Redis expiration listeners, RabbitMQ dead‑letter queues, and time wheels, and recommends reliable solutions while warning against common pitfalls.

Message QueueRabbitMQRedis
0 likes · 8 min read
Implementing Precise Order Cancellation: Delayed Task Solutions and Their 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 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.

ConcurrencyDisruptorJava
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.

BackendDistributed SystemsMessage Queue
0 likes · 17 min read
Preventing Message Loss, Duplicate Consumption, and Backlog in RocketMQ: Best Practices and Strategies
Cognitive Technology Team
Cognitive Technology Team
Apr 30, 2025 · Backend Development

Design Patterns and Solutions for Distributed Transaction Consistency

The article explains how to achieve transaction consistency in distributed internet systems by balancing CAP trade‑offs and presents common design approaches such as 2PC, 3PC, TCC, reliable message delivery, best‑effort notification, and database‑transaction plus compensation mechanisms.

2PC3PCCAP theorem
0 likes · 11 min read
Design Patterns and Solutions for Distributed Transaction Consistency
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.

Distributed SystemsMessage QueueRocketMQ
0 likes · 6 min read
How RocketMQ Transactional Messages Ensure Distributed Data Consistency
Java Tech Enthusiast
Java Tech Enthusiast
Apr 19, 2025 · Backend Development

Preventing Product Overselling in High‑Concurrency E‑Commerce Systems

To prevent overselling during flash sales, the article explains how non‑atomic database updates cause negative stock and presents solutions such as optimistic DB locking, Redis Lua atomic deductions, Redisson distributed locks, transactional message queues, and pre‑deduction with rate limiting, recommending a combined approach that achieved 120 000 QPS with zero oversell.

Message QueueRedisdistributed lock
0 likes · 7 min read
Preventing Product Overselling in High‑Concurrency E‑Commerce Systems
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.

Distributed SystemsMessage Queuebackend architecture
0 likes · 5 min read
How Local Message Tables Solve Distributed Transaction Challenges
Cognitive Technology Team
Cognitive Technology Team
Apr 14, 2025 · Backend Development

Understanding Ordered Messages in RocketMQ: Global and Partitioned Ordering

The article explains how RocketMQ ensures strict message ordering through global FIFO queues and partitioned ordering, covering use cases, key implementation techniques on the producer, broker, and consumer sides, as well as lock mechanisms, retry strategies, and fault‑tolerance design.

BackendDistributed SystemsMessage Queue
0 likes · 6 min read
Understanding Ordered Messages in RocketMQ: Global and Partitioned Ordering
Lobster Programming
Lobster Programming
Apr 14, 2025 · Backend Development

Understanding RabbitMQ Architecture: Components, Exchanges, and Queues

RabbitMQ, an Erlang‑based open‑source message broker implementing AMQP, uses producers, consumers, exchanges, queues, virtual hosts, connections, and channels to enable scalable, reliable asynchronous communication, with various exchange types and binding mechanisms that organize message routing in microservice architectures.

AMQPBackendMessage Queue
0 likes · 7 min read
Understanding RabbitMQ Architecture: Components, Exchanges, and Queues