0x-mesh icon indicating copy to clipboard operation
0x-mesh copied to clipboard

Support for websocket subscriptions for Ethereum RPC

Open Arctek opened this issue 6 years ago • 1 comments

The current block polling method results in a large set of RPC calls - at least 17,280 per day if polling every 5 seconds and then additional calls for every new block found.

As some RPC providers are metered connections it would be a nice feature to support websocket subscriptions as an additional method.

Arctek avatar Aug 15 '19 03:08 Arctek

@Arctek this is a good idea and definitely something we'll look into. We are keeping an eye on the number of RPC requests our nodes are sending and so far we are below the limit for the Infura free tier. (Some of our nodes are using Alchemy instead of Infura and we haven't run into any issues there either).

However, this is something that will change as the 0x Mesh network grows and more orders are being propagated. In addition to bandwidth/throttling concerns, switching to WebSockets could potentially improve performance. I don't think this is an urgent change but it's something we'll keep in mind.

albrow avatar Aug 19 '19 19:08 albrow