Vert.x介绍

Vert.x系列:
Vert.x介绍:https://blog.csdn.net/haoranhaoshi/article/details/89279096
Vert.x实战一:Vert.x通过Http发布数据:https://blog.csdn.net/haoranhaoshi/article/details/89284847
Vert.x实战二:TCP通信:https://blog.csdn.net/haoranhaoshi/article/details/89296522
Vert.x实战三:TCP客户端之间以角色通过服务端转接通信:https://mp.csdn.net/postedit/89296606
Vert.x实战四:TCP客户端之间以角色和同一角色连接顺序通过服务端转接通信:https://blog.csdn.net/haoranhaoshi/article/details/89296665
Vert.x实战五:TCP客户端之间以ID通过服务端转接通信:https://blog.csdn.net/haoranhaoshi/article/details/89296754
Vert.x实战六:TCP客户端之间以功能名通过服务端转接通信:https://blog.csdn.net/haoranhaoshi/article/details/89296841
Vert.x实战七:TCP设置超时断开:https://blog.csdn.net/haoranhaoshi/article/details/89296986
Vert.x的TCP服务端和客户端配置:https://blog.csdn.net/haoranhaoshi/article/details/89297022
Vert.x的Http和TCP实战代码下载:https://download.csdn.net/download/haoranhaoshi/11114611

本篇:

一、简介
1、和WebService、Node.js、SpringBoot一样可以发布Http接口,支持REST服务,适合前后端分离开发。
2、Vert.x可以搭建Http Web服务器、TCP服务器、WebSocket服务器等(WebSocket:基于Http和TCP,克服传统Http的请求/响应模式,可以实现服务器推送技术向客户端传输数据,可以实现真正的实时通信,被广泛应用于实时Web应用,如股票行情的实时更新显示、工业过程Web监控系统。)。
3、Vert.x用于编写下一代异步、可伸缩、并发性企业级应用的服务器端框架,在JVM上实现了一个与Node.js类似,但却全面超越Node.js的应用开发服务器平台。幸亏Node.js当初没有过于深入地学习。
4、Vert.x的TCP服务端和客户端,和Mina一样,采用单线程、异步、非阻塞的事件模式,避免多线程模式下的频繁切换。
5、官网:https://vertx.io/。
6、下载地址:https://vertx.io/download/。
7、多种语言的API:https://vertx.io/docs/。
8、Java中应用的API:https://vertx.io/docs/apidocs/。
7、Vert.x的Http、TCP、UDP、WebSocket实战代码:https://blog.csdn.net/king_kgh/article/details/84870775。
8、参考网址:
Vert.x 3 核心手册之TCP服务器与客户端:https://www.jianshu.com/p/7438f9c83fb3
Vert.x(vertx) 实现TCP服务:https://blog.csdn.net/king_kgh/article/details/84870775
Vert.x系列:https://leokongwq.github.io/archives/page/7/
9、使用:下载后可配置环境变量,系统变量的Path中加入:Vet.x安装目录的bin路径,全局使用,结合Maven导入;或者根据应用场景导入所需包。
10、官方文档中文版(强烈推荐):https://vertxchina.github.io/vertx-translation-chinese/
11、简单分析文档:
https://silentbalanceyh.gitbooks.io/vert-x/content/01mu-lu.html
https://www.sczyh30.com/posts/Vert-x/vertx-advanced-demystifying-thread-model/
二、和Spring的对比
1、SpringBoot初始为同步阻塞的,2.0开始为异步非阻塞,(https://spring.io/projects/spring-boot/)最新为2.1.4。Vert.x一开始就是异步非阻塞,基于Netty。
2、SprinBoot默认基于Tomcat容器,可用undertow容器替换(https://hzwei206.iteye.com/blog/2433187)。
Vert.x基于Vert.x容器。
3、Vert.x的API支持Java、JavaScript、Groovy、Ruby、Ceylon、Kotlin、Scala,SpringBoot只支持Java。
三、注意事项
1、运行后报Failed to load class "org.slf4j.impl.StaticLoggerBinder"。
导入slf4j-log4j12-1.7.5.jar、log4j-1.2.17.jar,src下加入log4j.properties配置文件。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

风铃峰顶

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值