Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/dynamic bind: 增加DynamicBind工作池模式,类似于Bind工作池模式,每个连接绑定一个worker, 但不像Bind模式那样会闲置很多worker #339

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jursonmo
Copy link

@jursonmo jursonmo commented Oct 3, 2024

具体实现: DynamicBind 模式 也是一个连接对应一个worker, 给新连接分配worker时, 优先从已初始化好的工作池里取,如果工作池里的worker已经用完了,没有空闲的worker,就动态创建一个worker绑定到每个连接。这个临时创建的worker, 会在连接断开后销毁。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant