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

Add delegation proxy to spring web proxy #578

Closed
wants to merge 1 commit into from
Closed

Conversation

olegz
Copy link
Collaborator

@olegz olegz commented May 31, 2023

This PR allows for separation of responsibility between AWS and Spring where AWS side remains responsible to create HttpServletRequest from JSON representation of the API Gateway's input stream. Once created it can now delegate to Spring provided module for further interaction with the DispatcherServlet and the rest of the Spring stack

This has been long discussed with @msailes and greater AWS team

This PR allows for separation of responsibilty between AWS and Spring where AWS side remains responsible to create HttpServletRequest from JSON representation of the API Gateway's input stream. Once created it can now delegate to Spring provided module for further interaction with the DispatcherServlet and the rest of thet Spring stack

Introduce a boolean flag to disable delegation to Spring
@valerena
Copy link
Contributor

Hi @olegz, we haven't had much time to review recently, but I should be able to take a look soon. One thing that I'm seeing is that one of the test suites is failing (Build and test Spring, it looks like a dependency conflict). If you can take a look at that while I review the rest of the code. Thanks.

@olegz
Copy link
Collaborator Author

olegz commented Jun 22, 2023

@valerena I am now thinking. Should it really be against aws-serverless-java-container-springboot3? I believe so. Please let me know

@olegz
Copy link
Collaborator Author

olegz commented Jun 27, 2023

Closing it in favor of a new PR that i'll be submitting soon which will simply be an implementation of RequestStreamHandler specific to Spring code. This way no boolean flag will be necessary and user can choose which handler to use.

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.

2 participants