Colingo碎碎念

Programming language, 架构, 分布式, 微服务, iOS, Android

0%

为什么微服务要使用独立数据库

实施微服务架构,我们一直在遵循一个实践原则:每个微服务要有自己独立的数据库,避免数据库层面的耦合。这种理所当然感觉好像不需要多加思考,就是应该这样做。

那么到底为什么每个微服务都需要独立的数据库,数据放在一个数据库有问题吗?马丁•福勒 微服务

“In short, the microservice architectural style is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, often an HTTP resource API. These services are built around business capabilities and independently deployable by fully automated deployment machinery. There is a bare minimum of centralized management of these services, which may be written in different programming languages and use different data storage technologies.”