Portfolio Recommendations - 1.5 Sextillion Possibilities

Credit cards are complex, and it gets even crazier when you can have multiple cards in your wallet! I developed a simulation framework to allow a full simulation of this process to happen in real time. To make this magic happen, the system had to reduce the number of simulations with mathematical certainty, an each simulation had to be optimized as much as possible. Specifically:

  • Migrate our simulation methods to Lambda to scale
  • Move our Card Model to shared memory (REDIS) to help 'boot' time
  • Distribute work, then reconcile afterwards
  • Simualte a wallet of all cards, and remove cards which would have $0 in spending
  • Simulate rounds of wallet sizes, stopping when adding a new card won't add any extra value