Code Farming
Author

Code Farming

Senior engineer at a top internet giant, sharing Java, AI, tech knowledge, growth insights, and interview experiences.

38
Articles
0
Likes
132
Views
0
Comments
Recent Articles

Latest from Code Farming

38 recent articles
Code Farming
Code Farming
Sep 11, 2026 · Backend Development

DDD-Driven Microservice Splitting: 3 Key Steps to Avoid Coupling Pitfalls

This article explains how Domain-Driven Design (DDD) guides microservice splitting through three steps: enforcing high cohesion and low coupling principles, dividing systems into core, supporting, and generic domains via bounded contexts, and using message queues for asynchronous event-driven decoupling, illustrated with an online food ordering example.

DDDbounded-contextdomain modeling
0 likes · 8 min read
DDD-Driven Microservice Splitting: 3 Key Steps to Avoid Coupling Pitfalls
Code Farming
Code Farming
Sep 8, 2026 · Backend Development

QR Code Payments Decoded: 4 Systems, 6 Institutions, and the Async Architecture Behind Every Scan

This article breaks down the complete technical chain behind a QR code payment, revealing how authentication tokens, cross-bank clearing with central bank settlement, foreign exchange conversion, and asynchronous messaging systems work together to move money across institutions and currencies without synchronous responses.

QR code paymentSystem Designasynchronous systems
0 likes · 9 min read
QR Code Payments Decoded: 4 Systems, 6 Institutions, and the Async Architecture Behind Every Scan
Code Farming
Code Farming
Sep 7, 2026 · Backend Development

How Encyclopedia Systems Survive Data Center Fires: Architecture Deep Dive

This article breaks down the four-step architecture design of a high-concurrency encyclopedia system, covering latency-driven multi-data-center deployment, a five-layer request chain with caching at each level, a three-tier optimization pyramid, and master-slave synchronization with automatic failover for disaster recovery.

CDN cachingCanalGeoDNS
0 likes · 8 min read
How Encyclopedia Systems Survive Data Center Fires: Architecture Deep Dive
Code Farming
Code Farming
Sep 4, 2026 · Big Data

How Big Data Platforms Turn Dormant Data into User Value: A Ride-Hailing Case Study

This article details a three-stage big data pipeline—collection, computation, and application—used by a ride-hailing platform to build user and vehicle profiles, enable intelligent order matching that boosts click-through rates by 30%, and create a self-reinforcing data flywheel that continuously improves service quality.

Data FlywheelData PipelineSpark
0 likes · 8 min read
How Big Data Platforms Turn Dormant Data into User Value: A Ride-Hailing Case Study
Code Farming
Code Farming
Sep 2, 2026 · Backend Development

Event Sourcing: Decouple Microservices with Domain Events

This article explains how event sourcing replaces synchronous call chains with domain events to decouple microservices, detailing the four core event elements, a three-step publish-subscribe flow using Spring Cloud Stream, and a practical template for implementation.

Domain EventsDomain-Driven DesignEvent Storming
0 likes · 6 min read
Event Sourcing: Decouple Microservices with Domain Events
Code Farming
Code Farming
Aug 26, 2026 · Databases

Tencent's 4 Kernel Optimizations for Trillion-Scale Elasticsearch

Tencent shares four kernel-level Elasticsearch optimizations: memory-based smooth rate limiting to prevent cluster avalanches, Rollup pre-aggregation cutting storage costs 10x, moving FST off-heap to manage 50TB per node, and metadata scalability improvements supporting million shards with sub-5-second index creation.

ElasticsearchRollupTencent
0 likes · 7 min read
Tencent's 4 Kernel Optimizations for Trillion-Scale Elasticsearch
Code Farming
Code Farming
Aug 21, 2026 · Databases

How to Cut Redis Cluster Failover to Under 10 Seconds

The article breaks down Redis‑Cluster failover into detection, election, failover, and client perception stages, explains the timing bottlenecks of each, and provides concrete server‑side and Lettuce client configurations that shrink end‑to‑end recovery to under ten seconds.

FailoverLettuceRedis
0 likes · 7 min read
How to Cut Redis Cluster Failover to Under 10 Seconds
Code Farming
Code Farming
Aug 19, 2026 · Databases

Applying DDD to Database Design in 4 Practical Steps

The article explains how to translate domain‑driven design into concrete database schemas by first shifting focus from tables to domain models, then mapping the four relationship types, choosing an inheritance strategy, and finally adapting the approach for NoSQL databases.

DDDDomain ModelInheritance Strategies
0 likes · 7 min read
Applying DDD to Database Design in 4 Practical Steps
Code Farming
Code Farming
Aug 17, 2026 · Backend Development

How DDD Handles Four E‑Commerce Payment Changes Step‑by‑Step

The article walks through a real e‑commerce payment case, showing how Domain‑Driven Design models entities, uses two key questions to split responsibilities, and continuously evolves the model to accommodate discounts, VIP features, and new payment adapters, reducing code churn.

DDDDomain-Driven DesignSingle Responsibility Principle
0 likes · 6 min read
How DDD Handles Four E‑Commerce Payment Changes Step‑by‑Step