17 Haziran 2019 Pazartesi

SpringCloud

Giriş
Sürüm isimlerinin açıklaması şöyle.
The names Celsius, Darwin, Einstein etc are release names of the Spring Cloud Stream App Starters project. ... They are in alphabetical order, ie Einstein is the newer than Darwin (Similar to Android's release naming as Lollipop, Marshmallow, Nougat, Oreo etc).
SpringCloud Abstraction Sağlar
Açıklaması şöyle
... Spring cloud just gives you abstractions over some set of tools (eureka, zuul, feign, ribbon etc.) making it easy for you to integrate with spring applications.

However, you can also achieve microservice architecture without using spring cloud. You can take advantage of tools like Kubernetes, docker swarm, haproxy, Kong, nginx etc to achieve the same. The advantage of not using spring cloud has its own pros and cons and vice versa.
Spring Cloud ile Netflix kullanıyorsak 5 tane önemli anotasyon var. Bunlar şöyle
@EnableConfigServer

@EnableEurekaServer
@EnableEurekaClient

@EnableDiscoveryClient

@EnableCircuitBreaker

@EnableHystrix 
@EnableHystrixDashboard
@HyStrixCommand(fallbackmethod=”MethodName”)

@LoadBalanced

Bunlar aslında şu Netflix bileşenlerine denk geliyor.
Service Discovery (Eureka), Circuit Breaker (Hystrix), Intelligent Routing (Zuul) and Client-Side Load Balancing (Ribbon).
Zuul - API Gateway
Zuul yazısına taşıdım.

Hiç yorum yok:

Yorum Gönder