Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Build a micro-service framework and test environment-8-SpringCloud

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

1 comparison of EJB, Dubbo and SpringCloud (SOA, microservice)

EJB

Dubbo

SpringCloud

Developer

The standard is developed by oracle

Ali

Spring community

Latest version and time

3.1, 2009

2.5.3, October 23, 2012

Finchley.SR1, August 1, 2018

Maintenance state

Inactive, 3.2 is just a draft

No more maintenance

Active

Internet application case

Not found yet

Ali, JD.com, Dangdang, etc.

China Unicom

Huawei

Based on protocol

Rmi

Optional, default dobbo

Http

Available languages

Java

Java

All languages

Distributed things

Yes

No

No

Stateless deployment

No

Yes

Yes

Server governance

Service discovery, load balancing

Service discovery, service routing, service load balancing, service list, service grouping, service dependency management, service weight, service authorization, service direct connection, context implicit parameter passing, grouping aggregation, result caching

Except for what dubbo has: service gateway, circuit breaker, service tracking, message bus, batch task

Distributed configuration

None

The third party

Yes

Based on the web container

Jboss

Tomcat embedded

Tomcat embedded

Unit testing

Support

Support

Support

Performance comparison: (citing a picture on the Internet)

2 release not

SRx=Service Release x: service release, official version

Finchley.SR1 (2.0.1) was released on August 1, 2018, and some vendors have upgraded from 1.x. The components of 1.x and 2.x are compared as follows:

Among them, compared with version 2.0.0, version 2.0.1 is as follows:

The main differences between SpringCloud 2.0.1 and 1.x configurations are as follows:

(1) SpringBoot is upgraded from 1.x (the latest release 1.5.17 GA, release date 2018.10.16) to 2.x (the latest release is 2.0.6GA, 2018.10.16). SpringCloud 2.x must be based on SpringBoot2.x,SpringCloud1.x and must be based on SpringBoot1.x.

(2) Eureka server needs to be changed if it depends on org.springframework.cloud

Spring-cloud-starter-eureka-server becomes:

Spring-cloud-starter-netflix-eureka-server

(3) Eureka client needs to change depending on org.springframework.cloud

Spring-cloud-starter-eureka becomes:

Spring-cloud-starter-netflix-eureka-client

(4) IP address configuration of registry

${spring.cloud.client.ipAddress} becomes:

${spring.cloud.client.ip-address}

(5) the user password of secure encrypted Spring Security is configured with spring before security.

Spring:

Security:

User:

Name:

Password:

(6) Security encryption Spring Security enables CSRF defense by default (which may cause the two registries not to register with each other), using:

Http.csrf () .ignoringAntMatchers ("/ eureka/**")

(7) secure encryption Spring Security module causes the configuration center to fail to encrypt and decrypt

Because the authentication method has changed, you can change it back to the basic auth authentication method.

(8) maven needs to change run.profiles to spring-boot.run.profiles.

Spring-boot:run-Drun.profiles=... Change to:

Spring-boot:run-Dspring-boot.run.profiles=

(9) Spring Cloud Gateway replaced Spring Cloud Zuul, mainly because Zuul 2.0 was not open source in time (Netfilx was later open source).

3 source code

Location of SpringCloud source code:

Https://github.com/spring-cloud

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report