GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-cpp

Consider a different concurrency model for the framework

オープン
#115 コメント 1 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。