Skip to content

Instantly share code, notes, and snippets.

View Marfusios's full-sized avatar
〽️
Getting things done

Mariusz Kotas Marfusios

〽️
Getting things done
View GitHub Profile

Event Sourcing

The limits of storage and processing power have been rapidly receding from view. Nowadays it is common for processors to execute billions of instructions per second and to have billions of bytes of RAM. The more memory we have, and the faster our machines are, the less we need mutable state.

As a simple example, imagine a banking application that maintains the account balances of its customers. It mutates those balances when deposit and withdrawal transactions are executed.