The EJB. 1 , Dubbo , SpringCloud contrast ( the SOA, services micro )
EJB |
Dubbo |
SpringCloud |
|
Developer |
Standard by the oracle development |
Ali |
Spring Community |
The latest version and time |
3.1 , 2009 Nian |
2.5.3 , 2012 Nian 10 Yue 23 Hao |
Finchley.SR1 , 201 8 Nian 8 Yue 1 Hao |
Maintenance status |
Inactivity, 3.2 just draft |
No longer continue to maintain |
active |
Internet Applications |
Yet found |
Ali, Jingdong, Dangdang and other |
China Unicom Huawei |
Based on agreement |
Rmi |
Alternatively, the default dobbo |
http |
Available languages |
Java |
Java |
All languages |
Distributed things |
Yes |
no |
no |
Stateless deployment |
no |
Yes |
Yes |
Server Manager |
Service discovery, load balancing |
Service discovery, service routing, load balancing services, a service list, service packets, dependency management service, the service weight, service authorization, service direct, implicit context parameter passing, packet aggregation, the cached results |
In addition to dubbo some outside: Service gateway, circuit breakers, service tracking, message bus, batch jobs |
Distributed Configuration |
no |
Third party |
Have |
Based web container |
Jboss |
Tomcat embedded |
Tomcat embedded |
unit test |
stand by |
stand by |
stand by |
:( performance comparison referenced online Photo)
2 Release Notes
SRx = Service Release x: Service Release, the official version
Finchley.SR1 ( 2.0.1 ) in 2018 Nian 8 Yue 1 release, some manufacturers have gone from 1.x upgrades over, 1.x and 2.x components comparison below:
Wherein, as compared to version 2.0.0, version 2.0.1 component version is as follows:
SpringCloud 2.0.1 compared to 1.x main configuration differences are as follows:
(1)SpringBoot从1.x(最新发布版1.5.17 GA,发布日2018.10.16)升级为2.x(最新发布版为2.0.6GA,发布日2018.10.16),SpringCloud 2.x必须基于SpringBoot2.x,SpringCloud1.x必须基于SpringBoot1.x
(2)Eureka服务器依赖org.springframework.cloud需要变更
<artifactId>spring-cloud-starter-eureka-server</artifactId>变为:
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
(3)Eureka客户端依赖org.springframework.cloud需要变更
<artifactId>spring-cloud-starter-eureka</artifactId>变为:
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
(4)注册中心IP地址配置
${spring.cloud.client.ipAddress}变为:
${spring.cloud.client.ip-address}
(5)安全加密Spring Security的用户密码配置在security前面加spring
spring:
security:
user:
name:
password:
(6)安全加密Spring Security默认开启CSRF防御(可能导致两个注册中心无法相互注册),使用:
http.csrf().ignoringAntMatchers("/eureka/**");
( 7 ) security encryption Spring Security module configuration center can not lead to the encryption and decryption
Because authentication has changed, you can change back to basic auth authentication
( . 8 ) Maven modify run.profiles is spring-boot.run.profiles
spring-boot:run -Drun.profiles= …改为:
spring-boot:run -Dspring-boot.run.profiles=
( 9 ) the Spring Cloud Gateway instead of the Spring Cloud Zuul , mainly due to Zuul 2.0 did not open (later Netfilx already open ).
3 Source
SpringCloud Source Location:
https://github.com/spring-cloud