fengcunhan commented on a change in pull request #2273:
URL: https://github.com/apache/incubator-shenyu/pull/2273#discussion_r738057497



##########
File path: 
shenyu-plugin/shenyu-plugin-dubbo/shenyu-plugin-apache-dubbo/src/main/java/org/apache/shenyu/plugin/apache/dubbo/cache/ApplicationConfigCache.java
##########
@@ -151,11 +153,18 @@ private boolean needUpdateRegistryConfig(final 
DubboRegisterConfig dubboRegister
         ReferenceConfig<GenericService> reference = new ReferenceConfig<>();
         reference.setGeneric("true");
         reference.setAsync(true);
+        reference.setSent(false);
         reference.setApplication(applicationConfig);
         reference.setRegistry(registryConfig);
         reference.setInterface(metaData.getServiceName());
         reference.setProtocol("dubbo");
+        reference.setCheck(false);
         reference.setLoadbalance("gray");
+
+        Map<String, String> parameters = new HashMap<>(2);
+        parameters.put("dispatcher", "direct");
+        reference.setParameters(parameters);
+

Review comment:
       The default value is all, which means every request and response will be 
processed in  thread pool.But the gateway server just need to transparent 
forwarding the request, do not need to create thread. In the case of high 
concurrency, thread context switching will cost more CPU.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to