I am working on .net core 2.2 Microservices architecture,
I have 2 different Microservices, Service1
, Business_Service
Now, for some API Call to Business_Service, I want to call Sevice1,
I want to communicate between these Microservices,
I have two alternatives,
1. Expose Web API in Service1 & Make HTTP API hit from Business_Service for every request.
2. Use RabbitMQ / ZeroMQ to communicate between these layers.
I have implemented 1st alternative & it is working fine.
But I think it will be having the overhead of calling the entire HTTP protocol stack.
can you suggest what will be suitable for this case? Or any alternative for this situation? Thanks in Advance!