Social

           Special record:    

                  Service Discovery --Netflix Eureka 
                   service call --Netflix Feign 
                  fuse --Netflix Hystrix 
                   Services Gateway --Netflix Zuul 
                   distributed configuration --Spring Cloud Config 
                    message bus - Spring Cloud Bus  

                                 Record -------------  

                                      Spring container using annotations;
                                       @Connfiguration
                                       @Restontroller
                                       @Bean
                                       @ LoadBalanced  

                                            notes---------  

                                                      

Factory schema objects
? 0-1 * + arbitrary times at least once;
deployment == corresponding to deployment;
activity = control flow of FIG.;
Reflection means detects the modification itself to access

                                   

sort out:                         

                              EureKa description is correct:                                                                                    
                             EureKa consists of two components: Eureka Server and Client Eureka
                              EureKa Server to provide service registry service
                             EureKa Client is a client with a Java Server to simplify interaction with the end of EureKa
                            service registry EureKa Server is used to store all available service node information
                             EureKa itself by ensuring the availability of system flexibility and scalability:  

Zuul is open source Netflix micro-services gateway , and he could Eureka, Ribbon, Hystrix and other components used in conjunction. Zuul core component is a series of filters, these filters can perform the following functions:

# Identity authentication and security: identify each resource validation requirements, and reject those that do not match the request

# Review and Monitoring:

# Dynamic routing: Dynamic route the request to a different back-end cluster

# Stress Test: gradually increase traffic to the cluster to understand the performance

Corresponding to the capacity request for each type of load distribution, and discards the limit value is exceeded: the load distribution #

# Static response processing: edge position to respond, to avoid forwarded to the cluster.

# Multi-regional flexibility: Cross-domain routing request AWS Region designed to achieve ELB (ElasticLoad Balancing) use diversification

Spring Cloud of Zuul have been integrated and enhanced.

After using Zuul, architecture diagram the evolution of the form 

  

Why Micro Services Gateway

Different micro-services in general have different network addresses, and external clients may need to call multiple service interfaces to complete a business needs. For example, a movie ticket collection APP, micro film classification may call back services, users micro-service, micro-payment services. If the client and micro service to communicate directly, there will be questions about:

# Multiple client requests for different micro-services, increase the complexity of the client

# Cross-domain request processing at a certain scene is relatively complex

# Authentication complex, each service requires a separate certification

# Is difficult to reconstruct, with the iteration of the project may need to be re-divided micro service, if the client directly and micro-service communication, then the reconstruction will be difficult to implement

# Some services may use a micro other protocols, it will be difficult to directly access the above problems can be solved by means of micro-services gateway. Micro service gateway is interposed an intermediate layer between the client and the server, all requests will go through the external micro serving gateway.

                                           

 

Guess you like

Origin www.cnblogs.com/hanqinshuai888/p/11313347.html