IDEMPOTENT EVENT HANDLING
    1.
    发明申请

    公开(公告)号:US20240403145A1

    公开(公告)日:2024-12-05

    申请号:US18204614

    申请日:2023-06-01

    Applicant: SAP SE

    Abstract: A partition-based method to implement idempotence in an event-driven architecture is provided, which acts to reduce the pressure of database reading and writing, thus improving the performance of event handling. In order to improve parallelism, a consumer cluster (a cluster of multiple consumers that can share the responsibility of processing events) is established such that the events are distributed among different partitions within the cluster. Each partition contains a different consumer worker (with its own cache). An event dispatch module is then used to dispatch events among the consumer workers in a way that keeps the load balanced. In an example embodiment, this is performed by generating a partition identification for an event based on a hash of the context identification of the session established between the user and the application when the event was generated, followed by a modulo operation based on the number of consumer workers in the cluster.

    Idempotent event handling
    2.
    发明授权

    公开(公告)号:US12260270B2

    公开(公告)日:2025-03-25

    申请号:US18204614

    申请日:2023-06-01

    Applicant: SAP SE

    Abstract: A partition-based method to implement idempotence in an event-driven architecture is provided, which acts to reduce the pressure of database reading and writing, thus improving the performance of event handling. In order to improve parallelism, a consumer cluster (a cluster of multiple consumers that can share the responsibility of processing events) is established such that the events are distributed among different partitions within the cluster. Each partition contains a different consumer worker (with its own cache). An event dispatch module is then used to dispatch events among the consumer workers in a way that keeps the load balanced. In an example embodiment, this is performed by generating a partition identification for an event based on a hash of the context identification of the session established between the user and the application when the event was generated, followed by a modulo operation based on the number of consumer workers in the cluster.

Patent Agency Ranking