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中不要使用同步库 #36

Closed
Novery opened this issue Jul 21, 2020 · 1 comment
Closed

spring cloud gateway中不要使用同步库 #36

Novery opened this issue Jul 21, 2020 · 1 comment

Comments

@Novery
Copy link

Novery commented Jul 21, 2020

注意到网关使用的spring-cloud-gateway,这种异步网关的线程资源是有限的,默认是跟核数走,如果使用同步阻塞库,会有低吞吐的问题,AccessGatewayFilter里使用的Fegin做远程调用是同步方式,建议改成webClient并复用gateway默认初始化的netty版httpclient

@wxiaoqi
Copy link
Owner

wxiaoqi commented Jul 22, 2020

很棒的idea,欢迎PR起来!

@wxiaoqi wxiaoqi closed this as completed Oct 20, 2020
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

No branches or pull requests

2 participants