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

[EVM Reader] Substitute the use of Websocket subscription by a Polling strategy #527

Open
fmoura opened this issue Jul 19, 2024 · 0 comments
Assignees
Labels
#feat:evm-reader Feature: evm reader
Milestone

Comments

@fmoura
Copy link
Contributor

fmoura commented Jul 19, 2024

📚 Context

The use of Websocket subscription shows lots of problems when used against APIs like Alchemy and Infura.

✔️ Solution

The safest approach is to use a polling strategy instead. So the loop to check for new inputs should ditch the "New head events" in favor of a time based one. The polling rate must be configurable

Subtasks

-[ ] Also improve "getLastBlock" call. Move it outside App Group loop

@fmoura fmoura self-assigned this Jul 19, 2024
@fmoura fmoura added this to Node Unit Jul 19, 2024
@fmoura fmoura moved this to 📋 Backlog in Node Unit Jul 19, 2024
@marcelstanley marcelstanley changed the title Substitute the use of Websocket subscription by a Polling strategy at EVM Reader [EVM Reader] Substitute the use of Websocket subscription by a Polling strategy Jul 19, 2024
@marcelstanley marcelstanley added the #feat:evm-reader Feature: evm reader label Jul 19, 2024
@marcelstanley marcelstanley added this to the TBD milestone Jul 26, 2024
@marcelstanley marcelstanley modified the milestones: TBD, 2.0.0 Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#feat:evm-reader Feature: evm reader
Projects
Status: 🏗 In progress
Development

No branches or pull requests

2 participants