Code Farming
Author

Code Farming

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

24
Articles
0
Likes
15
Views
0
Comments
Recent Articles

Latest from Code Farming

24 recent articles
Code Farming
Code Farming
Sep 16, 2024 · Backend Development

Understanding Elasticsearch’s Document Retrieval Process

The article walks through Elasticsearch’s document retrieval workflow, covering single‑document GET, multi‑document mget, the two‑stage query_then_fetch mechanism, shard routing, load balancing, query and fetch phases, collectors, rescore, and pagination optimizations.

Document RetrievalElasticsearchQuery_then_fetch
0 likes · 19 min read
Understanding Elasticsearch’s Document Retrieval Process
Code Farming
Code Farming
Sep 15, 2024 · Backend Development

How Elasticsearch Indexes Documents: Step‑by‑Step Process

This article walks through Elasticsearch’s document indexing pipeline—from single‑document and bulk request routing, through the write‑refresh‑flush‑merge cycle, to the roles of Lucene, the translog, primary and replica shards, and how reliability, consistency, atomicity, isolation, real‑time visibility and performance are achieved.

Elasticsearchdocument indexingflush
0 likes · 22 min read
How Elasticsearch Indexes Documents: Step‑by‑Step Process
Code Farming
Code Farming
Sep 15, 2024 · Backend Development

Understanding Elasticsearch: Core Principles and Architecture

This article explains Elasticsearch’s overall structure, the underlying Lucene index layout, the indexing and search processing flow, and how built‑in analyzers work, illustrating each concept with diagrams, token examples, and query scenarios.

AnalyzersElasticsearchFull-text Search
0 likes · 10 min read
Understanding Elasticsearch: Core Principles and Architecture
Code Farming
Code Farming
Sep 14, 2024 · Backend Development

How RocketMQ Handles Concurrency: Deep Dive into Its Design Principles

This article dissects RocketMQ's concurrency mechanisms, explaining why it uses ReentrantReadWriteLock with HashMaps, how Semaphore controls async send rates, the SemaphoreReleaseOnlyOnce wrapper, the CountDownLatch‑based sync‑to‑async pattern, and the CompletableFuture redesign that reduces blocking in message replication.

CompletableFutureConcurrencyDistributed Messaging
0 likes · 10 min read
How RocketMQ Handles Concurrency: Deep Dive into Its Design Principles