Skip to content
Discussion options

You must be logged in to vote

You would essentially just put your someProcessing as an Activity Function. These activity functions could then be executed in parallel across the various VMs your function application is scaled out to. In addition, the need to repeat this processing work if your function crashes becomes more minimal because the results of each step will be stored persistently.

The code would look almost exactly the same, but you would replace Task.Factory.StartNew(() => someProcessing) with context.CallActivityAsync(nameof(SomeProcessingActivity), path).

This is a very common pattern that we call fan-out/fan-in.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@eddynaka
Comment options

@ConnorMcMahon
Comment options

@eddynaka
Comment options

@ConnorMcMahon
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
2 participants