Event Sourcing

  • Event sourcing
    • Event Sourcing with Examples in Node.js | @RisingStack
      • This article explain the definition, benefit, and nodejs code example of event sourcing
        • Event Sourcing is a software architecture pattern which makes it possible to reconstruct past states (latest state as well)
          • The State of your application is like a user's account balance or subscription at a particular time. This current state may only exist in memory.
            • Why
              • 1. Imagine that you just started working on a beautiful Monday morning when it suddenly turns out that you made a mistake and used a wrong currency exchange for the whole past week. In this case, every account which sent and received money in a last seven days are in a corrupt state
                • You can use events to audit or debug state changes in your system
                • Possibilities
                  • Rebuild states completely
                    • Replay states from a specific time
                      • Reconstruct the state of a specific moment for temporary query
                  • Event Sourcing with Examples in Node.js | @RisingStack
                    • This article explain the definition, benefit, and nodejs code example of event sourcing
                      • Event Sourcing is a software architecture pattern which makes it possible to reconstruct past states (latest state as well)
                        • The State of your application is like a user's account balance or subscription at a particular time. This current state may only exist in memory.
                          • Why
                            • 1. Imagine that you just started working on a beautiful Monday morning when it suddenly turns out that you made a mistake and used a wrong currency exchange for the whole past week. In this case, every account which sent and received money in a last seven days are in a corrupt state
                              • You can use events to audit or debug state changes in your system
                              • Possibilities
                                • Rebuild states completely
                                  • Replay states from a specific time
                                    • Reconstruct the state of a specific moment for temporary query