Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Getting Duplicate Ids in Azure Functions #15

Open
bdbvb opened this issue Mar 21, 2023 · 0 comments
Open

Getting Duplicate Ids in Azure Functions #15

bdbvb opened this issue Mar 21, 2023 · 0 comments

Comments

@bdbvb
Copy link

bdbvb commented Mar 21, 2023

I've got a .NET 6 Azure Function (runtime version 4, consumption plan) where I'm using SnowMaker to generate IDs. I've only got one generator per app domain (singleton dependency injection).

I get IDs as expected, until under heavy load (like requesting 10s or 100s at a time) Azure spins up new instances, in which case sometimes the IDs are unique, and sometimes they're not (IOW, it seems like a function instance sometimes gets the same batch as another instance).

Could I potentially be doing something wrong, or is there some way the Azure functions need to be set up?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant