Am I handling this correctly?
A user inputs their address, and my site queries a contract for the user’s pending balance in 200 staking pools that takes 200 requests of .eth_call(). Nothing fancy. But the (total calls * number of site users) per day is too high of a cost for me.
Websockets may help. But if all users open a client-side websocket, then my Infura account may exceed the max number of open sockets - Is that number public?. (Each would have a different IP address, so I don’t know if that invokes the limitation?)
Instead it seems like I should run a server-side application with one single (or several?) websocket to Infura, that queues users’ requests from clients, but wasn’t sure if this was the best approach.
Any advice is appreciated!