2

From what I know, most banking applications periodically store the account balance at a certain point in time as it would not be plausible to calculate it over the entire history of transactions every time it is needed. In order to find the account balance, the application would first load the latest balance saved and add transactions that occurred after that point.

What is this process of saving account balances called? What are some common techniques used in this process?(e.g., run it on every weekend night)

2
  • 1
    I would tend to suspect 'caching' Commented Jul 3, 2013 at 18:27
  • 3
    I think they call it 'reconciling the accounts'. Banking has been around a lot longer than computers. Commented Jul 3, 2013 at 18:30

1 Answer 1

7

While not specific to the banking industry I would call the technical process snapshotting.

When and how you should take your snapshots is going to vary based on your domain and specific requirements. The main reason to take a snapshot is performance (as you mentioned it saves you from having to go through the entire line of events that brought you to the current point). There is also a performance cost in generating and saving that snapshot. Ideally you should take your snapshots right at the point where the performance cost of taking a snapshot is less than the performance cost of going through the entire chain of events.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.