Home/Categories/云原生

云原生

DevOps、Docker、Kubernetes、可观测性

Collection

This collection features articles and community discussions in the 云原生 space, focusing on real-world engineering scenarios, tool selection, practical paths, and risk boundaries.

The page is continuously updated and serves as a learning roadmap, technology selection reference, and technical review entry point.

@admin·13 min read·Cloud Native

Distributed Tracing: OpenTelemetry

When a request crosses N microservices, how do you identify which one failed? Distributed tracing solves this problem. This article explains traces, spans, context propagation, the OpenTelemetry standard, sampling strategies, and how to diagnose slow calls and cross-service failures.

#DevOps♥ 800 comments
@admin·13 min read·Cloud Native

Infrastructure as Code: Terraform in Practice

Clicking through cloud consoles is slow, error-prone, and difficult to reproduce. Infrastructure as Code (IaC) describes resources in code, with Terraform as the leading tool. This guide covers its declarative model, core workflow, state, modules, production backends, and team collaboration.

#DevOps♥ 810 comments
@admin·12 min read·Cloud Native

NoSQL and Document Database Modeling

Developers accustomed to relational modeling often struggle with MongoDB. Its core ideas are query-driven schema design, embedding vs. referencing, and denormalization. This article explains document modeling, its trade-offs, and when to choose a document database over a relational one.

#DevOps♥ 840 comments
@admin·14 min read·Cloud Native

PostgreSQL Performance Tuning

Slow database? Tune before scaling up. This guide covers PostgreSQL configuration (shared_buffers, work_mem, and connections), query analysis with EXPLAIN and index optimization, connection pooling, VACUUM/ANALYZE maintenance, hardware, and a systematic locate-first tuning workflow.

#DevOps♥ 870 comments
@admin·11 min read·Cloud Native

Event-Driven Architecture: A Powerful Tool for Decoupling

Direct calls between services create tight coupling; event-driven design loosens it. This article explains EDA’s core model (producers publish events and consumers subscribe), events vs. messages, Event Sourcing, CQRS, Saga, and where it fits or does not. Do not force EDA solely for “decoupling.”

#DevOps♥ 880 comments
@admin·12 min read·Cloud Native

Database Indexing Strategies in Depth

Knowing how to add a B-tree index is not the same as understanding indexes. This guide covers composite indexes and the leftmost prefix, covering indexes that avoid heap fetches, partial and expression indexes, specialized index types, and the write and maintenance costs involved in query-driven index design.

#DevOps♥ 900 comments
@admin·10 min read·Cloud Native

Serverless Architecture in Practice

Serverless lets you focus on code instead of servers, but its stateless design, cold starts, and billing model impose new constraints. This article explains its FaaS + BaaS core, where it fits (event-driven, bursty, and low-traffic workloads), its costs (cold starts, vendor lock-in, and difficult debugging), and when to use or avoid it.

#DevOps♥ 920 comments
@admin·10 min read·Cloud Native

Docker Compose Production Best Practices

Compose is not just for local development. For small and midsize projects, it can be ten times simpler than K8s in production. This guide covers environment layering, health checks, dependency ordering, restart policies, log drivers, resource limits, security, and when to choose Swarm or standalone Compose.

#DevOps♥ 930 comments