API Gateway for gRpc services - spring-boot

I am using grpc http protocol but i want to pass all grpc calls through a gateway to centerlize the calls. I am using Zuul proxy gateway in spring boot application. How can I implement this ?

Last I checked zuul doesn't support http/2 which gRPC needs.

Related

Is there any api gateway framework for websocket

Usually we would have a api gateway for rest service, now I have a webscoket micro service, is there any way to use this api gateway for websocket? Thanks BTW, I am using spring boot

How to design mobile gateway when zuul proxy is already present?

Currently I am working on spring microservices. It has zuul proxy and eureka server registry.
All the web API calls are being handled by zuul proxy.
Now I want to design a light weight mobile app, where the API call request body dont match. So, Decided to have one more gateway for mobile. What is the best approach to design this?
From mobile gateway, is it worth calling zuul proxy with modified request body which then calls the microservices?
Or the mobile gateway calls the microservices through RestAPIs ?
where mobile gateway and zuul proxy service will be running independently

Can I have GraphQL and GRpc communication on the same tomcat server

I have a use case where a microservice communicates with front-end as well as other microservices. Currently it is using REST for all its communication. Can I expose GraphQL for frontend API's and use GRpc for internal communications in the same microservice on the same server . Can I have Grpc and Graphql implementations on the same server . I am using Spring with java 11 . Are there any examples for this .
Yes you can, I've used this setup for many services. But you will need to bind the gRPC server to a different port than the rest api. Check the documentation at https://grpc.io/docs/languages/java/basics/#starting-the-server. You could then expose only the rest api port to the external users and let the services communicate internally on the "trusted" gRPC channel.

AWS API Gateway websocket with spring boot backend

I'm building an application using spring boot. I'm planning to add a chat feature to it via websocket. Considering that I'm hosting it on AWS, how can I integrate the websocket properly via api gateway websocket? Do I do my spring controller mapping for websocket via api gateway websocket endpoint?
AWS API Gateway provides you with an option of HTTP integration, so you can keep your application in an ECS container and expose an endpoint that can be ingested by the API gateway side.

Use KONG as API Gateway to GraphQL/REST services

I'm trying to understand if it's possible to use KONG as API Gateway to microservices implementing REST and/or GraphQL interfaces
As API Gateway will expose a GraphQL API and will request to our microservices currently implemented in REST/GraphQL and grpc coming soon.
It can route the Graphql as any other HTTP request but it doesn't parse graphql to route each bit to a a specific service
Kong can front any RESTful API and through a transformation plugin you should be able to deal with GraphQL API as well.

Resources