You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by "yaocunhao (via GitHub)" <gi...@apache.org> on 2024/07/11 13:24:25 UTC
[I] brpc AddService 添加的服务实例之间的关系 (brpc)
yaocunhao opened a new issue, #2690:
URL: https://github.com/apache/brpc/issues/2690
**Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
全局注册一个唯一的server后, 通过server.AddService 将服务器里面添加服务实例,有如下几个疑问请求解答
**Describe the solution you'd like (描述你期望的解决方法)**
**Describe alternatives you've considered (描述你想到的折衷方案)**
**Additional context/screenshots (更多上下文/截图)**
--
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: dev-unsubscribe@brpc.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
Re: [I] brpc AddService 添加的服务实例之间的关系,以及服务实例是否有限制 (brpc)
Posted by "yaocunhao (via GitHub)" <gi...@apache.org>.
yaocunhao commented on issue #2690:
URL: https://github.com/apache/brpc/issues/2690#issuecomment-2227626962
> > > 不同server定义不同端口,现在可以不同server可以指定不同线程池,能起到资源隔离作用。一个server下的多个service共享资源
> >
> >
> > 感谢解答。 如果是一个server下的多个service 共享资源的话, 对于一个server来说,十个功能写成十个service 和 写成一个service十个接口没什么区别了
>
> 接口和server层面上有限流功能,service层面上没有。
如果仅仅启动一个server, 要想限流,是不是说明, 将更多的接口归纳到service中,减少service 数量可能会更好控制
这个限流功能是可配置的么,辛苦指一下道路,我去看看, 再次感谢 ~~
--
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: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
Re: [I] brpc AddService 添加的服务实例之间的关系,以及服务实例是否有限制 (brpc)
Posted by "GOKINGD (via GitHub)" <gi...@apache.org>.
GOKINGD commented on issue #2690:
URL: https://github.com/apache/brpc/issues/2690#issuecomment-2225844316
个人的理解是,启动一个server可以添加多个service,一个service可以有多个method接口。但是不同service的请求proto是不同的,所以不同proto的service需要单独划分为一个实例,即单独拉一个进程,单独部署。如有不对,望大佬指正~
--
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: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
Re: [I] brpc AddService 添加的服务实例之间的关系,以及服务实例是否有限制 (brpc)
Posted by "yanglimingcn (via GitHub)" <gi...@apache.org>.
yanglimingcn commented on issue #2690:
URL: https://github.com/apache/brpc/issues/2690#issuecomment-2227624116
> > 不同server定义不同端口,现在可以不同server可以指定不同线程池,能起到资源隔离作用。一个server下的多个service共享资源
>
> 感谢解答。 如果是一个server下的多个service 共享资源的话, 对于一个server来说,十个功能写成十个service 和 写成一个service十个接口没什么区别了
接口和server层面上有限流功能,service层面上没有。
--
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: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
Re: [I] brpc AddService 添加的服务实例之间的关系,以及服务实例是否有限制 (brpc)
Posted by "yanglimingcn (via GitHub)" <gi...@apache.org>.
yanglimingcn commented on issue #2690:
URL: https://github.com/apache/brpc/issues/2690#issuecomment-2226832043
不同server定义不同端口,现在可以不同server可以指定不同线程池,能起到资源隔离作用。一个server下的多个service共享资源
--
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: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
Re: [I] brpc AddService 添加的服务实例之间的关系,以及服务实例是否有限制 (brpc)
Posted by "yaocunhao (via GitHub)" <gi...@apache.org>.
yaocunhao commented on issue #2690:
URL: https://github.com/apache/brpc/issues/2690#issuecomment-2227617102
> 不同server定义不同端口,现在可以不同server可以指定不同线程池,能起到资源隔离作用。一个server下的多个service共享资源
感谢解答。 如果是一个server下的多个service 共享资源的话, 对于一个server来说,十个功能写成十个service 和 写成一个service十个接口没什么区别了
--
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: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
Re: [I] brpc AddService 添加的服务实例之间的关系,以及服务实例是否有限制 (brpc)
Posted by "yaocunhao (via GitHub)" <gi...@apache.org>.
yaocunhao closed issue #2690: brpc AddService 添加的服务实例之间的关系,以及服务实例是否有限制
URL: https://github.com/apache/brpc/issues/2690
--
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: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
Re: [I] brpc AddService 添加的服务实例之间的关系,以及服务实例是否有限制 (brpc)
Posted by "yanglimingcn (via GitHub)" <gi...@apache.org>.
yanglimingcn commented on issue #2690:
URL: https://github.com/apache/brpc/issues/2690#issuecomment-2227640152
https://github.com/apache/brpc/blob/master/docs/cn/server.md
--
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: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org