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

how to use JsonToGrpc GatewayFilter #3398

Closed
Bert-long opened this issue May 17, 2024 · 5 comments
Closed

how to use JsonToGrpc GatewayFilter #3398

Bert-long opened this issue May 17, 2024 · 5 comments

Comments

@Bert-long
Copy link

Describe the bug
Please provide details of the problem, including the version of Spring Cloud that you
are using.
gateway 4.1.3
springcloud 2023.0.1
Sample
fllow the docs https://docs.spring.io/spring-cloud-gateway/reference/spring-cloud-gateway/gatewayfilter-factories/jsontogrpc-factory.html
I didn't succeed according to this tutorial, is there a detailed tutorial?

@nduyhai
Copy link

nduyhai commented May 28, 2024

Hi @Bert-long ,

I found an example, plz take a look link

@Bert-long
Copy link
Author

Hi @Bert-long ,

I found an example, plz take a look link

Thank you very much.

@RohanKumarMainali
Copy link

Hi @Bert-long and @nduyhai , are you guys able to use spring cloud gateway to expose REST api and predicate to grpc service?. I am not able to do that following this repo . My main problem is it is using Custom Filter which requires a lot of custom code. Is there a better way?

@RohanKumarMainali
Copy link

@nduyhai , I found your repo extremely helpful. It's exactly what I was looking for. It ran with some tweak in classpath for me. Thank you

@Bert-long
Copy link
Author

Hi @Bert-long and @nduyhai , are you guys able to use spring cloud gateway to expose REST api and predicate to grpc service?. I am not able to do that following this repo . My main problem is it is using Custom Filter which requires a lot of custom code. Is there a better way?

@RohanKumarMainali if you not must use SpringCloudGateway, you can try gRPC-gateway or apache shenyu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants