Article Directory
FIG 1 each service intuitive
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
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, MVC
architecture is a single architecture. Technical Struts2
representatives: SpringMVC
, Spring
, , Mybatis
and 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 Thrift
technology: , Hessian
etc.
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.
ESB
It includes features such as: load balancing, flow control, encryption, monitoring services, exception handling, monitoring, emergency and so on.
On behalf of Mule
technology: ,WSO2
3.4 micro Services Architecture
Micro service is a lightweight service management solutions. On behalf of SpringCloud
technology: , dubbo
etc.
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 RPC
remote calls (that is, the bottom httpclient
technology)
SOA
architecture typically used xml
to achieve communication, xml 比较重
accounting for broadband, relatively redundant, in the case of high concurrency, popular impact. Using the underlying webservice
technology, ESB message terminus
3.5.2 Micro Services Architecture
Springcloud
Is micro-services architecture isSOA
architecture evolved, there is noESB
transmission station, usinghttp + json
lightweight 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
SpringCloud
It 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
Dubbo
Than the Spring Cloud
performance advantage, since Spring Cloud
the Dubbo
protocol level is not the same as natural to use, is the former HTTP
, the latter is TCP
(using a Netty NIO
framework, serialization using a customized version of Ali Hessian2
), resulting in two performance gap slightly larger frame