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

Synchronous communication

A simple solution for synchronous communication between services is to use REST and transfer JSON data over HTTP. REST can also help in service discovery by using Hypermedia as the Engine of Application State (HATEOAS). HATEOAS is a component of REST which models relationships between resources by using links. Once the client queries the entry point of the service, it can use the links it receives to navigate to other Microservices.

If text-based transfers are not desired, protocol buffers (Google's data interchange format) may be used to transmit data. This protocol has been implemented in several languages to increase its adoption, for example, Ruby protobuf.

A protocol that can be used to transmit structured data across a network is Simple Object Access Protocol (SOAP). It can be used to make calls to different Microservices using various transport mechanisms such as JMS, TCP, or UDP. SOAP is language-neutral and highly extensible.

主站蜘蛛池模板: 宝丰县| 耒阳市| 泾源县| 宜昌市| 蕉岭县| 大名县| 孟连| 彰化市| 新建县| 陕西省| 荆州市| 祁门县| 正阳县| 张家界市| 习水县| 大余县| 东方市| 榕江县| 云龙县| 隆昌县| 胶州市| 石首市| 新昌县| 乐清市| 汶上县| 米泉市| 万荣县| 西宁市| 山阳县| 黎平县| 商丘市| 马公市| 玉树县| 蕲春县| 延庆县| 泽普县| 云南省| 宜宾县| 闽清县| 邢台县| 开原市|