A separate class should be created for integrating with each dependent microservice. Only one method from that class should be called from the main service class for integration.
This guide showcases the steps to integrate our microservices with other microservices like
Common Resources
For interacting with other microservices, we can create and implement the following ServiceRequestRepository class under repository package -