百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
V

vertx-sync

> 编程语言
开源

[警告] ==== 该项目现已过时,https://GitHub.com/puniverse/quasar[Quasar 项目] 在 V 版本中已被正式放弃。

99 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

[警告] ==== 该项目现已过时,https://GitHub.com/puniverse/quasar[Quasar 项目] 在 V 版本中已被正式放弃。

[CAUTION]

This project is now deprecated with the https://github.com/puniverse/quasar[Quasar project] being effectively abandoned in Vert.x 4 and removed in Vert.x 5.

Use https://github.com/vert-x3/vertx-virtual-threads-incubator/[Vert.x virtual thread instead].

= Synchronous but non-OS-thread-blocking verticles

image:https://github.com/vert-x3/vertx-sync/workflows/CI/badge.svg?branch=master["Build Status", link="https://github.com/vert-x3/vertx-sync/actions?query=workflow%3ACI"]

Love scalability?

Hate blocking kernel threads?

Hate callback hell?

Want to squash the pyramid of doom?

Well, now you can have your cake and eat it...

Vert.x lets you write code without blocking kernel threads for i/o by offering non-blocking implementations of common operations. However, these operations are necessarily asynchronous, meaning that for complex processing pipelines, it is necessary to either nest callbacks (leading to "callback hell" or use a library such as Rx to enable composition). Wouldn't it be nice if you could write asynchronous code that just looked like synchronous code?

Vertx-sync allows you to deploy verticles that run using fibers. Fibers are very lightweight threads that can be blocked without blocking a kernel thread.

This enables you to write your asynchronous verticle code in a familiar synchronous style (i.e. no callbacks or promises or Rx). Consider it syntactic sugar over asynchronous processing. (Note, it cannot magically convert code which will block, such as synchronous JDBC operations, into non-blocking asynchronous code, so you will need to avoid using blocking libraries. If you do use a blocking library, you will block the event loop, which is to be avoided at all times).

As no kernel threads are blocked your application retains the scalability advantages of a non (kernel thread) blocking application.

Please see the in source asciidoc documentation or the main documentation on the web-site for a full description of vertx-sync

  • Web-site docs
  • link:src/main/asciidoc/index.adoc[Java in-source docs]

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Java

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言