Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added example for limiting workflow concurrency in .NET fan-in/out example #3986

Closed

Conversation

WhitWaldo
Copy link
Contributor

Thank you for helping make the Dapr documentation better!

Please follow this checklist before submitting:

  • Commits are signed with Developer Certificate of Origin (DCO - learn more)
  • Read the contribution guide
  • Commands include options for Linux, MacOS, and Windows within codetabs
  • New file and folder names are globally unique
  • Page references use shortcodes instead of markdown or URL links
  • Images use HTML style and have alternative text
  • Places where multiple code/command options are given have codetabs

In addition, please fill out the following to help reviewers understand this pull request:

Description

I love rich documentation. It's so satisfying to read something that details a new concept, shares examples and really sets me up to succeed. But I don't like it when said documentation introduces another idea and leaves me to my own devices to figure out how to do it.

Tonight I was reading about the different workflow patterns. In the fan-out/fan-in pattern, it explains how a series of parallel tasks can be completed at once, but then it leaves a note at the end: "While not shown in the example, it's possible to go further and limit the degree of concurrency using simple, language-specific constructs."

As it took me a minute to figure out a worthwhile .NET approach to doing this, I wanted to contribute it back so future me isn't left hanging. I leave it to others to figure out other language equivalents.

Issue reference

None - saw this in the docs and after determining a solution, wanted to contribute it back.

hhunter-ms and others added 27 commits January 11, 2024 17:34
Co-authored-by: Mark Fussell <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
* Added doc for kafka pubsub Avro schema registry support

Signed-off-by: Patrick Assuied <[email protected]>

* Update daprdocs/content/en/reference/components-reference/supported-pubsub/setup-apache-kafka.md

Co-authored-by: Hannah Hunter <[email protected]>
Signed-off-by: Patrick Assuied <[email protected]>

* Update daprdocs/content/en/reference/components-reference/supported-pubsub/setup-apache-kafka.md

Co-authored-by: Hannah Hunter <[email protected]>
Signed-off-by: Patrick Assuied <[email protected]>

* Update daprdocs/content/en/reference/components-reference/supported-pubsub/setup-apache-kafka.md

Co-authored-by: Hannah Hunter <[email protected]>
Signed-off-by: Patrick Assuied <[email protected]>

* Update daprdocs/content/en/reference/components-reference/supported-pubsub/setup-apache-kafka.md

Co-authored-by: Hannah Hunter <[email protected]>
Signed-off-by: Patrick Assuied <[email protected]>

* Update daprdocs/content/en/reference/components-reference/supported-pubsub/setup-apache-kafka.md

Co-authored-by: Hannah Hunter <[email protected]>
Signed-off-by: Patrick Assuied <[email protected]>

* Update daprdocs/content/en/reference/components-reference/supported-pubsub/setup-apache-kafka.md

Co-authored-by: Hannah Hunter <[email protected]>
Signed-off-by: Patrick Assuied <[email protected]>

* Update daprdocs/content/en/reference/components-reference/supported-pubsub/setup-apache-kafka.md

Co-authored-by: Hannah Hunter <[email protected]>
Signed-off-by: Patrick Assuied <[email protected]>

* Update daprdocs/content/en/reference/components-reference/supported-pubsub/setup-apache-kafka.md

Co-authored-by: Hannah Hunter <[email protected]>
Signed-off-by: Patrick Assuied <[email protected]>

* Update daprdocs/content/en/reference/components-reference/supported-pubsub/setup-apache-kafka.md

Co-authored-by: Hannah Hunter <[email protected]>
Signed-off-by: Patrick Assuied <[email protected]>

* Update daprdocs/content/en/reference/components-reference/supported-pubsub/setup-apache-kafka.md

Co-authored-by: Hannah Hunter <[email protected]>
Signed-off-by: Patrick Assuied <[email protected]>

* Update daprdocs/content/en/reference/components-reference/supported-pubsub/setup-apache-kafka.md

Co-authored-by: Hannah Hunter <[email protected]>
Signed-off-by: Patrick Assuied <[email protected]>

* Update daprdocs/content/en/reference/components-reference/supported-pubsub/setup-apache-kafka.md

Co-authored-by: Hannah Hunter <[email protected]>
Signed-off-by: Patrick Assuied <[email protected]>

* Update daprdocs/content/en/reference/components-reference/supported-pubsub/setup-apache-kafka.md

Co-authored-by: Hannah Hunter <[email protected]>
Signed-off-by: Patrick Assuied <[email protected]>

* Update setup-apache-kafka.md

Signed-off-by: Patrick Assuied <[email protected]>

* Update daprdocs/content/en/reference/components-reference/supported-pubsub/setup-apache-kafka.md

Co-authored-by: Mark Fussell <[email protected]>
Signed-off-by: Patrick Assuied <[email protected]>

---------

Signed-off-by: Patrick Assuied <[email protected]>
Co-authored-by: Hannah Hunter <[email protected]>
Co-authored-by: Mark Fussell <[email protected]>
Signed-off-by: Patrick Assuied <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Hannah Hunter <[email protected]>
Signed-off-by: Hannah Hunter <[email protected]>
Signed-off-by: Hannah Hunter <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Hannah Hunter <[email protected]>
Signed-off-by: Hannah Hunter <[email protected]>
Signed-off-by: Hannah Hunter <[email protected]>
Update limitation for js

Signed-off-by: kaibocai <[email protected]>
Signed-off-by: Hannah Hunter <[email protected]>
tlund101 and others added 21 commits April 9, 2024 14:35
Most of the other options show an example identical to the default value.  This was an exception and could prove confusing when reading the docs

Signed-off-by: Trevor Lund <[email protected]>
Updated holopin.yaml file to use the default holopin badge for the docs repo.

Signed-off-by: Dan Rios <[email protected]>
* adding Dapr Repository Index for contributing

Signed-off-by: Annu Singh <[email protected]>

* adding cli repo

Signed-off-by: Annu Singh <[email protected]>

---------

Signed-off-by: Annu Singh <[email protected]>
Co-authored-by: Marc Duiker <[email protected]>
Co-authored-by: Mark Fussell <[email protected]>
* update support docs for patch releases

Signed-off-by: Hannah Hunter <[email protected]>

* Update daprdocs/content/en/operations/support/support-release-policy.md

Co-authored-by: Mark Fussell <[email protected]>
Signed-off-by: Hannah Hunter <[email protected]>

* Update daprdocs/content/en/operations/support/support-release-policy.md

Co-authored-by: Mark Fussell <[email protected]>
Signed-off-by: Hannah Hunter <[email protected]>

---------

Signed-off-by: Hannah Hunter <[email protected]>
Signed-off-by: Hannah Hunter <[email protected]>
Co-authored-by: Mark Fussell <[email protected]>
* Add Diagrid conductor to integrations

Signed-off-by: Marc Duiker <[email protected]>

* Add diagram

Signed-off-by: Marc Duiker <[email protected]>

* Update daprdocs/content/en/developing-applications/integrations/Diagrid/diagrid-conductor.md

Signed-off-by: Mark Fussell <[email protected]>

* Update daprdocs/content/en/developing-applications/integrations/Diagrid/diagrid-conductor.md

Signed-off-by: Mark Fussell <[email protected]>

* Update daprdocs/content/en/developing-applications/integrations/Diagrid/diagrid-conductor.md

Signed-off-by: Mark Fussell <[email protected]>

* Update daprdocs/content/en/developing-applications/integrations/Diagrid/diagrid-conductor.md

Signed-off-by: Mark Fussell <[email protected]>

* Update daprdocs/content/en/developing-applications/integrations/Diagrid/diagrid-conductor.md

Signed-off-by: Mark Fussell <[email protected]>

* Update daprdocs/content/en/developing-applications/integrations/Diagrid/diagrid-conductor.md

Signed-off-by: Mark Fussell <[email protected]>

---------

Signed-off-by: Marc Duiker <[email protected]>
Signed-off-by: Mark Fussell <[email protected]>
Co-authored-by: Mark Fussell <[email protected]>
Signed-off-by: Marc Duiker <[email protected]>
Co-authored-by: Mark Fussell <[email protected]>
Update confusing examples for subscribePollInterval
Add section on graceful shutdown duration
…one with an annotation, not by setting a helm argument (#4124)

Clarify that disabling kubernetes built in secret store can only be done with an annotation, not by setting a helm argument

Signed-off-by: james-bartlett <[email protected]>
@hhunter-ms
Copy link
Collaborator

@WhitWaldo friendly bump

@WhitWaldo
Copy link
Contributor Author

@hhunter-ms Updated the docs to reflect the example given in the SO post to include support for retaining a returned value for each of the tasks

@hhunter-ms
Copy link
Collaborator

@WhitWaldo it looks like 1.13 was pulled into this PR, which is pointing into 1.12 - do you mind either reopening as a new PR, or somehow reverting the 1.13 merge?

@WhitWaldo WhitWaldo closed this May 7, 2024
@WhitWaldo WhitWaldo deleted the limit-workflow-concurrency-dotnet branch May 7, 2024 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.