You have two microservices that need to communicate with each other without holding up a thread on either end. One service will receive an ID and return a message once the job is complete. Which communication framework should be used? Choose one answer:

A.) Have a shared database that allows both applications to read and write to the tables to share the data instead of having to communicate

B.) Use asynchronous messaging to send and receive messages between each microservice

C.) Abandon the microservice architecture so no interaction is needed

D.) Create a third service to handle the interaction between the services

E.) Use a RESTful architecture for both, send the ID through a POST, and ping the service with a GET until a response is available

Answer:- A.) Have a shared database that allows both applications to read and write to the tables to share the data instead of having to communicate

In asynchronous communication microservices implement asynchronous messages or http polling to connect with other microservices, but the customer request is served right away. Whenever we produce a pod in Kubernetes, this mechanically allocates an internal IP to it. The IP will be picked up from CIDR range and will be assigned to the Pod. This IP will be available throughout the cluster and using this IP any pod can address our web-server.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *