Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

智能合约事件监听的解决方案 | Simplexity #30

Open
simplexity-ckcclc opened this issue Apr 21, 2023 · 1 comment
Open

智能合约事件监听的解决方案 | Simplexity #30

simplexity-ckcclc opened this issue Apr 21, 2023 · 1 comment

Comments

@simplexity-ckcclc
Copy link
Owner

https://simplexity.cn/2023/04/21/sc-event-listener/

应用监听智能合约事件,常见有主动轮询链节点和向链节点订阅推送的方式。当单个应用存在多个实例时,需要在各个实例间协调,避免对同一合约事件的重复处理。同时,当前监听实例一旦下线,对于该合约事件的处理需要由其他实例从当前位置接着消费(应用需要额外设计实现协调机制保证不丢事件不重复消费)。本方案将事件监听和消费协同的功能交给中间件及消息队列等组件。应用无需再额外实现实例间的协调机制,只需要负责从消息队列里

@simplexity-ckcclc
Copy link
Owner Author

无话可说

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant