dubbo面试题

Dubbo完整的一次调用链路介绍;

Dubbo支持几种负载均衡策略?

  • 随机
  • 轮询
  • 最少活跃调用数
  • 一致性

Dubbo Provider服务提供者要控制执行并发请求上限,具体怎么作?

并发控制就是限制占用的线程池线程数。html

(1)服务端并发执行(或占用线程池线程数)不能超过10个。java

<dubbo:service interface="com.foo.BarService" executes="10" />

(2)限制到方法并发

<dubbo:service interface="com.foo.BarService">
	<dubbo:method name="sayHello" executes="10" />
</dubbo:service>

(3)占用链接的请求的数不能超过10个负载均衡

<dubbo:service interface="com.foo.BarService" actives="10" />

Dubbo启动的时候支持几种配置方式?

  1. XML 配置文件方式ide

  2. properties 配置文件方式.net

  3. annotation 配置方式线程

  4. API 配置方式code

参考连接

https://blog.csdn.net/chs007chs/article/details/62039615htm

https://www.cnblogs.com/aigeileshei/p/8526573.htmlblog

相关文章
相关标签/搜索