Should Java worker load cx code at worker start up?

Aperta
#635 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

area:java-functions Enhancement reviewed

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.

Lingua principale
Java
Stelle
103
Fork
74
Merge medio
1g 11h
PR unite (30g)
3

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/azure-functions-java-worker

Tutte le issue di Azure/azure-functions-java-worker

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.