Social platform recorded notes

 

Note: Social Analytics   

5
Zuul NetFlix as one of the components, it is the role (serving gateway)

1: There are correct about the establishment of the polymerization project description should be noted: 

Aggregation module itself as a Maven project, it must have its own pom
its way must be packaged pom
version: aggregation module version and the version of the module are aggregated in the same
aggregation module content is just a pom.xml file, it does not include src / main / java, src / text / java etc directory.

2: Client and micro-level services to communicate directly, there will be problems include:
client repeatedly requested different micro-service, increase the complexity of the client
use the same protocol some micro-services, easily accessed directly
with project iteration, you may need to re-division of micro-services, if the client directly and then rushed to the communication service structure will be difficult to implement.

Controller layer common to the three notes:
@RestControllr
@ReqiestMapper
@Autowired

                                       

Netfix Feign function as one of the components: service call

Netfix Eureka role: service discovery

Netfix Zuul Services Gateway

Springcloud dubbo wrong:
Services Gateway: dubbo using nginx, springcloud Netfix Zuul

the Spring container using annotations;
@Connfiguration
@Restontroller
@Bean
@ LoadBalanced
coordinate major Component description:
groupId: Maven projects under the current definition of items
artifactid: a module to define the actual project
packaging: the definition of a packaging item
--------------------- ----
   @ 4

Polymerization project should be selected packaging way: POM
Maven project management life cycle role as: clean-up project

Zuul's route filter means:
is called route request when

referring Zuul the post filters are:
called after the route and the error filter

Zuul the error filter means:
is called when an error occurred while processing the request

methods role ZuulFilter class shouldFilter are:
to determine whether to perform the filter project

development ssm project, web.xml content is generally not included in the configuration (configuration DispatcherServlet controller)

Dml keywords are: the Delete Update

Feign Notes application name is:
@FeignClient
enabled Feign client class is annotated:
@EnableFeignclients

 

 

 

Guess you like

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