Azure / Azure/azure-functions-java-worker

Should Java worker load cx code at worker start up?

Abierto
#635 0 comentarios 0 reacciones 1 asignado Asignado a @kamperiadis Ver en GitHub
area:java-functions Enhancement reviewed
Lenguaje dominante
Java
Estrellas
103
Forks
74
Merge medio
4 d 8 h
PR fusionados (30 d)
2

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.