Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event Sourcing #207

Open
expede opened this issue Jan 12, 2024 · 0 comments
Open

Event Sourcing #207

expede opened this issue Jan 12, 2024 · 0 comments

Comments

@expede
Copy link
Member

expede commented Jan 12, 2024

Summary

In a previous iteration of /design/README.md, we had planned on implementing event sourcing.

Event Sourcing

Instead of recording the createdAt and latest modifiedAt, the Fission server records immutable events. This stores more data in the database, but has multiple advantages:

  • Schema migrations can be reconstituted performed directly or by playing over the log
  • Post hoc analysis and debugging is possible
  • Nondestructive updates makes fixing bugs in-place significantly easier

As the server is currently very focused and lightweight, we can punt on this for now. This pattern helps with several things that we expect to run into eventually, but doing so now may be premature optimisation:

  • Schema changes
  • Instrumentation
  • Moving parts of the model to other services (i.e. a distributed event service that can materialize across multiple focused services)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant