|
|
|
|
|
by arialdomartini
499 days ago
|
|
I saw other times Git being related to event sourcing, but the argument is wrong. Most of the VCSs before Git (RCS, CVS, SVN) used to store deltas and to rebuild the state reapplying them. The very reason why Git took them by the storm is exactly because, on the contrary, Git does not store deltas but snapshots. Each commit is not there collection of the occurred chances but a complete snapshot of the whole project. Git is very efficient in reusing the blob objects to save space, but it’s still a whole snapshot. The occurred changes are not stored, and they are calculated on demand. The very opposite of event sourcing, where it’s the state to be calculated and the occurred changes / events to be stored. Git is really the demonstration that for code versioning state sourcing is way more efficient than event sourcing. |
|