zhengyangyong commented on a change in pull request #47: General development dir translation and include img URL: https://github.com/apache/incubator-servicecomb-docs/pull/47#discussion_r215526448
########## File path: java-chassis-reference/en_US/general-development/cross-app-invocation.md ########## @@ -1,30 +1,30 @@ -### 概念阐述 +### Concept Description -应用是微服务实例隔离层次中的一层,一个应用包含多个微服务。默认情况下,只允许同应用的微服务实例相互调用。 +An application is a layer in the microservice instance isolation hierarchy, and an application contains multiple microservices. By default, only microservice instances of the same application are allowed to call each other. -### 场景描述 +### Scene Description -当用户需要不同应用间的微服务相互调用时,就需要开启跨应用调用功能。 +When a user needs micro-services between different applications to call each other, it is necessary to enable the cross-application calling function. -### 配置说明 +### Configuration instructions -若要开启跨应用调用,首先需在provider端的microservice.yaml文件开启跨应用调用配置。配置项如下: +To enable cross-application calls, you first need to enable cross-application call configuration in the microservice.yaml file on the provider side. The configuration items are as follows: ```yaml service_description: # other configuration omitted properties: - allowCrossApp: true # enable cross app invocation + allowCrossApp: true # enable cross-app invocation ``` -consumer端指定微服务名称调用provider的时候,需要加上provider所属的应用ID,格式变为`[appID]:[microserviceName]`。 +When the consumer client specifies the microservice name to call the provider, it needs to add the application ID to which the provider belongs, and the format becomes `[appID]:[microserviceName]`. -### 示例代码 +### Sample Code -示例假设provider所属应用为helloApp,微服务名称为helloProvider;consumer所属应用为helloApp2,微服务名称为helloConsumer。 +The example assumes that the application to which the provider belongs is helloApp, the name of the microservice is helloProvider, the application to which the consumer belongs is helloApp2, and the name of the microservice is helloConsumer. Review comment: The example assumes that the application to which the provider belongs is helloApp, the name of the microservice is helloProvider, the application to which the consumer belongs is helloApp2, and the name of the microservice is helloConsumer. -> The example assumes that the provider microservice appid is helloApp, and the name is helloProvider, the consumer appid is helloApp2, and the name is helloConsumer. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
