API Gateway with RxProxyHttpClient or Spring Cloud Gateway. #5311
Replies: 2 comments 3 replies
-
So, I am create a API Gateway using Micronaut. I am using micronaut-http-client and micronaut-http-server-netty for that. Then I am using the client ** @client("${gateway-conf.hybris-url}", httpVersion = HttpVersion.HTTP_1_1)** for inject RxProxyHttpClient.
When the call is made using simple HTTP, it works well, if it is call using HTTPS I get error 421. My micronaur code for HTTPS proxy:
Sample using Spring Cloud Gateway (using spring-cloud-starter-gateway, that I just need to configure the filters and redirects):
|
Beta Was this translation helpful? Give feedback.
-
What I need to know is how that proxy works? Does it really redirect the message or makes a new call with the same header and body? With it makes a new call, then I cannot use as a proxy, if it really redirect the message, why the SSL is broken? Also, Am I using that "proxy" right? If it not, there are somewhere I can get a better sample and better description on how does that works? |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, I still having some issues with Micronaut RxProxyHttpClient. The point now is that this client just not redirect the API request, but change something into it (the request). So when I am doing a HTTPS request the third party API return the HTTP ERROR 421 (Misdirected Request).
For comparison, when using Spring Cloud Gateway, the same request works as wished.
So, I really need someone helps to keep forward with Micronaut, I doin't wanna to switch the application to Spring.
Then I need to know if it is possible do proxy a API request without any changes on the request. Or if it is possible to integrate Spring Cloud Gateway with Micronaut (so I don't need to switch my hole application to Spring).
Please, anyone could help?
Beta Was this translation helpful? Give feedback.
All reactions