Preparing your design workspace

Loading the problem and your latest saved attempt…

Design the Migration of an Acquired Online Bank

Move every customer and account of an online-only bank that was just bought onto the buyer's banking platform, one group of customers at a time, without losing a cent or a single transaction.

Problem statement

For this exercise, assume a large retail bank has just bought a smaller online-only bank. The online bank has its own mobile app, its own customer records and its own account system.

Within a year, every one of its customers, with their checking and savings accounts, must move onto the buying bank's platform, and the online bank's systems are then switched off.

The two banks store data differently. For this exercise, assume the online bank keeps amounts as decimal text such as "12.30", times in US Eastern local time, and each customer's full name in one field, while the buying bank keeps amounts as whole cents, times in UTC, and first and last names separately. Some of the online bank's customers already bank with the buying bank too, and each person must end up with one customer profile that holds all of their accounts.

Customers move in groups, overnight. Until a customer has moved, they keep using the online bank's app as before. After the move, opening the old app sends them to the buying bank's app, where they see their accounts with the full transaction history.

A moved account must have exactly the same balance and transactions as before the move. While a group is moving, its customers cannot move money for a short time; if a group's move fails its checks, those customers go back to the old system as if nothing happened.

Why the bank was bought, staff, legal approvals, cards and loans, and building either bank's app are out of scope.

Design the migration: what is copied and how, how customers are switched over, and how you know each move is correct.

What to build

  1. Each customer of the online bank ends up as exactly one customer at the buying bank: joined to their existing profile there, or given a new one.
  2. Each account moves with its balance and its full transaction history, converted to the buying bank's formats, and matches the source exactly.
  3. Customers move in overnight groups; a moved customer is sent from the old app to the buying bank's app, and a group whose checks fail goes back to the old system.

At scale

  • For this exercise, assume 2 million customers, and that about 1 in 10 of them already has a profile at the buying bank.
  • For this exercise, assume the online bank records about 1 million transactions a day and keeps 7 years of history, about 2.56 billion transactions, and that one copy job can move about 50,000 transactions per second.
  • For this exercise, assume groups move only on weeknights, a group's customers may be unable to move money for at most 2 hours, and every customer must be moved within 12 months.
  • For this exercise, assume nothing may be lost or copied twice even if a copy job crashes and restarts.