Do i need to discover gateway service in discovery server? - spring

Do i need to discover Spring cloud gateway in Spring cloud service discovery eureka?
Should i request directly to api gateway and then api gateway will redirect to eureka and then to the next servic.
Or
I should request to the eureka service discovery first and service discovery will redirect me to the api gateway and then api gateway will redirect to the next service.

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

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.

Spring Boot Cloud Gateway Routing

I want to redirect a gateway url from http://gateway-service-url/other/http://dynamic-url
to http://dynamic-url

Consuming micro service from mobile client or browser

I was learning micro service concepts in spring cloud and its service discovery mechanism. What I understand is all service providers register themselves in service discovery. Consumers get endpoint details for required service from discovery server and then connect to the endpoint. It's all works fine when consumer is a component built on spring cloud.
When we need to consume a service from Mobile client like react native, what should be the approach? Are we supposed to use a static endpoint which receives all requests from mobile and invoke actual endpoint using inputs from service discovery server?

Spring Cloud Eureka Netflix zuul filters

I have three spring boot micro services which uses spring Eureka server and zuul as gateway. I have auth micro service which is zuul gateway which validates user. I have two other services which is running in different ports. I am able to protect the two services with the help of jwt, if i call via zuul gateway but since i know two micro services port and url i can able to call and get the response directly without via gateway url . So i how to protect the the two micro services. Please help me to share the security context between two micro services.
I think you are looking for security settings in each other the microservices that are not zuul or eureka.
With help of the WebSecurityConfigurerAdapter you could override the CORS settings and only accept requests from a certain service, that way zuul can talk to the services, and maybe even each service to each other. But postman and other clients couldn't do that.

Resources