知识卡片
单体应用整体部署
单体应用把全部功能作为一个构建产物一起部署,并在同一进程中运行。它可以运行多个相同实例来提高冗余与吞吐,但每个实例仍装载整套应用;多实例不等于已经拆成微服务。规模较小时,整体部署还能让跨模块访问与调试更直接。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Microservice APIs》第 1 章《What are microservice APIs?》(源文件:_epub-src/OEBPS/Text/01.htm)
- 结论依据:1.1.2 节定义单体为整体构建部署、同进程运行,并明确指出运行多个实例仍是每个进程运行完整应用;随后说明同进程访问和调试的便利。
- 原始内容:In contrast with microservices, a monolith is a system where all functionality is deployed together as a single build and runs in the same process. ... We can run multiple instances of a monolithic application and have them run in parallel for redundancy and scalability purposes, but it’s still the whole application running in each process.