Architecture
Design decisions and the tradeoffs behind them.
System design, integration patterns, real-time systems and enterprise-scale architecture.
Part 5 — Mem0 Intro Part 5 — 生產部署 — OSS 與 Platform 的分界線在哪裡
Mem0 原始碼導讀系列最終篇:拆解 OSS 與 Platform 的完整差異、Graph Memory/Temporal Reasoning/Memory Decay/Dream 四個專屬能力各自解決什麼問題與 OSS 的補法、v2→v3 破壞性變更遷移清單、怎麼用官方開源評測框架測自己的資料,以及一份生產檢查清單。
Part 1 — Mem0 Intro Part 1 — 全景架構 — 為什麼 Agent 需要一個記憶層而不是更長的上下文
Mem0 原始碼導讀系列第一篇:用一張全景圖說清楚這個 6.5 萬星的 AI Agent 記憶層由哪些子系統組成、寫入與讀取兩條路徑各自經過哪些階段、記憶的作用域模型怎麼設計,以及為什麼「把歷史全部塞進 context」在生產環境會失效。
Part 5 — vLLM Intro Part 5 — 生產部署與服務化 — 從 vllm serve 到一份可被驗收的 SLO
vLLM 原始碼導讀系列最終篇:拆解 OpenAI 相容 API 的完整面、Multi-LoRA 多租戶服務、結構化輸出的取樣層約束、Prometheus 指標全表與症狀診斷鏈、P/D 分離與 KV Connector 的實際配置,以及一套不會騙自己的 benchmark 方法。
Part 3 — vLLM Intro Part 3 — 連續批次與排程器 — 決定誰在這一輪前進一格
vLLM 原始碼導讀系列第三篇:拆解連續批次的實作、V1 統一 token 預算排程器如何取代 V0 的雙軌制、Chunked Prefill 在 TTFT 與 ITL 之間的取捨、搶佔與重算機制、投機解碼的接受率數學,以及一份可直接套用的調參手冊。
Part 5 — RAGFlow Intro Part 5 — 系統與程式碼結構 — 服務分層、Task Executor 與 Go 遷移
RAGFlow 原始碼導讀系列最終篇:拆解進程拓撲與水平擴充參數、四層服務分層、Redis Stream 任務系統的 13 種任務型別、Agent Canvas 與 ingestion Pipeline 兩套 DAG 引擎,以及正在進行中的 Python → Go 遷移。
Part 2 — 購物車系統的高並發改造(二):Redisson 分散式鎖、讀寫分離路由與 Docker HA 水平擴展
高並發購物車系列第二篇:深入剖析 Redisson 分散式鎖如何防止超賣與重複下單、AbstractRoutingDataSource + LazyConnectionDataSourceProxy 的讀寫分離路由設計細節(含 @Transactional 的坑),以及 Nginx + MySQL 主從複製的 Docker HA 生產架構。
Part 1 — 購物車系統的高並發改造(一):Virtual Threads、HikariCP 與 Redis 快取三管齊下
深入剖析一個真實 Spring Boot 購物車系統如何從「默認設定」升級到能承受 C10K 的生產級高並發架構:JDK 21 Virtual Threads、HikariCP 連線池調校、Redis 分層快取設計,以及升級到 Spring Boot 3.2 過程中的關鍵踩坑。
LangGraph AI 後端架構設計模式:從單體到分佈式
深入講解如何設計可擴展、高性能的 LangGraph AI 後端架構,涵蓋從單體應用到微服務的演進,包括 Agent 拓撲、數據流、錯誤恢復、分佈式協調等生產級設計模式。
Building a Sentiment-Driven US Stock Trading System with X.com Real-Time Analysis
Learn how to architect a production-ready sentiment-driven stock trading platform that streams X.com posts in real-time, analyzes market sentiment using AWS Bedrock and HuggingFace, and automatically executes trades on US stocks based on social media signals.
Building an Intelligent Bitcoin Trading System with AWS CDK and ML Models
Learn how to architect and deploy an intelligent cryptocurrency trading system on AWS using CDK, with historical price analysis, ML-powered predictions from AWS Bedrock and HuggingFace, and event-driven trade execution.
Building Centralized Grafana + Prometheus Monitoring with AWS CDK: Multi-Service Observability Platform
Comprehensive guide to architecting a production-ready centralized Prometheus + Grafana monitoring platform using AWS CDK that aggregates metrics from multiple services, clusters, and infrastructure components with federation, remote storage, and advanced alerting.
Building AI Music Generation Platform: AWS CDK Architecture with SageMaker and Bedrock Comparison
Complete guide to architecting a production-ready AI music generation platform on AWS using CDK, comparing SageMaker and Bedrock approaches with detailed pros, cons, and implementation strategies for generating music from text prompts.
Deploying Apache Superset at Scale: Production-Ready BI Platform with AWS CDK and ECS Fargate
Comprehensive guide to architecting a highly available, production-grade Apache Superset deployment using ECS Fargate, RDS PostgreSQL, and AWS CDK for enterprise business intelligence at scale.
Building a Centralized User Access Control System with AWS Cognito and CDK
Design and implement a production-ready centralized authentication and authorization system using AWS Cognito and CDK (TypeScript). Learn multi-tenant strategies, user pool management, RBAC/ABAC patterns, and how to integrate with multiple services and applications.
Part 6 — Kubernetes Autoscaling Complete Guide (Part 6): Advanced Autoscaling Patterns
Part 6 of the Kubernetes Autoscaling series: Advanced autoscaling patterns for stateful applications, multi-cluster deployments, cost optimization strategies, batch job scaling, and emerging technologies. Real-world architectures and production-grade implementations.
AWS Load Balancers: Complete Guide - Application, Network, Gateway, and Classic Load Balancers Comparison with Implementation
Master AWS Load Balancers with comprehensive comparisons of ALB, NLB, GWLB, and CLB. Learn when to use each type, advanced features, health checks, auto-scaling integration, and production-ready configurations with real-world examples.
AWS API Gateway: Complete Guide with Load Balancer Comparison, Microservices Architecture, and Java Implementation
Master AWS API Gateway with comprehensive comparisons to load balancers, microservices integration patterns, and production-ready Java implementations. Learn when to use API Gateway vs Load Balancer, security best practices, and scaling strategies.
Webhooks: Complete Guide with Java Implementation - Event-Driven Architecture, Real-Time Integrations, and Best Practices
Master webhooks with comprehensive comparisons to HTTP calls and polling, real-world Java implementations, and practical examples using Stripe, Shopify, and GitHub APIs. Learn when to use webhooks, security best practices, and production-ready patterns.
Redis Sentinel: Complete High Availability Setup Guide with Java Integration and Monitoring
Master Redis Sentinel for high availability with comprehensive setup guides, mode comparisons, failover mechanisms, and production-ready Java integration. Learn monitoring, troubleshooting, and best practices for enterprise deployments.
MySQL Sharding Strategies: A Comprehensive Guide to Horizontal Scaling, Partitioning Methods, and Implementation Patterns
Master MySQL sharding strategies with detailed comparisons of horizontal partitioning, range-based sharding, hash-based sharding, and directory-based approaches. Learn implementation patterns, pros/cons, and real-world use cases for scaling databases.
Essential Design Patterns in Java: A Comprehensive Guide to Creational, Structural, and Behavioral Patterns
Master essential design patterns in Java with practical implementations. Learn Singleton, Factory, Builder, Observer, Strategy, Decorator, and more patterns with real-world examples, best practices, and performance considerations.
Building Real-Time Chat Room with Spring Boot WebSocket
Comprehensive guide to building a scalable, real-time chat room application using Spring Boot WebSocket, STOMP protocol, and Redis clustering for enterprise-grade messaging solutions.
Building Employee Management System with Spring Boot and Vue.js
Comprehensive guide to building a modern employee management system using Spring Boot microservices architecture and Vue.js frontend, designed for enterprise scalability and extensibility.
Building Production Kubernetes Platform on AWS EKS
Deep dive into architecting a comprehensive Kubernetes platform on AWS EKS with integrated data processing, monitoring, and observability using infrastructure as code.
Building Scalable WordPress on AWS ECS Fargate
Comprehensive guide to deploying production-ready WordPress on AWS ECS Fargate, exploring containerization strategies, infrastructure decisions, and scalability patterns for high-traffic content management systems.