Hi,
I have an dApp that based on Moralis. It was working well but recently due to the new Load balancer, we are facing with a critical problem:
- In our app, we have an endpoint that allow user to claim the reward
- To prevent user from replay attacking (claim reward twice/triple) with a very fast request rate, we implement a software Rate limit by a global state in Cloud function (use a global var to keep the requests state). It was working well because dApp was on single process/single instance. Now there are process per core so we have n state => user can replay attack to claim n times.
So my question is:
- Do you have Rate limit per userId on Moralis ?
- Do you have shared memory to use between processes ?
- In worst case, can we rollback to single process ?
Because itβs very critical for us, all our users can claim double/triple so we need to react ASAP.
Thanks for your helps.