There are two cricket teams which are going to play a match between them and we need to design a game , such that people can predict beforehand which team will win . And we need to give money to the users who predict the correct team . Users will be in millions and once the result is out (i.e a team wins a cricket match ) we need to process cashback asap. How will you design such system ?
Two problems to be worked on :
Cashback processing in bulk
Cashback expiry in bulk
P.S : People who will see the app soon after the match , should be shown updated balance.