Understanding Event Sourcing in ASP.NET Core C#

Sdílet
Vložit
  • čas přidán 15. 06. 2024
  • How to implement Event Sourcing in ASP.NET Core application as well as understanding what even sourcing is.
    Patreon 🤝 / raw_coding
    Courses 📚 learning.raw-coding.dev
    Shop 🛒 shop.raw-coding.dev
    Discord 💬 / discord
    Twitter 📣 / anton_t0shik
    Twitch 🎥 / raw_coding
    👉 Try Rider
    www.jetbrains.com/store/redeem/
    RD5K9-4TXXW-KMV3G-NYWSF-3ZSTP
    Code: github.com/raw-coding-youtube...
    #eventsourcing #aspnetcore #csharp

Komentáře • 36

  • @beest_
    @beest_ Před 2 lety +3

    I'm commenting after 2 minutes,. Because I just sat down with my coffee , played the video and took sip exactly at the same time

    • @RawCoding
      @RawCoding  Před 2 lety +4

      Once every hundred-thousand years or so this will happen )

  • @osman3404
    @osman3404 Před 2 lety +4

    I LOVE LOVE LOVE this style of learning awesome !!!

    • @sunefred
      @sunefred Před 2 lety +1

      Absolutely agree, this is refreshing.

    • @RawCoding
      @RawCoding  Před 2 lety +1

      thank you

  • @stefanosbek
    @stefanosbek Před 2 lety +2

    LMAO when I googled transient 3 secs before he did, that got me

    • @RawCoding
      @RawCoding  Před 2 lety +2

      gotta know what you're saying

  • @alexiosplomaritis9713
    @alexiosplomaritis9713 Před 2 lety +2

    Ah, a natural continuation to the last video :)

  • @bahabbj5798
    @bahabbj5798 Před 2 lety +2

    Thanks for all

  • @sunnypatel1045
    @sunnypatel1045 Před 2 lety +2

    Bro as always flawless

  • @luisandrade9054
    @luisandrade9054 Před 2 lety +2

    Subscribing! Thanks for your video, the example was very clear! Is there a book you recommend to learn Event Sourcing in C#?

    • @RawCoding
      @RawCoding  Před 2 lety

      Nope, there is enough material online

  • @yourockst0ne
    @yourockst0ne Před 2 lety +2

    Nice format 👍

  • @PaulSebastianM
    @PaulSebastianM Před 2 lety +4

    Interesting. I'm really curious how to store the events now and how you know which events to fold into, from when up to when, to construct a finished view-model...

    • @RawCoding
      @RawCoding  Před 2 lety +2

      cqrs.files.wordpress.com/2010/11/cqrs_documents.pdf
      > Building an Event Storage

  • @juhairahamed5342
    @juhairahamed5342 Před rokem +2

    Good explanation

  • @sunefred
    @sunefred Před 2 lety +3

    Is it common to use Event Sourcing for applications with Undo/Redo? I know there is the command pattern from Gang of Four, but this seems like an even better fit for that. With Event Sourcing, you could simply move a pointer back and forth for Undo and Redo respectively, no need to actually create or delete events!

    • @Qrzychu92
      @Qrzychu92 Před 2 lety +2

      yeah, but you need to add "Undo event" action to calulate the old state from new state, which can be harder than it sounds :)

    • @RawCoding
      @RawCoding  Před 2 lety +2

      You don’t undo you just recalculate from the beginning

    • @Qrzychu92
      @Qrzychu92 Před 2 lety +1

      @@RawCoding yeah, from beginning, or previous snapshot.

  • @PaulSebastianM
    @PaulSebastianM Před 2 lety +2

    What do you use to draw on the screen like that?

  • @cocoscacao6102
    @cocoscacao6102 Před 2 lety +2

    I see what you did with the thumbnails there... One question. Regarding removeProduct event, doesn't it makes more sense to do a soft delete instead of a hard one. I understand that this is a simplified example, but it still irks me.

  • @PaulSebastianM
    @PaulSebastianM Před 2 lety +3

    8:34 - 8:37 🤣👏

  • @akimbbo_upnext
    @akimbbo_upnext Před 2 lety +2

    Thumbs up for big smoke reference :}

  • @cethrivias
    @cethrivias Před 2 lety +2

    You should have waaaay more active viewers

    • @RawCoding
      @RawCoding  Před 2 lety +1

      it's okey I like it hard ;)

  • @edhahaz
    @edhahaz Před rokem

    Storing all this data and can't even step through backwards from current state without rebuilding from Big Bang