Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What are the interaction modes of microservices

Shulou Source: shulou.com Published: 2022-06-02 03:38:19 11月12日 Update

This article mainly explains "what are the interaction modes of micro-services". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought. Let's study and learn "what are the interaction modes of micro-services"?

1. There are several ways to interact with traditional application services:

ESB bus: WebService and other SOA architectures

Data sharing cache: Redis

Data sharing databases: Oracle, MySQL, etc.

two。 The shortcomings of traditional interaction

There are multiple contracts: interface contract and data storage contract

Upstream data format changes, affecting downstream processing logic

Sharing resources and services, it is difficult for operation and maintenance to draw a clear line between responsibilities and boundaries.

When dual computer rooms are deployed independently, service calls across computer rooms cannot use independent resource deployment patterns, so it is difficult to achieve service autonomy.

3. The mode of microservice:

De-ESB bus, decentralized and distributed

Use well-defined interfaces and do not allow shared data, such as REST API or transparent RPC invocation frameworks

Thank you for your reading. the above is the content of "what are the interaction modes of micro-services". After the study of this article, I believe you have a deeper understanding of the interaction modes of micro-services. the specific use also needs to be verified by practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Services patterns data contracts learning traditions content buses interfaces ways computer rooms resources independence good shared resources distributed multiple that is application services ideas Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Xiaomi Shulou Technology Apple macOS