azure-functions-java-worker icon indicating copy to clipboard operation
azure-functions-java-worker copied to clipboard

Should Java worker load cx code at worker start up?

Open kaibocai opened this issue 3 years ago • 0 comments

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) 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 feature provided by host.

kaibocai avatar Aug 25 '22 18:08 kaibocai