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

Spring Cloud Gateway single thread server issue #158

Open
Johnny850807 opened this issue Dec 18, 2020 · 0 comments
Open

Spring Cloud Gateway single thread server issue #158

Johnny850807 opened this issue Dec 18, 2020 · 0 comments
Labels
bug Something isn't working Spring Cloud Gateway

Comments

@Johnny850807
Copy link
Collaborator

Johnny850807 commented Dec 18, 2020

Describe the bug
Currently the gateway uses a simple server to launch the server, which actually uses only a single thread.

This is too simple to hold concurrent requests, as it will in turn cause a deadlock.

For example, if gateway redirects a request to itself, a circular dependency is constructed.
Because the gateway is waiting for the downstream service to fulfill the request, but the downstream service is gateway itself, where single threading can't take the second request.

@Johnny850807 Johnny850807 added bug Something isn't working Spring Cloud Gateway labels Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Spring Cloud Gateway
Projects
None yet
Development

No branches or pull requests

1 participant