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

feat: introducing WorkerBuilderExt #428

Open
wants to merge 2 commits into
base: chore/v0.6.0
Choose a base branch
from

Conversation

geofmureithi
Copy link
Owner

This PR introduces the WorkerBuilderExt trait, extending WorkerBuilder to support a wide range of tower::ServiceBuilder middleware functions among other common to apalis. These include optional layers, concurrency limits, rate limiting, error handling, and more. This allows for more flexible middleware composition within the worker builder, improving service customization and request handling capabilities.

Key changes:

  • Added WorkerBuilderExt trait with middleware methods.
  • Implemented methods like option_layer, concurrency_limit, retry, map_err, and more.
  • Ensured compatibility with ServiceBuilder layering mechanisms.

This change enhances middleware composability for workers!

@geofmureithi geofmureithi mentioned this pull request Nov 14, 2024
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