You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
@abn2357 Nodes that require event subscription. Event service provided event subscription, supporting subscription of chain data, such as block, transaction, contract log, contract event and so on, so developers can get events triggered on the chain by the event plugin.
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.
The text was updated successfully, but these errors were encountered: