فتح مغلق

Gateway - MicroService app settings #6939


User avatar
0
DominaTang خلقت

In MicroService architect, Gateway plays the role 'Gateway for backend', each MicroService just need to know the gateway Url. And it's gateway forward the request from one Micro Service to corresponding target MicroService.

However, each MicroService has RemoteServices section, in appsettings.json as below. In this case, when MicroService A calls MicroService B's method, it's directly access MicroService B's Url or still forward the request to the gateway?

"RemoteServices": { "LxxxService": { "BaseUrl": "https://localhost:44502/", "UseCurrentAccessToken": "false" }, .. }


1 إجابة (إجابات)
  • User Avatar
    0
    Anjali_Musmade خلقت
    فريق الدعم Support Team Member

    Hello,

    please check https://docs.abp.io/en/commercial/latest/startup-templates/microservice/synchronous-interservice-communication if it helps you.

    Thanks

Made with ❤️ on ABP v8.2.0-preview Updated on مارس 25, 2024, 15:11