Tagged articles
8 articles
Page 1 of 1
php Courses
php Courses
Jan 19, 2026 · Backend Development

How to Use PHP’s array_flip() to Reverse Keys and Values

This guide explains PHP’s array_flip() function, showing its syntax, parameters, return values, example usage, handling of duplicate values, and important caveats for reliable key‑value reversal.

array_flipduplicate handlingkey-value reversal
0 likes · 3 min read
How to Use PHP’s array_flip() to Reverse Keys and Values
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
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
Architect
Architect
Jul 12, 2024 · Backend Development

How to Prevent Message Loss and Duplication in Kafka and RocketMQ

This article analyzes the root causes of message loss and duplication in modern message queues, explains how synchronous and asynchronous sending affect reliability, compares storage strategies like sync‑flush and broker clustering, and offers concrete idempotent handling techniques using database constraints and Redis.

BackendKafkaMessage Queue
0 likes · 8 min read
How to Prevent Message Loss and Duplication in Kafka and RocketMQ
Java High-Performance Architecture
Java High-Performance Architecture
Dec 29, 2022 · Backend Development

Why Message Queues Are Essential: Decoupling, Asynchrony, and Pitfalls Explained

This article explains why message queues are used to decouple services, enable asynchronous processing, smooth traffic spikes, and improve performance, while also detailing the new challenges they introduce such as reduced availability, increased complexity, duplicate consumption, data consistency, message loss, ordering, and backlog, along with practical solutions for each issue.

Backlog ManagementData ConsistencyDecoupling
0 likes · 18 min read
Why Message Queues Are Essential: Decoupling, Asynchrony, and Pitfalls Explained
Programmer DD
Programmer DD
Aug 25, 2021 · Databases

How to Efficiently Insert Massive Data Without Duplicates in MySQL

This article explains several MySQL techniques—INSERT IGNORE, ON DUPLICATE KEY UPDATE, INSERT…SELECT WHERE NOT EXISTS, and REPLACE—plus a practical MyBatis batch‑insert example, to handle large‑scale data imports while preventing duplicate records.

Batch InsertMyBatisduplicate handling
0 likes · 5 min read
How to Efficiently Insert Massive Data Without Duplicates in MySQL
Big Data Technology & Architecture
Big Data Technology & Architecture
Nov 20, 2019 · Operations

Ensuring Message Reliability, Duplicate Handling, and Transactional Guarantees in Distributed Message Queues

This article explains how to detect and prevent message loss, guarantee reliable delivery across production, storage, and consumption stages, handle duplicate messages with idempotent designs, resolve message backlogs, and implement distributed transactions using transactional messages in systems like Kafka, RocketMQ, and RabbitMQ.

ReliabilityTransactional Messagingduplicate handling
0 likes · 19 min read
Ensuring Message Reliability, Duplicate Handling, and Transactional Guarantees in Distributed Message Queues
Qunar Tech Salon
Qunar Tech Salon
Jan 21, 2017 · Backend Development

Message Consumption Patterns and Best Practices in Qunar's QMQ

This article shares Qunar's practical experiences with message-driven architecture, detailing consumer handling of duplicate messages, ordering, concurrency control, asynchronous processing, and batch strategies, and presents concrete solutions such as idempotent checks, deduplication tables, versioning, and QMQ's built‑in executors.

Batch Processingasynchronous ackconcurrency
0 likes · 18 min read
Message Consumption Patterns and Best Practices in Qunar's QMQ