Files
nexus/wiki/concepts/微服务架构.md

31 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "微服务架构"
type: concept
tags: [software-engineering, architecture, microservices, distributed-systems]
sources: [开发经验与项目规范整理文档]
last_updated: 2025-12-30
---
## Definition
**微服务架构Microservices Architecture** 是一种将单体应用拆分为多个小型、独立服务的设计模式。每个服务运行在独立进程中围绕业务能力组织通过轻量级协议HTTP、RPC、MQ通信。
## Core Principles
- 独立开发:每个服务可由独立团队开发
- 独立部署:服务可独立发布,不影响其他服务
- 独立扩容:根据负载单独扩展对应服务
- 业务边界清晰每个服务处理一个业务领域Bounded Context
- 服务间通过 API 通信HTTP、RPC、消息队列等
## Related Concepts
- [[模块化编程]] — 微服务是模块化思想在系统级别的延伸
- [[消息队列]] — 微服务间异步通信的常用手段
- [[Redis缓存]] — 微服务架构中常用的缓存层
- [[Docker]] — 微服务容器化部署的基础设施
## Source Reference
来源:[[开发经验与项目规范整理文档]]