简体   繁体   English

如何使用 Quarkus 托管自定义 Netty 编解码器?

[英]How to host custom Netty codec with Quarkus?

I am a total newbie to Quarkus, but I do know Netty and vert.x quite well.我是 Quarkus 的新手,但我确实非常了解 Netty 和 vert.x。 I have to do the deep dive and use Quarkus to open a server socket hosting a custom network codec written in Netty - instead of a REST service.我必须深入研究并使用 Quarkus 打开一个服务器套接字,该套接字托管一个用 Netty 编写的自定义网络编解码器——而不是 REST 服务。 I can't find documentation on this.我找不到这方面的文档。 Do you know any?你知道任何?

Here is a good guide on how you can use natively vert.x and netty native transport with quarkus: https://quarkus.io/guides/vertx这是关于如何使用 quarkus 原生 vert.x 和 netty 原生传输的一个很好的指南: https://quarkus.io/guides/vertx

You just need to import the quarkus dependancies and activate some configuration properties.您只需要导入 quarkus 依赖项并激活一些配置属性。 Then you'll be able to inject vertx in your code and use it to handle asynchronous communication (using asynchronous http restful api through netty native transport or Linux native transport or the native eventbus or kafka or whatever).然后,您将能够在代码中注入 vertx 并使用它来处理异步通信(使用异步 http restful api 通过 netty 本机传输或 ZEDC9F0A5A5D57797BF68E37364743831 或本机 eventbus 或 kafka 或其他任何方式)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM