07 November 2020

#Spring-Cloud

Spring-cloud
What is need for Cloud?
What is Spring Cloud Ribbon?
What is Spring Cloud Config?
What is Spring Cloud Consul?
What is the use of Spring Cloud stream?
What is Netflix Feign? What are its advantages?
What is Eureka in Spring Cloud?
What is the purpose of the Hystrix circuit breaker?
What is the use of the Spring cloud bus?
What is RAD model?
What is a service fuse? What is service degradation
What are the benefits of using cloud?
What are the features of Spring Cloud?
How does Spring Cloud Gateway Limit Request Payload Size?
Name the features of using Spring Boot?
What does one mean by Service Registration and Discovery? How is it implemented in Spring Cloud?
What does service registration and discovery mean? How is Spring Cloud implemented?
What is microservice?
Which design pattern are used in Microservices?
What is Spring Cloud?
What are the advantages of using Spring Cloud?
What does service registration and discovery mean? How is Spring Cloud implemented?
What is the meaning of load balancing?
What is Hystrix? How does it achieve fault tolerance?
What is Netflix Feign? What are its advantages?
What is Spring Cloud Bus? Do we need it?
What is microservice
What is a service fuse? What is service degradation
What is the difference between SpringBoot and SpringCloud?
What is the difference between spring cloud and d bbo?
What is eureka’s self-protection mechanism?
What is Ribbon?
What is feigin? What are its advantages?
What is Spring Cloud Bus?
What is Ribbon load balancing?
What can Ribbon load balancing do?
What is zuul routing gateway
What can a distributed configuration center do?
How do microservices communicate independently?
How does springcloud register services?
Comparison of REST and RPC
As a business registration center, how is Eureka better than Zookeeper?
Both Eureka and zookeeper can provide service registration and discovery functions, please tell us the difference between the two?
Spring Cloud Gateway?
Talk about the implementation principle of RPC
The advantages and disadvantages of microservices? Let me talk about the pits encountered in development projects?
The microservice technology stack you know?
The difference between Eureka and Zookeeper
The difference between Ribbon and Feign?
The role of springcloud circuit breaker?
Spring cloud
  • Cloud-native based development
  • Microservice-based architecture
  • Inter-service communication
  • Follows the Spring Boot model
  • It is cloud-agnostic
Config Server 

  • It is a centralized application that manages all the application related configuration properties.
Service Discovery
  • It is the automatic detection of devices and services over the network
  • The central server that maintains a global view of the address.
  • The clients that connect to the central server can update and retrieve the address. Discovery patterns: Client-side discovery and Server-side discovery.
Circuit Breakers - Hystrix Server
  • Netflix has created a library called Hystrix. It implements the circuit breakers pattern.
  • It calculate when to open and close the circuit and what to do in case of failure.
  • When all services fail at some point, it handles these failures gracefully.
  • States: OPEN, CLOSED, and HALF-OPEN State.
Routing and Messaging
  • Spring Cloud supports communication via messaging or HTTP request. 
  • Routing uses Netflix Ribbon and Open Feign while messaging uses Kafka or Rabbit MQ.

API Gateway

  • It allows us to route API request (external or internal) to connect services
  • Predicates and filters are specific to routes
  • Hystrix circuit Breaker integration
  • Spring Cloud Discovery Client integration
  • Request Rate Limiting
  • Path rewriting
Tracing
  • We can add Spring Cloud Sleuth library in our project to enable tracing.
  • It is responsible for recording timing, which is used for latency analysis. We can export this timing to Zipkin.
Zipkin - Distributed server
  • It provides a mechanism for sending, receiving, and visualization traces
  • It is a distributed tracing tool specially designed for analyzing latency problem inside the microservice architecture.
  • It exposes HTTP endpoint used for collecting input data.
  • If we required to add tracing in our project, we should add the spring-cloud-starter-zipkin dependency.
  • The sampling policy allows us how much input traffic is sent to Zipkin for analysis. To enable this feature, we have to add the spring-cloud-sleuth-stream dependency.
Sleuth
  • It introduces unique IDs to your logging which are consistent between microservice calls which makes it possible to find how a single request travels from one microservice to the next. 
  • Spring Cloud Sleuth adds two types of IDs to your logging, one called a trace ID and the other called a span ID.
CI Pipeline and Testing
Feign client
Consul
Zookeeper

NETFLIX OSS
  • Cloud config server - Central config Server
  • Netflix Eureka - Service Discovery server
  • Netflix Ribbon - Dynamic Routing and load balancer
  • Netflix Zuul - Edge server
  • Turbine
  • Hystrix - Circuit breaker
  • ELK - Centralized log analysis
Port no
  • 8888- Spring Cloud Config Server
  • 8761- Netflix Eureka Naming Server
  • 8765- Netflix Zuul API gateway Server
  • 9411- Zipkin distributed Tracing Server

No comments:

Post a Comment

Most views on this month