service discovery with eureka and spring cloud

18
Service Discovery with Eureka and Spring Cloud Twitter: https://twitter.com/_marceloserpa Github: https://github.com/marceloserpa

Upload: marcelo-serpa

Post on 13-Jan-2017

182 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Service discovery with Eureka and Spring Cloud

Service Discovery with Eureka and Spring Cloud

Twitter: https://twitter.com/_marceloserpaGithub: https://github.com/marceloserpa

Page 2: Service discovery with Eureka and Spring Cloud

Agenda● Traditional vs Modern application● Communication between services● Service discovery● Service registry● Eureka and Spring Cloud● Many samples

Page 3: Service discovery with Eureka and Spring Cloud

Traditional applicationTo perform communication between services we need know the location of the service(port, host). In traditional applications it's a simple task because services run in a fixed and known location.

Page 4: Service discovery with Eureka and Spring Cloud

Modern applicationIn modern applications the services are running in a dynamic enviroment. A service can have N instances running in N different machines. In this case, to know host and port of each service is very painful.

Page 5: Service discovery with Eureka and Spring Cloud

The problem

Page 6: Service discovery with Eureka and Spring Cloud

Service discovery

Page 7: Service discovery with Eureka and Spring Cloud

Service registry

Page 8: Service discovery with Eureka and Spring Cloud

Eureka...“Eureka is a REST (Representational State Transfer) based service that is primarily used in the AWS cloud for locating services for the purpose of load balancing and failover of middle-tier servers.”

Page 9: Service discovery with Eureka and Spring Cloud

Eureka server with Spring Cloud configuration

Page 10: Service discovery with Eureka and Spring Cloud

Eureka server dashboard

Page 11: Service discovery with Eureka and Spring Cloud

Eureka client configuration

Page 12: Service discovery with Eureka and Spring Cloud

When you run the client application...

Page 13: Service discovery with Eureka and Spring Cloud

Show all instances registered

Page 14: Service discovery with Eureka and Spring Cloud

Consuming a service registered on Eureka

Page 15: Service discovery with Eureka and Spring Cloud

Load balancing request

Page 16: Service discovery with Eureka and Spring Cloud

Conclusion...

Page 18: Service discovery with Eureka and Spring Cloud

Twitter: https://twitter.com/_marceloserpaGithub Samples: https://github.com/marceloserpa/marcelo_serpa_sandbox/tree/master/spring-cloud-eureka-poc