Skip to content

optimizing the event service #6153

Closed
Closed
@zeusoo001

Description

@zeusoo001

Background

The event service was designed for use by specific nodes and is not widely utilize. However, it is tightly coupled with the main process and has some issues when handling block rollback.

Currently, the event service is coupled with block execution, and the coupling has a negative impact on the efficiency of block execution. If the event service fails, it may cause block processing failure, thus affecting block broadcasting and synchronization.

Rationale

The system should prevent block processing from failure due to event service processing malfunctions, which could otherwise affect block broadcast and synchronization.

Therefore, the logic of event service, in the scenario of switching blockchain failure, should be optimized.

The event service should be decoupled from the block execution logic and designed as an independent module, which would no longer affect execution of the main process, thus avoiding the event service exception causing node to fail to operate normally.

Once the event service is decoupled, the efficiency of block execution can be improved. And since the event service is independent, the scalability can be enhanced, which is convenient for the access of other events.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions