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 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
The text was updated successfully, but these errors were encountered:
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
📚 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
The text was updated successfully, but these errors were encountered: