GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-cpp

Consider a different concurrency model for the framework

未关闭
#115 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
type: feature request
主要语言
C++
星标
53
派生
26
PR 合并指标
30 天内没有已合并 PR

描述

The framework currently uses "thread-per-connection" concurrency model. This was simple to implement, but may not be what we want as it places no practical limits on the number of threads and connections.

We may want to consider something like a fixed thread-pool. I am partial to the [Leader/Followers Pattern][1] (obviously), but a single thread for I/O and a thread-pool to handle each request could be made to work too.

Only once we have decided on the threading model does it make sense to talk about controlling the thread pool sizes as discussed in #25

[1]: https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.35.9475&rep=rep1&type=pdf

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。