Azure / Azure/azure-functions-java-worker

Should Java worker load cx code at worker start up?

オープン
#635 コメント 0 件 リアクション 0 件 担当者 1 名 @kamperiadis に割り当て済み GitHub で見る
area:java-functions Enhancement reviewed
主要言語
Java
スター
103
フォーク
74
平均マージ
4日 8時間
マージ済み PR(30日)
2

説明

Dotnet worker, python worker both have reference to cx code at worker start up, this brings a lot of flexibility into worker implementation and when adding new features to worker and also improve java worker performance (as load cx logics will only be executed once. Right now, this logics is executed for each function load request). Java worker should some how consider the same way.

Python worker has an [app setting (env var)](https://github.com/Azure/azure-functions-python-worker/blob/2bc45d1aaf32cbc208c6903974f1e53775f75e86/tests/endtoend/dependency_isolation_functions/report_dependencies/__init__.py#L44) point to cx script once app is deployed. We may consider the same pattern here.

Node worker is rely on `function_app_directory` which is already available WorkerInitRequest. This should be a better approach.

Updates: we can use [worker index](https://dev.azure.com/msazure/One/_git/AAPT-Antares-Docs?path=/TeamDocs/FunctionTeamDocs/Design/OOPWorkers/WorkerIndexing.md&version=GBmaster&line=1&_a=preview&anchor=specialization) feature provided by host.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。