How to ensure only one Azure Function BlobTrigger runs at a time?

John T

I have a use case to implement multiple BlobTriggers in Azure Functions (using the Linux Consumption Plan). For example in Azure Storage I would have 5 different clients with a directory structure like:

client1/file.txt  
client2.file.txt  
client3/file.txt  
client4/file.txt  
client5/file.txt

It's possible for both client1/file.txt and client2/file.txt to be dropped off at the same time in Azure Storage. To prevent race conditions and exceeding the 1.5 GB memory limit, I would like the BlobTrigger for client1/file.txt to wait for the BlobTrigger for client2/file.txt to finish or vice versa (the order doesn't matter here, just that both of them eventually execute).

Do I have to set up a queue process separately? Can I use the preview setting WEBSITE_MAX_DYNAMIC_APPLICATION_SCALE_OUTto achieve this easily?

Edit: Would using durable functions be a better solution?

Hassan Raza

You should be able to do this by making sure the MAX SCALE OUT value is set to 1, this way it will only process 1 file at a time. You can also change your consumption\pricing model from consumption to app service plan one. This way you can use the tier you want, then you can have more memory available as well (depending on the tier you choose).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to ensure only one Play instance actually runs a method at one certain moment

From Dev

How does Akka ensure actors process only one message at a time

From Dev

How to ensure only one request at the same time in Java

From Dev

Thread runs only one time

From Dev

How to ensure javascript event runs second time?

From Dev

how to create only one object in python every time the code runs

From Dev

How do I ensure a Node.js function only runs once a stream has ended?

From Dev

Ensure only one job runs on rails SuckerPunch/Celluloid

From Dev

How do I ensure there is only one instance of a class at any one time in Objective-C?

From Dev

How to ensure DocumentBeforeSave code runs only on current document

From Dev

Woocommerce 'thankyou' hook only runs one function

From Dev

How to ensure object has only one thread

From Dev

function only works one time

From Dev

How can i activate .hover() function only on one element at time

From Dev

How make javascript function work only one time

From Dev

Locking and unlocking an SKAction so only one runs at a time

From Dev

while loop inside another while loop only runs one time

From Dev

Python tkinter: How can I ensure only ONE child window is created onclick and not a new window every time the button is clicked?

From Dev

Python tkinter: How can I ensure only ONE child window is created onclick and not a new window every time the button is clicked?

From Dev

Making a Queue for a function so it only runs once at a time in python

From Dev

Python: Need a Function that Runs Only at First Time Startup

From Java

How to ensure only one tab is coloured upon clicking?

From Dev

How can I ensure that only one if a kind of Jenkins job is run?

From Dev

How do I ensure only one instance of the object of the class is created?

From Dev

How can I ensure that only one if a kind of Jenkins job is run?

From Dev

Function only runs once

From Dev

How can ensure that a function only accepts a positive integer?

From Dev

How to ensure a code execution only after the await-function is done?

From Dev

How can ensure that a function only accepts a positive integer?

Related Related

  1. 1

    How to ensure only one Play instance actually runs a method at one certain moment

  2. 2

    How does Akka ensure actors process only one message at a time

  3. 3

    How to ensure only one request at the same time in Java

  4. 4

    Thread runs only one time

  5. 5

    How to ensure javascript event runs second time?

  6. 6

    how to create only one object in python every time the code runs

  7. 7

    How do I ensure a Node.js function only runs once a stream has ended?

  8. 8

    Ensure only one job runs on rails SuckerPunch/Celluloid

  9. 9

    How do I ensure there is only one instance of a class at any one time in Objective-C?

  10. 10

    How to ensure DocumentBeforeSave code runs only on current document

  11. 11

    Woocommerce 'thankyou' hook only runs one function

  12. 12

    How to ensure object has only one thread

  13. 13

    function only works one time

  14. 14

    How can i activate .hover() function only on one element at time

  15. 15

    How make javascript function work only one time

  16. 16

    Locking and unlocking an SKAction so only one runs at a time

  17. 17

    while loop inside another while loop only runs one time

  18. 18

    Python tkinter: How can I ensure only ONE child window is created onclick and not a new window every time the button is clicked?

  19. 19

    Python tkinter: How can I ensure only ONE child window is created onclick and not a new window every time the button is clicked?

  20. 20

    Making a Queue for a function so it only runs once at a time in python

  21. 21

    Python: Need a Function that Runs Only at First Time Startup

  22. 22

    How to ensure only one tab is coloured upon clicking?

  23. 23

    How can I ensure that only one if a kind of Jenkins job is run?

  24. 24

    How do I ensure only one instance of the object of the class is created?

  25. 25

    How can I ensure that only one if a kind of Jenkins job is run?

  26. 26

    Function only runs once

  27. 27

    How can ensure that a function only accepts a positive integer?

  28. 28

    How to ensure a code execution only after the await-function is done?

  29. 29

    How can ensure that a function only accepts a positive integer?

HotTag

Archive