Senior Tony
Author

Senior Tony

Former senior tech manager at Meituan, ex‑tech director at New Oriental, with experience at JD.com and Qunar; specializes in Java interview coaching and regularly shares hardcore technical content. Runs a video channel of the same name.

65
Articles
0
Likes
81
Views
0
Comments
Recent Articles

Latest from Senior Tony

65 recent articles
Senior Tony
Senior Tony
Sep 16, 2025 · Artificial Intelligence

What Is MCP? Exploring the AI‑LLM Interaction Protocol

MCP, a protocol from Anbhropic, standardizes how large language models communicate with external tools, databases, and APIs through a client‑server architecture, offering three communication modes (Stdio, HTTP with SSE, Streamable HTTP) and enabling use cases such as intelligent analytics, knowledge hubs, AI chatbots, BPM, API integration, automated testing, and programming assistance.

AI protocolLLM integrationMCP
0 likes · 9 min read
What Is MCP? Exploring the AI‑LLM Interaction Protocol
Senior Tony
Senior Tony
Sep 8, 2025 · Artificial Intelligence

Unlock Spring AI: Build Java Generative Apps with Model Switching, Memory, and Prompt Engineering

This article introduces Spring AI, explains its relationship to Spring Boot, outlines support for major AI model providers and capabilities, and provides step‑by‑step code examples for a chatbot, conversational memory, and prompt engineering, while highlighting version pitfalls and future extensions.

AI model integrationConversational MemoryJava
0 likes · 8 min read
Unlock Spring AI: Build Java Generative Apps with Model Switching, Memory, and Prompt Engineering
Senior Tony
Senior Tony
Aug 26, 2025 · Databases

CAP vs BASE: Picking the Right Consistency Model for MySQL, Redis & Elasticsearch

This article explains the CAP and BASE theorems, compares consistency, availability and partition tolerance, and analyzes how MySQL replication modes, Redis Cluster, and Elasticsearch clusters fit into CP, AP or BASE models to help you choose the appropriate consistency strategy for distributed systems.

BASE theoremCAP theoremElasticsearch
0 likes · 9 min read
CAP vs BASE: Picking the Right Consistency Model for MySQL, Redis & Elasticsearch
Senior Tony
Senior Tony
Aug 20, 2025 · Backend Development

Why Volatile Solves Memory Visibility and Reordering in Java?

This article explains how the volatile keyword guarantees visibility of shared variables and prevents instruction reordering in Java, covering the Java Memory Model, memory barriers, practical code examples, and the Happens‑Before principle for reliable multithreaded programming.

Instruction ReorderingJMMJava
0 likes · 10 min read
Why Volatile Solves Memory Visibility and Reordering in Java?
Senior Tony
Senior Tony
Aug 4, 2025 · Databases

Understanding MySQL Master‑Slave Replication: Core Principles, Modes, and Latency Mitigation

This article provides a comprehensive overview of MySQL master‑slave replication, explaining its core mechanisms, the push‑pull hybrid model, replication modes (asynchronous, full‑sync, semi‑sync), binlog formats, and practical strategies to reduce replication lag caused by large transactions, server load, and network constraints.

AsynchronousMySQLPerformance
0 likes · 9 min read
Understanding MySQL Master‑Slave Replication: Core Principles, Modes, and Latency Mitigation
Senior Tony
Senior Tony
Jul 19, 2025 · Databases

Why Your MySQL Index Fails: 8 Common Pitfalls and How to Fix Them

This article examines eight typical situations that cause MySQL indexes to become ineffective—such as violating the leftmost‑prefix rule, leading‑wildcard LIKE patterns, OR conditions, functions, calculations, implicit type conversions, large result sets, and mismatched ORDER BY directions—providing SQL examples, execution‑plan screenshots, and practical explanations.

Index OptimizationMySQLSQL
0 likes · 11 min read
Why Your MySQL Index Fails: 8 Common Pitfalls and How to Fix Them
Senior Tony
Senior Tony
Jun 25, 2025 · Backend Development

When Is Using a Distributed Lock the Right Choice? A Deep Dive into Scenarios and Pitfalls

This article examines common interview scenarios involving distributed locks, explains why they are often misused, outlines their proper use cases such as rate limiting, ensuring data consistency, and achieving ordered processing, and compares distributed locks with distributed transactions.

Concurrency Controlbackend architecturedistributed transaction
0 likes · 8 min read
When Is Using a Distributed Lock the Right Choice? A Deep Dive into Scenarios and Pitfalls
Senior Tony
Senior Tony
Jun 18, 2025 · Backend Development

Mastering High‑Concurrency Account Balance Deductions with Kafka, Sharding, and Parallel Processing

This article examines the challenges of high‑concurrency write scenarios in ad‑billing systems, explains why row‑level locking becomes a bottleneck, and presents a step‑by‑step solution using Kafka for asynchronous peak shaving, parallel consumer processing, database sharding, hotspot dispersion, and batch deduction to achieve reliable real‑time balance updates.

High ConcurrencyKafkaaccount balance deduction
0 likes · 8 min read
Mastering High‑Concurrency Account Balance Deductions with Kafka, Sharding, and Parallel Processing
Senior Tony
Senior Tony
Jun 8, 2025 · Backend Development

Why Kafka Handles Millions of Messages Per Second: Batch, Partition, Zero‑Copy, and Compression Explained

This article breaks down the core techniques that give Kafka its high‑throughput capability, including producer batch settings (batch.size, linger.ms), broker append‑only writes, consumer poll configuration, partition distribution, zero‑copy data transfer, dual‑thread processing, and configurable compression algorithms.

Batch ProcessingCompressionConsumer
0 likes · 8 min read
Why Kafka Handles Millions of Messages Per Second: Batch, Partition, Zero‑Copy, and Compression Explained