What is event sourcing?

Event sourcing is a software architecture pattern that has gained popularity in recent years, especially in the field of distributed systems. This pattern involves recording every change or event that occurs in a system, unlike normal systems that only keep the latest state of the system.