GithubHelp home page GithubHelp logo

webhook监听上下线事件时,事件时序有误,原因不明(connected and disconnected events may out of order) about emqx HOT 3 CLOSED

hotraygroup avatar hotraygroup commented on May 29, 2024
webhook监听上下线事件时,事件时序有误,原因不明(connected and disconnected events may out of order)

from emqx.

Comments (3)

hotraygroup avatar hotraygroup commented on May 29, 2024

非必现,时有发生

from emqx.

zmstone avatar zmstone commented on May 29, 2024

Hello @hotraygroup
这一个已知,但是不计划解决的问题。
重链后处理新连接的进程不是同一个,也可能不是同一个节点,事件被触发后也有可能是异步发送事件到 webhook(或者其他数据集成),所以也无法保证投递顺序。
要保证事件严格有序会需要引入全局锁,或者把事件序列化,对性能造成的损失可能远大于解决两个异步事件顺序带来的收益。

from emqx.

zmstone avatar zmstone commented on May 29, 2024

This is a known, but won't fix issue.

The new connection after reconned is handled by a different process,
when cluster, it might be handled by a different node.
The events might be delivered async-ly towards webhook (or other data sinks).

To ensure order, we may need to either introduce a global lock, or serialise the events by one single actor
--- we believe the performance loss does not worth it

from emqx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.