Skip to content

Conversation

@nmoutschen
Copy link
Contributor

@nmoutschen nmoutschen commented Jan 14, 2022

Issue #, if available: #374

Description of changes:

Replaces all custom traits with tower::Service<LambdaEvent>:

  • Switch lambda_runtime::Runtime
  • Switch lambda_extension::Extension
  • Switch lambda_http::Handler
  • Add run helper tower::Service<Request>
  • Add integration test for tower::Service<Request>
  • Update lambda_integration_tests
  • Update documentation

By submitting this pull request

  • I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • I confirm that I've made a best effort attempt to update all relevant documentation.

Closes #374
Closes #96

Copy link
Contributor

@calavera calavera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like how this turned out, good job!

Copy link
Contributor

@coltonweaver coltonweaver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with @calavera. This is a very clean change and easy to follow. Great work.

@nmoutschen
Copy link
Contributor Author

Thanks for the check, folks! I'll go ahead and merge this.

@nmoutschen nmoutschen merged commit f33fa05 into master Jan 21, 2022
@nmoutschen nmoutschen deleted the tower-service branch January 21, 2022 08:02
@nmoutschen nmoutschen added the 0.5 label Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace lambda_runtime::Handler with tower::Service? Consider Alternate Handler Types

3 participants