Microservice, service registry, API gateway and data sharing

℡╲_俬逩灬. 提交于 2019-11-29 22:31:20

a/

No, Service Registries like Zookeeper are in-memory guaranteeing high throughput and low latency.

b/

In Service Registries like Zookeeper you can make filesystem path like registering of services. For example /App1/Service1 and /App1/Service2

c/

Not really clear what is the problem is.

d/

The pattern recommended by somebody is the HATEOAS pattern which is recommended for API response.

e/

AMQP is only required when communication required in between Services. Should never directly call the API of another service directly from one service.

EDIT

c/

In that case you need to implement fallback logic. For example if a service is not available, times out or any other failure some actions need to be taken. Tools like Netflix's Hystrix helps to achieve this.

e/

The communication pattern must be symmetric not asymmetric. Just like below,

This pattern will enable loose coupling between microservices thus enabling flexibility.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!