Laymen idea on how to make SimplyGo display card balances instantly.
Disclaimer, I am not a software engineer or developer so this could be completely wrongheaded.
But I was thinking that since it takes a long time for the backend to compute the fare and return the card balance, why not make all terminals store the balances which are synced with each other. When someone taps, the current terminal computes balance and then displays it, and then afterwards sync it to the main server which would then proceed to sync to the rest of the terminals + the app? Top ups would go the other way around?
With an upper limit assumption of 10million users, each terminal has to store 10 million card ids + 10 million balances. Assuming each value is 4 bytes, that's 150Mb at most so it's not unreasonable. Most thumbdrives contain hundreds of times the space anyway.
Let me know if this is a dumb idea or not?
Posted Jan 14, 2024, 2:00 PM UTC