{"id":17503874,"url":"https://github.com/meethigher/vertx-examples","last_synced_at":"2026-04-27T12:02:24.953Z","repository":{"id":258615371,"uuid":"864573658","full_name":"meethigher/vertx-examples","owner":"meethigher","description":"learn to use vertx","archived":false,"fork":false,"pushed_at":"2025-08-10T14:22:06.000Z","size":82,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-10T16:24:28.080Z","etag":null,"topics":["vertx","vertx-eventbus","vertx-web"],"latest_commit_sha":null,"homepage":"https://meethigher.top/blog/2024/io-intensive/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meethigher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-09-28T15:26:00.000Z","updated_at":"2025-08-10T14:22:09.000Z","dependencies_parsed_at":"2025-04-02T09:31:40.690Z","dependency_job_id":"f70e92b3-bbb8-44ad-bb8d-994260f8a7ac","html_url":"https://github.com/meethigher/vertx-examples","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"ea27c233ea2940fc4b4c8a610ea498f0af302384"},"previous_names":["meethigher/vertx-examples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/meethigher/vertx-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meethigher%2Fvertx-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meethigher%2Fvertx-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meethigher%2Fvertx-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meethigher%2Fvertx-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meethigher","download_url":"https://codeload.github.com/meethigher/vertx-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meethigher%2Fvertx-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["vertx","vertx-eventbus","vertx-web"],"created_at":"2024-10-19T23:14:35.749Z","updated_at":"2026-04-27T12:02:24.948Z","avatar_url":"https://github.com/meethigher.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[Documentation | Eclipse Vert.x](https://vertx.io/docs/)\n\n案例说明\n\n* Example1.java：vertx执行阻塞逻辑、事件回调逻辑、定时任务注册与取消，以及verticle和事件总线。\n* Example2.java：vertx组建集群，以及集群事件总线的使用。\n* Example3.java：vertx使用httpclient。通过1个线程，在10秒内完成对2000个耗时10秒的HTTP请求。\n* Example4.java：http server\n* Example5.java：vertx中提供的文件系统。\n* Example6.java：vertx实现http反向代理，使用默认处理逻辑与自定义处理逻辑。\n* Example7.java：vertx实现tcp服务，使用handler函数式接口，并记录使用中碰到的错误点。\n* Example8.java：vertx实现tcp反向代理。该代码来自于vertx-sql-client。\n* Example9.java：vertx实现http数据传输，并以tomcat为例解决实现上传时的一些[疑问](https://juejin.cn/post/7055851941837930533)。\n* Example10.java：vertx实现tcp数据传输，并验证tcp双端产生和消费速率不匹配时的一些问题。\n* Example11.java：vertx使用webclient\n* Example12.java：vertx使用protobuf封装tcp通信机制，自定义协议消息结构（消息长度+消息类型+可变消息体）解决粘包/半包问题。\n* Example13.java：vertx的RecordParser以及基于自定义消息结构实现解码逻辑\n* Example14.java：vertx实现tcp client的自动重连机制\n* Example15.java：理解socket.resume简易示例\n* Example16.java：手撕frp简易功能，该内容在下文有mermaid时序图。\n* Example17.java：http upgrade。通过一个端口既支持http服务，又支持websocket服务。\n* Example18.java：抄袭Pipe手动实现DiyPipe\n* Example19.java：Promise..Future使用示例\n* Example20.java：vertx实现udp反向代理\n\n\n\n\n`Example16.java` 时序图\n\n```mermaid\nsequenceDiagram\n    autonumber\n    participant user as User\n    participant tsp as FRPS-Proxy\n    participant tsc as FRPS-Control\n    participant tc as FRPC\n    participant rs as RealServer\n    \n    rs-\u003e\u003ers: 监听80端口\n    tsc-\u003e\u003etsc: 监听44444端口\n    tsp-\u003e\u003etsp: 监听2222端口\n    tc-\u003e\u003etsc: 连接44444端口\n    user-\u003e\u003etsp: 连接2222端口\n    tsp--\u003e\u003etsc: \n    tsc-\u003e\u003etc: 你需要主动连接2222端口\n    tc-\u003e\u003etsp: 连接2222端口\n    note left of tsp: 绑定连接，实现双连接的双向转发\n    tc-\u003e\u003ers: 连接80端口\n    note left of tc: 绑定连接，实现双连接的双向转发\n\n    user-\u003e\u003etsp: 发送请求数据\n    tsp-\u003e\u003etc: 转发请求数据\n    tc-\u003e\u003ers: 转发请求数据\n    rs-\u003e\u003etc: 响应请求数据\n    tc-\u003e\u003etsp: 转发请求数据\n    tsp-\u003e\u003euser: 转啊请求数据\n    note left of user: 该请求示例是以用户主动发送数据为例，还有一种情况是服务主动发送数据，不过也一样。\n    \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeethigher%2Fvertx-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeethigher%2Fvertx-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeethigher%2Fvertx-examples/lists"}