Skip to content

feat: add concurrency limits to EphemeralWorkers sample#18

Merged
Theauxm merged 1 commit into
mainfrom
feat/concurrency-limits
Mar 13, 2026
Merged

feat: add concurrency limits to EphemeralWorkers sample#18
Theauxm merged 1 commit into
mainfrom
feat/concurrency-limits

Conversation

@Theauxm
Copy link
Copy Markdown
Member

@Theauxm Theauxm commented Mar 13, 2026

Summary

  • Added [TraxConcurrencyLimit] to remote trains: ReviewContent(15), SendViolationNotice(10), GenerateModerationReport(5)
  • LookupModerationResult left unlimited (lightweight in-process query)
  • API Program.cs uses builder overload with GlobalConcurrentRunLimit(25)

Test plan

  • ContentShield library builds with zero warnings
  • ContentShield.Api builds with zero warnings
  • Attribute values match realistic Lambda reserved concurrency scenarios

Depends on: Trax.Effect (attribute), Trax.Mediator (limiter service)
Related PRs: Trax.Docs (documentation)

Demonstrate [TraxConcurrencyLimit] attribute on remote trains:
ReviewContent(15), SendViolationNotice(10), GenerateModerationReport(5).
GlobalConcurrentRunLimit(25) set via builder in API Program.cs.
@Theauxm Theauxm merged commit 357b547 into main Mar 13, 2026
1 of 2 checks passed
@Theauxm Theauxm deleted the feat/concurrency-limits branch March 13, 2026 19:01
@traxsharp
Copy link
Copy Markdown

traxsharp Bot commented Mar 13, 2026

This PR is included in version 1.11.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant