Azure / Azure/azure-functions-dotnet-extensions

Multiple Azure functions ?

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
81
Forks
50
PR merge metrics
No merged PRs in 30d

Description

hello,

I have 4 azure functions in the same project, so they share the same host.
I wanted to use dependency injection to manage services but I realize that when you specify singleton then the instance is shared between all Azure functions.

Is there a level of isolation that would allow to have a singleton by Azure function without being forced to use the "scoped" level that is by invocation?

Thank you,

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue concerns dependency-injection lifetime isolation for multiple Azure Functions sharing one host. Start by reviewing the Azure Functions .NET dependency-injection behavior for singleton and scoped services. Done means determining whether per-function singleton isolation is supported and, if so, documenting or implementing the required approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
backend, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.