Browse Definitions :
Definition

event sourcing

Event sourcing is a coding practice used by computer programmers to model a system as a sequence of events in order to identify the changes made over time. Instead of using the traditional method of creating a program entity out of the application's current state, event sourcing stores business objects as a string of state-changing events. Whenever an object changes, a new event is appended to the event stream.

Event sourcing helps developers maintain consistency and integrity of an application. Having a complete history of object states allows for mistakes to easily be corrected, information loss to be reconstructed and code to be easily debugged. Stored events include state-altering actions such as mouse clicks, electronic inputs and key strikes.

Benefits of event sourcing

Event sourcing is a useful tool when a programmer wants to recreate a specific occurrence identically and persist it to various destinations within a network. Benefits of event sourcing include:

  • The ability to completely discard and rebuild an application by running the event stream on an empty application state.
  • Event log capabilities such as replaying, reversing and changing the order.
  • Convenience with modeling or predicting various behaviors and outcomes of an application.
  • Ensures better system reliability.
  • The ability to simply implement temporal queries.
  • Organizes system updates and patches.
  • Enables more accurate audit logging.

Applications of event sourcing

Event sourcing can be applied whenever a system would normally capture the state of a specific event. It is generally applied as part of a local use, such as a network or computer that is part of a single system. However, it is also possible to perpetuate information about events that are gathered from external systems.

A common example of an event sourcing application is a Version control system. This type of system relies on frequent temporal queries and the ability to completely rebuild repository files.

The event replay capability of event sourcing is often used to remedy events that were received in the wrong order, a common issue with asynchronous messaging.

This was last updated in January 2019

Continue Reading About event sourcing

SearchCompliance
  • pure risk

    Pure risk refers to risks that are beyond human control and result in a loss or no loss with no possibility of financial gain.

  • risk reporting

    Risk reporting is a method of identifying risks tied to or potentially impacting an organization's business processes.

  • risk profile

    A risk profile is a quantitative analysis of the types of threats an organization, asset, project or individual faces.

SearchSecurity
  • script kiddie

    Script kiddie is a derogative term that computer hackers coined to refer to immature, but often just as dangerous, exploiters of ...

  • cipher

    In cryptography, a cipher is an algorithm for encrypting and decrypting data.

  • What is risk analysis?

    Risk analysis is the process of identifying and analyzing potential issues that could negatively impact key business initiatives ...

SearchHealthIT
SearchDisasterRecovery
  • What is risk mitigation?

    Risk mitigation is a strategy to prepare for and lessen the effects of threats faced by a business.

  • fault-tolerant

    Fault-tolerant technology is a capability of a computer system, electronic system or network to deliver uninterrupted service, ...

  • synchronous replication

    Synchronous replication is the process of copying data over a storage area network, local area network or wide area network so ...

SearchStorage
  • gigabyte (GB)

    A gigabyte (GB) -- pronounced with two hard Gs -- is a unit of data storage capacity that is roughly equivalent to 1 billion ...

  • MRAM (magnetoresistive random access memory)

    MRAM (magnetoresistive random access memory) is a method of storing data bits using magnetic states instead of the electrical ...

  • storage volume

    A storage volume is an identifiable unit of data storage. It can be a removable hard disk, but it does not have to be a unit that...

Close