官术网_书友最值得收藏!

  • Microservices with Azure
  • Namit Tanasseri Rahul Rai
  • 168字
  • 2021-07-02 22:18:24

Architecture of Microservices-based systems

Many of us have been curious about the representation of a Microservice by a hexagon. The reason for this is the inspiration behind the architectural pattern that drives Microservices – the hexagonal architecture. This pattern is also popularly known as ports and adapters in some parts of the globe. In a hexagonal architecture pattern, the code application logic is insulated with an isolation perimeter. This insulation helps a Microservice be unaware of the outside world. The insulation opens specific ports for establishing communication channels to and from the application code. Consuming applications can write adapters against these ports to communicate with the Microservice. The following diagram illustrates a hexagonal pattern for a Microservice:

Hexagonal architecture

Protocols in the case of a Microservice architecture are usually APIs. These APIs are exposed using popular protocols for ease of consumption. Hexagonal architecture lets the Microservice treat all of its consumers alike, whether it is a user interface, test suit, monitoring service, or an automation script.

主站蜘蛛池模板: 东海县| 铜梁县| 疏勒县| 景宁| 吉安市| 勃利县| 桓台县| 新泰市| 张家口市| 泰顺县| 大石桥市| 汶上县| 土默特左旗| 五台县| 黎城县| 文安县| 高密市| 通河县| 同仁县| 无棣县| 建平县| 渝北区| 孙吴县| 石狮市| 南部县| 肇州县| 丹凤县| 吴川市| 井陉县| 沁源县| 雷山县| 克东县| 武安市| 穆棱市| 威海市| 弥勒县| 曲阳县| 德庆县| 平乐县| 金湖县| 广昌县|