Architecture Digest
Author

Architecture Digest

Focusing on Java backend development, covering application architecture from top-tier internet companies (high availability, high performance, high stability), big data, machine learning, Java architecture, and other popular fields.

2.3k
Articles
0
Likes
5.8k
Views
0
Comments
Recent Articles

Latest from Architecture Digest

100 recent articles max
Architecture Digest
Architecture Digest
Sep 25, 2025 · Databases

How to Tackle MySQL Master‑Slave Replication Lag and Prevent Dirty Reads

This article explains why MySQL master‑slave replication lag causes dirty reads, breaks down the asynchronous replication pipeline, and presents three practical mitigation strategies—including semi‑synchronous replication, forcing reads from the master, and cache double‑delete techniques—so you can choose the right solution for your workload.

Cache InvalidationMySQLReplication Lag
0 likes · 9 min read
How to Tackle MySQL Master‑Slave Replication Lag and Prevent Dirty Reads
Architecture Digest
Architecture Digest
Sep 24, 2025 · Backend Development

Streamlining Spring Controllers with Unified Responses and Validation

This article explains how to simplify Spring MVC controller code by introducing a unified response format, leveraging ResponseBodyAdvice for automatic wrapping, applying JSR‑303 validation for request parameters, creating custom validators, and handling exceptions globally to keep business logic clean and maintainable.

ControllerException HandlingJava
0 likes · 15 min read
Streamlining Spring Controllers with Unified Responses and Validation
Architecture Digest
Architecture Digest
Sep 23, 2025 · Backend Development

How to Ensure Zero Message Loss in Kafka: Proven Strategies for High‑Reliability Systems

This article explains Kafka's storage architecture, identifies three major message‑loss scenarios across production, storage, and consumption, and provides practical end‑to‑end configurations, detection methods, and business‑level patterns to achieve near‑zero message loss in high‑concurrency distributed systems.

Data ConsistencyDistributed SystemsKafka
0 likes · 13 min read
How to Ensure Zero Message Loss in Kafka: Proven Strategies for High‑Reliability Systems
Architecture Digest
Architecture Digest
Sep 22, 2025 · Databases

From Single Node to Distributed Cluster: Mastering Redis Evolution

This article walks through Redis's journey from a simple single‑instance cache to a robust, highly available, and horizontally scalable distributed system, covering persistence mechanisms, master‑slave replication, Sentinel automatic failover, and sharding clusters for real‑world high‑traffic applications.

DatabasePersistenceclustering
0 likes · 12 min read
From Single Node to Distributed Cluster: Mastering Redis Evolution
Architecture Digest
Architecture Digest
Sep 21, 2025 · Fundamentals

What Truly Builds a Programmer’s Competitive Edge?

The article argues that a programmer’s true moat isn’t a specific language or framework but core abilities such as rapid learning, problem abstraction, engineering mindset, communication, and genuine passion, which remain valuable despite fast‑changing technologies.

EngineeringSkillscareer
0 likes · 4 min read
What Truly Builds a Programmer’s Competitive Edge?
Architecture Digest
Architecture Digest
Sep 19, 2025 · Backend Development

Mastering Message Idempotency: From Simple Checks to State‑Machine Solutions

This article explores the challenges of duplicate message consumption in distributed systems, explains why naive de‑duplication fails under high concurrency, and presents four progressively robust idempotency strategies—from database pessimistic locks and local message tables to a state‑machine approach with Redis or MySQL, highlighting their trade‑offs.

Backend DevelopmentDistributed SystemsIdempotency
0 likes · 11 min read
Mastering Message Idempotency: From Simple Checks to State‑Machine Solutions
Architecture Digest
Architecture Digest
Sep 18, 2025 · Information Security

How to Harden Login APIs: From Brute‑Force to MITM Protection

This article examines common login security risks such as brute‑force attacks, captcha bypass, IP blocking, and man‑in‑the‑middle threats, and proposes layered defenses including password‑retry limits, captcha, phone verification, HTTPS, and encrypted payloads to significantly raise the attack cost.

Brute-force protectionCaptchaHTTPS
0 likes · 10 min read
How to Harden Login APIs: From Brute‑Force to MITM Protection
Architecture Digest
Architecture Digest
Sep 16, 2025 · Databases

How to Insert 300,000 Records Efficiently with MyBatis and JDBC

This article demonstrates how to insert 300,000 rows into a MySQL table using MyBatis and JDBC, compares naïve single‑batch and per‑row approaches, presents optimized batch‑processing code with configurable batch sizes and wait times, and shares practical performance‑tuning tips such as index handling and connection‑pool configuration.

Batch InsertJDBCMyBatis
0 likes · 14 min read
How to Insert 300,000 Records Efficiently with MyBatis and JDBC
Architecture Digest
Architecture Digest
Sep 15, 2025 · Databases

When to Choose SQLite Over MySQL? Pros, Cons, and Ideal Use Cases

This article examines SQLite's lightweight nature, cross‑platform support, and easy backup, while discussing its limitations in high‑concurrency scenarios, and provides guidance on when SQLite is appropriate for prototyping or low‑resource environments versus when to avoid it.

DatabasePerformanceSQLite
0 likes · 4 min read
When to Choose SQLite Over MySQL? Pros, Cons, and Ideal Use Cases
Architecture Digest
Architecture Digest
Sep 14, 2025 · Databases

Should You Replace MySQL with SQLite? Pros, Cons, and When to Use It

This article examines SQLite’s tiny footprint and embedded nature, compares it with MySQL, outlines its advantages such as cross‑platform support and easy backup, discusses its drawbacks like poor high‑concurrency handling and lack of remote access, and advises when SQLite is a suitable choice.

DatabaseSQLiteUse Cases
0 likes · 4 min read
Should You Replace MySQL with SQLite? Pros, Cons, and When to Use It