Giter VIP home page Giter VIP logo

mathewbeats / eventsourcing.net Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6 KB

This project implements an Event Sourcing pattern to manage student data. Event Sourcing is a powerful architectural pattern that ensures every state change of a student is stored as a sequence of events. This approach provides a robust audit trail, allows easy reconstruction of past states, and supports a flexible, decoupled design.

C# 100.00%

eventsourcing.net's Introduction

Event Sourcing for Student Management Description This project implements an Event Sourcing pattern to manage student data. Event Sourcing is a powerful architectural pattern that ensures every state change of a student is stored as a sequence of events. This approach provides a robust audit trail, allows easy reconstruction of past states, and supports a flexible, decoupled design.

Features Event-Driven Architecture: Capture and store every change as an event, ensuring an immutable and traceable history of changes. Student Management: Create, update, enroll, and unenroll students with events. Immutable Events: Once created, events are immutable, providing a reliable source of truth. Rebuild State: Reconstruct the current state of a student by replaying their events. In-Memory Storage: Use of in-memory dictionaries for fast access and manipulation of events and current state. Project Structure Events: Define various events that represent changes to student data.

Event: Abstract base class for all events. StudentCreated: Represents the creation of a student. StudentEnrolled: Represents a student enrolling in a course. StudentUnEnrolled: Represents a student unenrolling from a course. StudentUpdated: Represents updates to a student's details. Domain Model: Represents the current state of a student.

StudentClass: The main class that holds student details and applies events to update its state. Event Store: Manages the storage and retrieval of events.

StudentDatabase: Handles the storage of events in a sorted manner and provides methods to reconstruct the current state of students.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.