V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
cpdyj0
V2EX  ›  程序员

使用 Vert.x 时有哪些注意事项?

  •  
  •   cpdyj0 ·
    cpdyj · 2019-01-14 20:37:44 +08:00 · 1581 次点击
    这是一个创建于 1900 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我要实现的是一个 web 服务,请求进来时要经过很多过滤器打标签,我现在的想法是把这些过滤器做成 Vertical,然后全部通过 EventBus 通讯。请求进入第一个 filter,处理完后扔给下一个这样。这样做有哪些缺点呢?或者有哪些更好的办法?

    1 条回复    2019-01-15 00:34:47 +08:00
    kran
        1
    kran  
       2019-01-15 00:34:47 +08:00 via Android   ❤️ 1
    可以考虑使用 publish 广播,而不是链式
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5940 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 02:05 · PVG 10:05 · LAX 19:05 · JFK 22:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.