We are using ERC20 tokens in our application for our transactions. We are having a hard time as to how to keep track of pending transactions and users token balance. Ideally, we want to notify user as soon as the transaction is confirmed on the blockchain. For this, we tried using web3 WebSockets but we noticed that after few hours of running servers, some contract events missed out and users didnt get any confirmation notification.
Can anyone guide on this as how to effectively listen for contract events or pending transactions especially in a production environment?
Very recently I have been thinking of using AWS lambda with cloud watch for listening events but couldn't get any help on this.