You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2022/12/03 08:08:17 UTC

[GitHub] [incubator-brpc] jiangdongzi opened a new issue, #2032: ExecutionQueue是严格有序的么, A B依次提交, 是否可以保证B任务必然在A任务完成后开始执行

jiangdongzi opened a new issue, #2032:
URL: https://github.com/apache/incubator-brpc/issues/2032

   还是A B可能会并发执行


-- 
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


[GitHub] [incubator-brpc] lorinlee closed issue #2032: ExecutionQueue是严格有序的么, A B依次提交, 是否可以保证B任务必然在A任务完成后开始执行

Posted by GitBox <gi...@apache.org>.
lorinlee closed issue #2032:  ExecutionQueue是严格有序的么, A B依次提交, 是否可以保证B任务必然在A任务完成后开始执行
URL: https://github.com/apache/incubator-brpc/issues/2032


-- 
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


[GitHub] [incubator-brpc] jiangdongzi commented on issue #2032: ExecutionQueue是严格有序的么, A B依次提交, 是否可以保证B任务必然在A任务完成后开始执行

Posted by GitBox <gi...@apache.org>.
jiangdongzi commented on issue #2032:
URL: https://github.com/apache/incubator-brpc/issues/2032#issuecomment-1336299056

   > 严格有序
   
   我们现在有一种需求,  同一userId的请求需要串行执行, 我们又想得到尽可能高的并发, 所以目前的想法是创建大量的ExecutionQueue, 比如1000, 同一userId的请求就哈希到对应的 ExecutionQueue,  这样是合理可行的吧


-- 
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


[GitHub] [incubator-brpc] yanglimingcn commented on issue #2032: ExecutionQueue是严格有序的么, A B依次提交, 是否可以保证B任务必然在A任务完成后开始执行

Posted by GitBox <gi...@apache.org>.
yanglimingcn commented on issue #2032:
URL: https://github.com/apache/incubator-brpc/issues/2032#issuecomment-1336302105

   我觉得合理,但是你可以根据userid做个hash,这样execution_queue的数量就是可调整的了,不用和userid一一对应。


-- 
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


[GitHub] [incubator-brpc] yanglimingcn commented on issue #2032: ExecutionQueue是严格有序的么, A B依次提交, 是否可以保证B任务必然在A任务完成后开始执行

Posted by GitBox <gi...@apache.org>.
yanglimingcn commented on issue #2032:
URL: https://github.com/apache/incubator-brpc/issues/2032#issuecomment-1336280419

   严格有序


-- 
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


[GitHub] [incubator-brpc] jiangdongzi commented on issue #2032: ExecutionQueue是严格有序的么, A B依次提交, 是否可以保证B任务必然在A任务完成后开始执行

Posted by GitBox <gi...@apache.org>.
jiangdongzi commented on issue #2032:
URL: https://github.com/apache/incubator-brpc/issues/2032#issuecomment-1336312066

   > 我觉得合理,但是你可以根据userid做个hash,这样execution_queue的数量就是可调整的了,不用和userid一一对应。
   
   thx


-- 
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