Skip to content

Problems when handle API long pagination using durable function #1987

Answered by cgillum
sasoripathos asked this question in Q&A
Discussion options

You must be logged in to vote

There are a couple issues I can think of that would make this scenario unnecessarily slow:

  1. Each activity call involves two queue messages, one for calling the activity and passing the function input and one for sending the response with the output to the orchestrator. This is going to add latency for each page iteration. If you have a lot of pages, the impact will be significant.
  2. If your function inputs or outputs are large (>40 KB) then the messages I referred to will be even slower because they have to be compressed/uploaded to blob storage and downloaded/decompressed on the other side. This is the same issue mentioned by @olitomlinson.

An always-running WebJob will always be faster f…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sasoripathos
Comment options

Answer selected by cgillum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants