Comments (1)
上一个版本接口用的是 vert.x 开发,vert.x 引入了大量 js 风格,在中大型项目上面非常蛋疼,比如没有 POJO,全是 JsonObject。没有接口,只有类似反射的调用方法。没有 IOC,只能自己 new。包括配套啥的都要自己找,很麻烦。
好在 Spring 给了 Java 异步开发者一些希望。Spring Webflux 经过一年多的迭代,已经达到基本能用的水平。尤其是配套的 Reactor 3 采用了类似 Rxjava 的链式操作(或者可以理解为 Stream 的异步加强版),大幅简化了并行开发,异步开发的难度,提高了可读性。目前 Spring Webflux 已经集成在 Spring Boot 2 中,无缝和 SpringMVC 使用方法对接(包括方便的数据库仓库接口),并且可以无缝享受到 Spring Boot 全家桶。健壮性也比vert.x 好一些。升级版采用 Webflux 开发。
然而 Webflux 也继承了 Spring 家一贯臃肿的风格,性能比 Vert.x 差不少,不过好歹也是运行在 Netty 上,比同步开发的响应速度还是有质的提高。
(之前写在别的地方的,我直接复制过来了)
from gushici.
Related Issues (17)
- 用Spring的Reactor写项目看看速度怎么样 HOT 3
- 现在访问不了吗
- 升级后的是springboot项目吗
- 请问诗词能否支持根据作者,年代来进行推荐?
- 跨域问题 access-control-allow-origin 多个 HOT 1
- 能否集成chinese-poetry库使其返回一首完整的古诗词? HOT 4
- 使用期间偶遇有些诗词标点有误,有些则乱码 HOT 1
- 关于React+TS项目中使用npm包遇到的问题
- 今日诗词只能返回几个固定的诗句 HOT 1
- 微信小程序手机request时SSL证书问题 HOT 2
- 老哥 服务器502了 HOT 2
- 服务器貌似挂了 HOT 1
- 江城子·腻红匀脸衬檀唇 貌似斷句有誤
- 关键词搜索
- api文档的一个小问题
- 有一首诗名显示重复 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gushici.