Xike
Author

Xike

Stupid is as stupid does.

31
Articles
0
Likes
195
Views
0
Comments
Recent Articles

Latest from Xike

31 recent articles
Xike
Xike
Oct 8, 2026 · Backend Development

Short Link Implementation: Core Algorithms, Base62 Encoding, and 302 Redirection

This article details the architecture of short link systems, covering short domain selection, unique ID generation strategies (auto-increment, Redis, Snowflake), Base62 and custom encoding, mapping storage with Redis and databases, 302 redirection flow, cache optimization, anti-enumeration, idempotency, expiration handling, multi-data-center deployment, and click tracking.

Redis cachingbase62http-redirection
0 likes · 15 min read
Short Link Implementation: Core Algorithms, Base62 Encoding, and 302 Redirection
Xike
Xike
Sep 14, 2026 · Artificial Intelligence

How Do You Implement Intent Recognition for AI Agents?

This article explains intent recognition for AI agents, covering definition, common approaches (rules, LLM with structured output, semantic retrieval, hybrid), their pros and cons, suitable scenarios, and practical implementation advice including schema validation, confidence gating, and multi-turn handling.

AI AgentsFunction CallingLLM
0 likes · 15 min read
How Do You Implement Intent Recognition for AI Agents?
Xike
Xike
Sep 9, 2026 · Fundamentals

ThreadLocal Internals: How It Works, Why It Leaks, and Safe Usage Patterns

ThreadLocal provides per-thread variable copies via a ThreadLocalMap with weak-reference keys and strong-reference values, enabling request-context storage and non-thread-safe object reuse, but risks memory leaks in long-lived thread pools unless explicitly removed, and requires careful handling for cross-thread propagation.

Best PracticesInheritableThreadLocalJava Concurrency
0 likes · 14 min read
ThreadLocal Internals: How It Works, Why It Leaks, and Safe Usage Patterns
Xike
Xike
Aug 16, 2026 · Backend Development

Idempotency Strategies for APIs: Preventing Duplicate Submissions

The article analyzes why network timeouts, client retries, user double‑clicks, and at‑least‑once MQ delivery cause duplicate intents, then details five practical idempotency techniques—conditional updates, unique constraints, Idempotency‑Key tokens, state machines with optimistic locks, and distributed locks—along with their trade‑offs and monitoring tips.

APIDatabaseIdempotency
0 likes · 11 min read
Idempotency Strategies for APIs: Preventing Duplicate Submissions
Xike
Xike
Aug 14, 2026 · Artificial Intelligence

DeepSeek Harness Deep Dive: How a Modular “Heart” Powers Flexible AI Agents

DeepSeek Harness (DSH) is an open‑source, MIT‑licensed agent framework that treats every capability as a plugin, provides an append‑only execution log for full traceability, offers multiple built‑in modes including headless operation, and distinguishes itself from Claude Code/Codex by delivering a truly modular, model‑agnostic execution layer.

AI agentDeepSeek HarnessExecution Layer
0 likes · 14 min read
DeepSeek Harness Deep Dive: How a Modular “Heart” Powers Flexible AI Agents
Xike
Xike
Aug 7, 2026 · Databases

Embedding Sharding Genes in Business IDs for Direct Routing in Sharded Databases

By embedding a shard identifier (“gene”) into the low bits of a business ID generated via Redis INCR or similar sequencers, the article shows how to achieve direct table routing without broadcast queries or extra mapping tables, detailing the algorithm, implementation, integration with Snowflake and Leaf, and common pitfalls.

JavaLeafRedis
0 likes · 11 min read
Embedding Sharding Genes in Business IDs for Direct Routing in Sharded Databases
Xike
Xike
Aug 5, 2026 · Backend Development

How to Automatically Cancel Unpaid Orders When They Timeout

The article explains a reliable, idempotent solution for automatically cancelling orders that remain unpaid after a configured deadline, covering data modeling, state transitions, trigger mechanisms using delayed messages or scans, handling race conditions with payment, and essential monitoring and pitfalls.

Message QueueRocketMQbackend
0 likes · 17 min read
How to Automatically Cancel Unpaid Orders When They Timeout
Xike
Xike
Aug 4, 2026 · Operations

How We Fixed the AI‑Powered xi‑ops Ops Platform’s Critical Pitfalls

This article walks through the security and reliability pitfalls encountered when integrating large language models into the xi‑ops open‑source operations platform—covering unsafe SQL generation, unauthorized SSH actions, knowledge‑base hallucinations, prompt‑engineered bypasses, and configuration sync issues—and explains the concrete engineering safeguards that were implemented to close each gap.

AI OpsLLMMCP
0 likes · 21 min read
How We Fixed the AI‑Powered xi‑ops Ops Platform’s Critical Pitfalls