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

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.

主站蜘蛛池模板: 临邑县| 枣强县| 青神县| 富蕴县| 手游| 景东| 屯昌县| 开封市| 信丰县| 罗田县| 平和县| 双江| 乡宁县| 余江县| 高雄市| 开阳县| 无棣县| 邵东县| 大安市| 邵武市| 云梦县| 永川市| 临沭县| 天津市| 澳门| 永宁县| 万载县| 固安县| 门源| 莱芜市| 萝北县| 鄂尔多斯市| 静乐县| 略阳县| 安丘市| 陆河县| 老河口市| 新巴尔虎右旗| 玛曲县| 营口市| 东海县|