1.面向服务的架构(SOA):
它是一个巨大的服务集合,服务在其中相互通信。该框架用于使用将所有组件视为服务的软件架构来设计软件系统。通信由 SOA 提供,通常用于数据传递,它可以通信两个或多个服务并完成一些活动。
它提供各种微服务作为功能,具有以下函数:
1. Loosely coupled
2. Reusable
3. Composable
4. Autonomic
5. Standardized
2.微服务架构(MSA):
它需要大量的服务并分解成小的服务或可共享的组件。它也称为单体应用,其中所有功能都放在一个进程中。这种方法用于开发应用程序和与可能用不同的编程语言和数据存储编写的不同方法的通信。
以下是 MSA 的一些特色功能 –
1. Business capabilities
2. Products
3. Smart End Point
4. Automation
5. Evolutionary
SOA 和 MSA 的区别:
SOA. | MSA. |
---|---|
It is a huge collection of services in which services communicate with each other. | It is general architecture that takes large number of services and break down into small services or shareable component. |
It works on Share-as-much-as-possible approach. | It works on Share-little-as-promise approach. |
It is used to share the data storage. | It has independent data storage. |
It supports various multiple protocol. | It supports HTTP/REST lightweight protocol. |
In service oriented architecture, there is a multi-threaded with more handle I/O. | In Micro service Architecture, there is single-threaded with non-locking I/O handle. |
It has common platform for all services. | It has platform like Nodejs is used and application server not used. |
It uses of container is less popular Docker linux. | Its container work very well. |
It uses traditional database. | It uses non-relational database. |
It uses ESB services for communication. | It does not use ESB services.It has a simple messaging system. |
It have common governance standard. | Relaxed governance with more focus on people. |