The article analyzes six microservice token authentication patterns, rejecting token passthrough for breaking service statelessness, comparing Feign, Dubbo, and Spring Boot Web gateway approaches with their trade-offs, and advocating decentralized auth with K8S Ingress to eliminate registry centers and reduce network hops.
This article explores why traditional capacity planning fails in microservices architectures and presents automated performance testing as a neural center for dynamic planning, detailing a PDCA-Perf closed-loop model with self-generated scenarios, adaptive load, and correlated metrics, while warning against tool-centric and static approaches.
This article argues that pursuing reuse as a primary goal in system design often backfires, increasing coupling and maintenance burden; it advocates prioritizing module autonomy over forced reuse, using autonomy and consistency metrics to evaluate design decisions, and warns against over-generalization like excessive microservices or shared business platforms.
This article analyzes Nacos service registration and discovery internals, covering architecture, Spring Cloud Commons integration, heartbeat-based health checks, OpenAPI registration flow, and the HostReactor's three-map caching mechanism with 10-second periodic updates and failover support.
This article details the architecture and implementation of a user profiling platform built with Spring Boot microservices, covering tag modeling, real-time and offline computation pipelines, multi-layer storage with ClickHouse and RoaringBitmap, audience selection via bitmap operations, version governance, and security practices.
A structured Java backend interview preparation guide covering core Java, MySQL, Spring ecosystem, Redis, message queues, microservices basics, deployment, and project practice with flexible 30-day, 8-week, and 12-week schedules for campus recruitment candidates.
This article analyzes three real-world gray release failures in Spring Cloud, revealing that successful gray release requires full-chain context propagation, traffic-proportion accuracy, and bidirectional data compatibility—not just gateway routing. It covers implementation details, LoadBalancer filter chains, fallback strategies, database migration patterns, and troubleshooting techniques.
A detailed troubleshooting case study where random microservice disconnections in a Spring Cloud Alibaba cluster were traced to a Linux kernel bug causing JVM hangs, resolved by upgrading the kernel on affected servers.
This article analyzes why real-time multiplayer games like Honor of Kings reject microservices, citing latency sensitivity, stateful game sessions, sticky routing needs, and the mismatch between microservice patterns (stateless, request/response) and game server requirements (streaming, in-memory state, single-threaded Netty models).
This article deep-dives into Nacos' dual role as service registry and config center, explaining its AP-based Distro protocol, heartbeat mechanisms, gRPC long-polling config push, @RefreshScope internals, deployment essentials, and eight common pitfalls with troubleshooting steps.
This article provides a comprehensive overview of the Spring Cloud ecosystem, detailing its six-layer component architecture, strict version compatibility rules, end-to-end request flow, core abstraction interfaces, recommended project structure, common configuration pitfalls, and a structured learning path with interview questions.
Taodaji migrated from self-built SkyWalking and Elasticsearch to Alibaba Cloud's managed ARMS, SLS, Cloud Monitor 2.0, and STAROps, achieving 40% lower API latency pre-launch, minute-level fault localization, 50% faster troubleshooting, and 30% operational cost reduction through unified traces, logs, metrics, and AI-driven root cause analysis.
This article details practical implementation of evolutionary architecture, covering Conway's Law alignment, cross-functional team organization, culture and experimentation, budget considerations, fitness functions as experimental tools, enterprise governance with bounded contexts, adoption strategies, and when to avoid evolutionary architecture.
This article details ten core microservices design patterns — including Database per Service, Event Sourcing, CQRS, Saga, BFF, API Gateway, Strangler, Circuit Breaker, Externalized Configuration, and Consumer-Driven Contract Testing — with pros, cons, use cases, and technology examples for each.
The author recounts a production incident where blindly enabling 2MB huge pages for a microservice workload caused 30% memory bloat, CPU soft-interrupt spikes, and latency degradation, then explains the TLB vs. fragmentation trade-offs that make huge pages suitable only for large, contiguous memory workloads like databases.
This comprehensive guide analyzes authentication and authorization framework selection across five dimensions, comparing Sa-Token, Keycloak, Spring Security, and JWT with cost models, migration strategies, source code insights, and scenario-based recommendations for startups to enterprises.
The article analyzes whether service mesh sidecar dual-write is suitable for a commercial bank's Xinchuang (indigenous innovation) system transformation, detailing service mesh concepts, pros/cons, applicable scenarios, and a decision framework with concrete criteria.
This article explains why Nginx cannot fully replace service registries such as Nacos or Eureka, detailing differences in dynamic instance awareness, load balancing approaches, core responsibilities, and health checks, while noting scenarios where Nginx alone suffices for simple, static backends.
This article catalogs common pitfalls and anti-patterns that erode evolutionary architecture, including the last 10% trap in low-code tools, component reuse bottlenecks, vendor lock-in, leaky abstractions, resume-driven development, inappropriate governance, and business-driven coupling, with concrete case studies and fitness function strategies.
This article systematically categorizes and explains core microservice design patterns across decomposition, integration, database, event-driven, observability, and cross-cutting concerns, providing practical guidance for architects building resilient, scalable distributed systems.
The article explains CQRS as domain model separation rather than database read/write splitting, detailing command/query model boundaries, event-driven synchronization challenges, consistency trade-offs, engineering pitfalls like event reliability and view explosion, when to avoid CQRS, and a reference e-commerce order implementation with consistency-based query routing.
This article details the Strangler Fig Pattern for migrating legacy monoliths to microservices, using a facade layer, dual-write with local message tables, traffic mirroring, and one-click rollback, illustrated with a 14-month retail migration and the TSB bank failure case.
Segment consolidated over 140 microservices into a monolith to reduce change fan-out and operational burden, while Prime Video moved video frame processing in-memory to eliminate 14.4 million hourly object storage handoffs; both cases show service boundaries must justify their cost in coordination, data transfer, and failure isolation.
This guide walks through setting up Spring Boot Admin for monitoring Spring Boot applications, covering server and client configuration, security setup, custom alerting, and microservices integration with Nacos service discovery.
This article introduces Easy-Trans, a Dromara open-source library that uses a single @Trans annotation to automatically handle five types of data translation—dictionary, simple join, cross-service RPC, enum, and custom—while eliminating N+1 queries through batch ID collection and single IN-clause or cache lookups, with configuration details and best practices for Spring Boot applications.
This article explains distributed tracing concepts, the OpenTracing standard, and how SkyWalking implements automatic span collection, context propagation, unique trace IDs via Snowflake, and adaptive sampling to minimize performance overhead.
A real e-commerce stress test reveals a distributed monolith where services are physically separated but logically coupled via shared databases, synchronous write chains, and shared domain models. The article dissects three coupling layers, control-plane risks, and an incremental decoupling strategy with an architectural review checklist.
This article explores how software topology determines evolvability through connascence-based coupling analysis, architectural quanta as independently deployable units, contract spectra from strict RPC to loose key-value, microservices as evolutionary templates, data mesh for analytical data, and evolutionary database practices including Expand/Contract migrations and data governance.
This article compares full-chain stress testing with traditional load testing across four dimensions—goal positioning, technical implementation, risk control, and implementation cost—using real-world cases from e-commerce and finance to demonstrate how end-to-end validation uncovers hidden failures that isolated tests miss.
This article explains why microservices require an API gateway by comparing three approaches for handling cross-cutting concerns like authentication, demonstrating how gateways eliminate code duplication, reduce service JAR size, and enable centralized updates without redeploying all services, while also covering gateway architecture, core functions, and technology stack recommendations.
This article analyzes why Quarkus is gaining adoption over Spring Boot for cloud-native Java, detailing its build-time processing architecture that eliminates runtime reflection, delivering 2.7x higher throughput, 2.3x faster startup, and 2.2x lower memory usage, with benchmarks, code examples, and migration trade-offs.
This chapter summary traces the evolution from monolith to microservices, detailing core components like service discovery, circuit breakers, gateways, and observability, while stressing that adoption must be driven by business complexity and team needs — not service count — and provides a practical checklist for splitting and transformation.
The article analyzes four production incidents where Kubernetes liveness and readiness probe misconfigurations turned transient dependency glitches into cluster-wide outages, explains the architectural boundary between liveness (process health) and readiness (traffic readiness), provides parameter tuning guidelines, warns against dynamic probe configuration, and presents a multi-layer fault isolation model with a practical review checklist.
This tutorial details deploying a three-node Seata 1.8.0 cluster using Docker Compose, Nacos for service registration and configuration, and MySQL for persistent transaction storage, covering directory layout, node-specific configs, database schema, and verification steps.
Google launches Cloud Swift SDK for Swift 6.2+, using SwiftNIO's async event loops, HTTP/2, gRPC, and compile-time data-race safety; engineers praise Swift's lightweight runtime, ARC, and syntax as a developer-friendly alternative to Rust or C++ for backend microservices, despite slow adoption after IBM's 2019 exit.
This article explores architectural decomposition for a cement industrial platform, distinguishing business, code, and deployment boundaries, advocating modular monoliths over premature microservices, and detailing domain-driven design, bounded contexts, transaction boundaries, CQRS, and a practical migration strategy with evaluation criteria.
This guide details building an enterprise-grade observability system using SkyWalking, covering distributed tracing, metrics monitoring, log correlation, and alert governance to eliminate blind troubleshooting in microservices.
This article details migrating from Spring Cloud/OpenFeign to Apache Dubbo 3 with Spring Boot 3, covering Triple protocol over HTTP/2, binary serialization, service governance (timeouts, retries, load balancing), streaming, observability, and production pitfalls with benchmark comparisons showing 3-5x throughput gains.
This article provides a comprehensive troubleshooting guide for microservice registration discovery and gateway routing failures, covering 10 high-frequency Nacos faults, Eureka-specific issues, gateway routing problems, a step-by-step SOP, and production high-availability specifications to eliminate cascading outages.
This article explores advanced C4 model topics including notation independence, element and relationship design, microservices and message-driven architecture modeling, scaling techniques for large systems, and a diagramming maturity model for engineering teams.
This article provides a comprehensive guide to distributed transactions in microservices, covering CAP/BASE theory, four major patterns (2PC, local message table, TCC, SAGA), eight common production faults with root causes and fixes, selection guidelines, a troubleshooting SOP, and high-availability standards.
This article details a production-grade incident postmortem framework for microservices, covering blameless analysis, Swiss Cheese Model root cause analysis, standardized templates, maturity assessment, and closed-loop integration with chaos engineering and architecture reviews.
This article traces software architecture evolution from monoliths through primitive distributed systems, SOA, microservices, and cloud-native, highlighting two recurring patterns — finer decoupling and stronger fault isolation — and a shift from zero-failure goals to designing for resilience, while outlining four unprecedented challenges AI agents introduce: semantic hallucinations, stateful context, dynamic orchestration, and observability gaps.
This article analyzes six public benchmark datasets comparing HTTP/1.1+JSON (REST) against binary protocols like gRPC+Protobuf and Dubbo, showing gRPC achieves roughly 2x throughput and half the latency, but argues the gap is often negligible in real business scenarios where database and logic dominate latency.
China Postal Savings Bank integrated with the Leqi platform's shared invoice service, enabling automatic invoice generation upon payment via a three-layer-one-core architecture using microservices, TCC distributed transactions, and domestic technology stack, achieving 99.9% success rate and seconds-level invoicing.
An engineer details a week-long investigation into random microservice disappearances from Nacos in a Spring Cloud Alibaba cluster, systematically ruling out memory, CPU, disk, network, Nacos server/client issues, and JVM problems before discovering a Linux kernel bug causing JVM pauses, resolved by kernel upgrade.
This article analyzes three real production incidents from e-commerce promotions to expose critical flaws in circuit breaker and degradation architectures, detailing the dangers of half-open state probing, configuration hot-update inconsistency, and unbounded business degradation, then presents a three-layer protection model with custom recovery strategies and governance checklists.
This article analyzes three real production incidents caused by broken TraceId propagation, uncontrolled log volume, and sensitive data exposure, then presents a comprehensive microservice logging framework covering log levels, mandatory fields, exception handling, dynamic level governance, cold-hot storage tiering, and a production checklist.
The article compares three approaches to restrict APIs to internal-only access in microservices: service isolation, gateway whitelist with Redis, and a gateway-plus-AOP solution that adds a header at the gateway and validates it via annotation-driven aspect, favoring the latter for performance and developer efficiency.
DC3 is a distributed, open-source IoT platform built on Spring Cloud that enables rapid development and device management through a four-layer architecture covering drivers, data, management, and applications with Kubernetes and Docker support.
This article analyzes three real production incidents caused by configuration governance gaps in microservices, detailing a three-tier classification model, audit logging, version snapshots, metadata requirements, and validation mechanisms to prevent configuration-related failures.
Graphify uses tree-sitter AST parsing to generate queryable code knowledge graphs with confidence-labeled edges, community detection, and God node identification, enabling offline architecture governance for legacy Java and microservices without vector databases or LLM tokens.
Firebolt consolidated previously independent metadata, identity, and garbage-collection services into its core database process to simplify multi-environment deployment and reduce cross-service coordination, while analyzing trade-offs in fault isolation, resource contention, and the distinction between module and process boundaries.
This article presents a practical guide for performance stress testing in domestic microservice containerization, addressing three core challenges—lack of unified computing power conversion, non-linear multi-core scalability, and frequent base software iterations—through standardized baselines, quantitative modeling, multi-core optimization, and continuous governance frameworks.
This article analyzes three real e-commerce production incidents caused by misconfigured timeouts and uncontrolled retries, then provides a systematic framework for timeout calculation, call-chain layering, retry decision boundaries, MQ-specific rules, and a release-review checklist to prevent cascading failures in microservices.
This article analyzes two extremes of microservice splitting—overly coarse services that become monoliths and overly fine services that explode call chains—details a three-tier technical debt classification (P0/P1/P2), and presents a four-step Strangler Fig Pattern for zero-downtime progressive refactoring based on real e-commerce production experience.
A real-world case study shows how systematic profiling with Spring Boot Actuator and JFR, combined with scan-scope reduction, selective @Lazy on external clients, HikariCP deferred connection, and ApplicationReadyEvent-driven async initialization cut a Spring Boot 3.1.5 order-service startup from 6.2 seconds to 1.8 seconds on Java 17.
The author migrates a high-frequency internal inventory query from REST to gRPC in Spring Boot 4.1, discovering that gRPC's contract-first approach, binary encoding, and explicit timeout handling improve interface governance for service-to-service RPC, while REST remains better for web-facing and low-frequency APIs.
This article introduces Whim, a new Rust-built language that adds reified generics, advanced pattern matching, and a native event-loop async model to PHP, demonstrating via an e-commerce BFF showcase how these features combine to cut microservice aggregation latency from 2.7s to 1.2s.
An API's sudden latency spike from 200ms to 8 seconds was traced not to slow SQL but to database connection pool exhaustion caused by @Transactional methods holding connections during external HTTP calls to a payment service; splitting transactions and moving external calls outside the transaction boundary resolved the issue.
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.
This article analyzes microservice interface compatibility failures through real mall project incidents, defining forward/backward/bidirectional compatibility, detailing four DTO field iteration taboos with code examples, comparing three versioning strategies (URL path, request header, field adaptive), and prescribing a four-step deprecation process to eliminate technical debt.
The author shares practical experience replacing OpenFeign with Spring's @HttpExchange during a Spring Boot 4 upgrade, demonstrating configuration simplification, authentication handling via RestClient interceptors, error mapping with defaultStatusHandler, and the decision to coexist both clients rather than force a full migration.
This article provides a comprehensive tutorial on Apollo configuration center, covering its core concepts (application, environment, cluster, namespace), client architecture with long-polling and local caching, overall system design with Config/Admin services and Eureka, availability scenarios, hands-on SpringBoot integration with Maven setup, dynamic configuration testing (updates, rollbacks, offline fallback), multi-environment/cluster/namespace usage, and Kubernetes deployment via Docker and YAML manifests.
This article details a production-verified microservice observability system covering SkyWalking advanced tracing with async propagation, structured JSON logging with TraceId correlation, core metrics and alerting noise reduction, architectural trade-offs, and a standardized 6-step troubleshooting SOP that reduces incident resolution from hours to minutes.
This comprehensive guide covers Spring Cloud microservices architecture, comparing Eureka, Nacos, and Consul for service discovery; details OpenFeign dynamic proxy and load balancing; explains Sentinel rate limiting, circuit breaking, and degradation; contrasts Sleuth/Zipkin with SkyWalking for distributed tracing; and provides production pitfalls and interview strategies for Spring Cloud Alibaba ecosystem.
The author shares their experience replacing OpenFeign with Spring's @HttpExchange during a Spring Boot 4 upgrade, demonstrating how interface definitions simplify but cross-cutting concerns like authentication, timeouts, and error handling remain, leading to a pragmatic coexistence of both tools based on project needs.
This article proposes using domain ontologies as semantic adapters in cloud ERP architectures to resolve multi-tenant data heterogeneity, semantic drift, and system mismatch through a three-layer mechanism covering concept mapping, granularity conversion, and rule formalization, with a sidecar deployment pattern and applicability guidelines.
The article analyzes four 2026 shift-left testing trends: IDE-level contract testing, AI-driven risk-based quality gates, contract-first cross-team governance, and a three-dimensional observability model measuring defect detection time, cost ratio, and production rollback reduction, with real-world metrics from banking, e-commerce, and automotive sectors.
A team troubleshoots random microservice disappearances from Nacos in a Spring Cloud Alibaba cluster, ruling out memory, CPU, disk, network, and Nacos client issues before discovering a Linux kernel bug causing JVM pauses, fixed by kernel upgrade.
The article explains why independent deployment doesn't guarantee independent service evolution, detailing five required capabilities—identifiable dependencies, compatible interfaces, controllable traffic routing, verifiable releases, and recoverable failures—using a refund service case study to illustrate dependency topology, interface evolution patterns, phased release strategies, and evidence-based rollback decisions.
This article analyzes why 70% of architecture refactoring projects fail, detailing five cognitive misalignments, three valid refactoring scenarios, a seven-step incremental iteration process with dual-system parallel runs, traffic migration strategies, and five core risk mitigations for production-safe refactoring.
This comprehensive guide compares Dubbo, gRPC, and Feign across eight critical dimensions including protocols, serialization, performance, cross-language support, service discovery, circuit breaking, streaming, and hybrid architecture coordination, with detailed interview questions and answers for each.
This article compares Dubbo, gRPC, and Feign across circuit breaking, streaming, contract management, learning curves, and real-world scenarios, providing a decision matrix and a Spring Cloud Alibaba hybrid architecture where all three coexist for external HTTP, internal high-frequency Java, and cross-language algorithm services.
This article details 10 practical message queue scenarios for Spring Boot microservices, covering system decoupling, asynchronous processing, traffic shaping for flash sales, data synchronization, centralized logging, broadcast configuration updates, ordered message processing, delayed messages for timeouts, retry mechanisms with dead-letter queues, and transactional messaging for distributed consistency, with code examples for RabbitMQ, Kafka, and RocketMQ.
This article dissects Nacos configuration center's core mechanisms — long-connection push, local disk caching, and differentiated refresh behaviors — and postmortems four real production incidents: config drift causing instance divergence, large-config push triggering cluster avalanche, K8s IP-based gray release failure, and rollback ineffectiveness due to lost push events and cache pollution. It provides coding standards, enterprise-grade landing specifications, and emergency SOPs.
This article details the engineering implementation and performance optimization of TCC distributed transactions in Go microservices, using an order placement scenario with inventory locking and wallet freezing, covering data models, idempotent state machines, recovery workers, hotspot optimization, and observability.
This article presents a production-ready multi-environment governance framework for microservices, detailing a five-layer environment architecture (Dev, Test, Staging, Gray, Prod) and four-dimensional isolation (traffic, config, middleware, data) with concrete implementation patterns, real-world pitfalls, and team execution standards to eliminate cross-environment interference and data pollution.
This article outlines nine CI/CD gatekeeping practices — from security-first pipelines and microservices adoption to commit frequency, single deployment paths, environment parity, test prioritization, avoiding duplicate builds, automation sequencing, and on-demand containerized test environments — to prevent risky releases and improve delivery reliability.
In today’s fast‑paced agile and micro‑service environments, performance regression testing is often treated as optional, leading to severe TPS drops and hidden degradations; this article details five typical misconceptions, backs them with real‑world examples, and offers concrete practices to make performance regression a continuous, cross‑team responsibility.
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.
The author refactors an old Spring Cloud project by removing Feign, replacing @FeignClient with Spring Boot 4.x’s native @HttpExchange and @ImportHttpServices, and demonstrates that Spring’s built‑in HTTP Service Client provides the same declarative convenience with less boilerplate, while still supporting custom configuration, error handling, and reactive use cases.
This article details a production-ready full-chain gray release system using Spring Cloud Gateway and Dubbo, distinguishing canary from gray release, covering implementation, four real-world pitfalls with solutions, and a seven-step standardized rollout process for zero-downtime microservice deployments.
This article explores how Spring Cloud OpenFeign enables elegant inter‑service calls by replacing low‑level HttpClient code with declarative interfaces, detailing the scanning and registration process, dynamic proxy creation, contract parsing, encoder/decoder mechanics, load‑balancer integration, practical examples, common pitfalls, unit‑testing strategies, and interview‑style self‑assessment.
Based on three years running 50+ microservices, this article details production pitfalls in Nacos, Sentinel, Seata, and Dubbo, covering configuration isolation, hot-update risks, rule persistence, distributed transaction misuse, and thread pool tuning, with real incident postmortems and concrete configuration standards.
The article examines why traditional JMeter‑based load testing falls short for microservices and presents a four‑layer open‑source stack—Gatling, k6, Prometheus/VictoriaMetrics/Grafana + Pyroscope, and Chaos Mesh/LitmusChaos—plus a 3C methodology and automated closed‑loop workflow to achieve observable, programmable, and resilient performance testing in cloud‑native environments.
This article explains why effective service boundaries require aligning business rules, data ownership, change rhythms, and team responsibilities—not just drawing boxes around nouns—using a refund processing case study to compare modular monolith vs. microservice trade-offs and verify boundaries through concrete evidence.
This article provides a comprehensive production guide for Spring Cloud Gateway based on real e-commerce experience, covering unified JWT authentication with whitelist, header-based and weight-based canary release strategies, Sentinel integration for global rate limiting and circuit breaking, and six critical production pitfalls including header loss, CORS errors, 504 timeouts, blocking I/O, static routing, and ineffective rate limiting with solutions.
This article argues that system architecture starts from business goals and quality attributes, not technology choices, using a refund processing example to illustrate trade-offs across system boundaries, collaboration patterns, and six architectural perspectives, emphasizing that observability, fault tolerance, and security must be designed in and validated with independent evidence throughout the system's lifecycle.
In today’s high‑concurrency, microservice‑driven cloud‑native world, traditional load testing often misses real‑world failure modes, so this guide introduces adversarial performance testing—injecting faults, latency, and malicious traffic—to expose hidden bottlenecks and build resilient systems.
This article details how to build highly available Spring Boot microservices using Nacos for service discovery and configuration, OpenFeign for declarative REST calls with load balancing, timeouts, and retries, and Sentinel for circuit breaking and fallback handling, including multi-environment isolation via namespaces and groups.
The article explains how RocketMQ’s transactional message mechanism guarantees consistency between order creation and inventory deduction by using half‑messages, a local transaction callback, a second‑phase confirmation, and broker‑side timeout checks, while highlighting common pitfalls and best‑practice recommendations.
This article compares load balancers and API gateways, explaining their layer‑4 vs layer‑7 focus, feature sets such as routing, authentication, observability, and extensibility, and outlines suitable scenarios like microservices, API publishing, and high‑throughput network entry to help readers select the appropriate component.
The article explains why gRPC is gaining popularity by comparing its performance, streaming capabilities, and cross‑language contract advantages over traditional REST + JSON, and provides a step‑by‑step guide to building a complete gRPC service with Spring Boot 4.1.