-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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(appmesh): change Route's spec to a union-like class #11343
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Couple of notes.
You're also missing a BREAKING CHANGE in your PR description.
abstract readonly weightedTargets: WeightedTarget[]; | ||
|
||
/** | ||
* The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority | ||
*/ | ||
abstract readonly priority?: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we exposing these - I don't see them used in Route
...? I think we only need bind()
in this class, no?
We should strive to minimize the public API surface as much as we can.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, this field makes a bit more sense once we implement header based routing for HTTP.
Essentially it is used to disambiguate when a request matches multiple routes. I'll remove for this PR and we can add it back later!
Pull request has been modified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Some minor comments.
Pull request has been modified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fantastic, thanks @dfezzie !
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Implements the same pattern
GatewayRoutes
use for defining protocol specific specs.Adds GRPC and HTTP2 support to Routes which will resolve #9755
BREAKING CHANGE: changes Route's spec to a union-like class. RouteSpec is now defined using protocol variant static methods
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license