Mike Chen's Internet Architecture
Author

Mike Chen's Internet Architecture

Over ten years of BAT architecture experience, shared generously!

598
Articles
0
Likes
969
Views
0
Comments
Recent Articles

Latest from Mike Chen's Internet Architecture

100 recent articles max
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Dec 27, 2025 · Backend Development

Why Kafka Messages Duplicate and How to Prevent It

The article explains the main causes of duplicate Kafka messages—including producer retries, consumer offset handling, partition leader changes, and lack of idempotence—and provides practical configuration and design solutions to achieve exactly‑once delivery.

Consumer OffsetDeduplicationMessage Duplication
0 likes · 5 min read
Why Kafka Messages Duplicate and How to Prevent It
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Dec 27, 2025 · Backend Development

Mastering Java Inner Classes: Organize, Encapsulate, and Simplify Your Code

The article explains how Java inner classes can be used to encapsulate related functionality, access private members of the outer class, implement interfaces for callbacks, and hide implementation details, providing clear code examples such as Car/Engine, Counter/Incrementer, Button listeners, and a Calculator with an Operation inner class.

CallbacksCode OrganizationEncapsulation
0 likes · 4 min read
Mastering Java Inner Classes: Organize, Encapsulate, and Simplify Your Code
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Dec 25, 2025 · Backend Development

Choosing the Right Distributed ID Generation Strategy: Auto‑Increment, UUID, Snowflake, and Redis

This guide compares four common distributed ID generation techniques—database auto‑increment, UUID, Twitter’s Snowflake, and Redis INCR—detailing their advantages, drawbacks, and ideal use‑cases, helping architects select the most suitable method for their system’s scalability and performance requirements.

Distributed IDRedisSnowflake
0 likes · 4 min read
Choosing the Right Distributed ID Generation Strategy: Auto‑Increment, UUID, Snowflake, and Redis