SpringCloud micro and other services compare

FIG 1 each service intuitive

Services difference

2 single architecture

The system architecture also known as monomer or monomers single application. It is a kind 把系统中所有的功能、模块耦合在一个应用of architectural approach

2.1 single architecture features

  • Packaged into a single unit (lead into a single package or war package jar)
  • Way will be a process to run
    Here Insert Picture Description

Advantages and disadvantages of monomer 2.2 architecture

2.2.1 advantage

  • Project manageable
  • Simple deployment

2.2.2 shortcomings

  • High cost of test
  • Scalability difference
  • Poor reliability
  • Iteration difficult
  • The degree of cross-linguistic difference
  • Teamwork difficult

3 MVC difference between RPC, SOA, micro Services Architecture,

3.1 MVC architecture

In fact, MVCarchitecture is a single architecture. Technical Struts2representatives: SpringMVC, Spring, , Mybatisand so on.

3.2 RPC architecture

RPC(Remote Procedure Call): Remote Procedure Call. He requested one kind of service from a remote computer through a network, without the need to understand the underlying network protocol technology.
On behalf of Thrifttechnology: , Hessianetc.

3.3 SOA architecture

SOA(Service oriented Architecture): Service-oriented architecture
ESB(Enterparise Servce Bus):企业服务总线, service agency. Mainly to provide a service to the interaction between services.
ESBIt includes features such as: load balancing, flow control, encryption, monitoring services, exception handling, monitoring, emergency and so on.
On behalf of Muletechnology: ,WSO2

3.4 micro Services Architecture

Micro service is a lightweight service management solutions. On behalf of SpringCloudtechnology: , dubboetc.

3.5 SpringCloud micro-service architecture and SOA architecture

3.5.1 SOA architecture

Because the degree of coupling traditional items is relatively high, so the gradual development of a service-oriented architecture of the common business logic extracted, forming a service can be invoked by other services, calls between services and service through RPCremote calls (that is, the bottom httpclienttechnology)
SOAarchitecture typically used xmlto achieve communication, xml 比较重accounting for broadband, relatively redundant, in the case of high concurrency, popular impact. Using the underlying webservicetechnology, ESB message terminus

3.5.2 Micro Services Architecture

  • SpringcloudIs micro-services architecture is SOAarchitecture evolved, there is no ESBtransmission station, using http + jsonlightweight transmission
  • Micro-architecture services more lightweight
  • Micro-service architecture, services more independence is strong, can have a separate database, more affected between separate caches, databases, message queues and other resources, support services and services
  • Micro-service architecture, service oriented more fine granularity, so more suitable for sensitive good development

3.5.3 springcloud micro Services Architecture

SpringCloudIt provides a complete set of micro-service solutions, unlike other frameworks only solve the problem of a micro service.
Can be divided into:

  • Service management (registry): Dubbo (Ali Baba), Dubbox (Dangdang in Dubbo continue to develop), Eureka (has a closed source), consul
  • Center distributed configuration: disconf (Baidu), Netfix the Archaius, 360 of QConf, SpringCloud, ctrip Apollo.
  • Distributed Task Scheduling Platform: xxl-job
  • Service Tracking: hyra (Jingdong), springcloud the sleuth, etc.

3.6 springcloud and contrast Dubbo

Here Insert Picture Description
DubboThan the Spring Cloudperformance advantage, since Spring Cloudthe Dubboprotocol level is not the same as natural to use, is the former HTTP, the latter is TCP(using a Netty NIOframework, serialization using a customized version of Ali Hessian2), resulting in two performance gap slightly larger frame

Published 334 original articles · won praise 186 · views 310 000 +

Guess you like

Origin blog.csdn.net/u012060033/article/details/103488961