Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Split persisted and domain events

Aperta
#168 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 7 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
csharp
Ambito
backend

Direzione di ricerca

Start by reading the event mapping approach in issue #82 and trace how Eventuous currently maps and persists events. The proposed change is optional two-way mapping, with unmapped event types passing through; done means domain and persisted events can be mapped independently while preserving that pass-through behavior. The issue names no files or tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement linear

For a while, I advocated treating events as contracts and keeping them clean of sophisticated types like value objects.

It solves the issue of serialisation as it should work unconditionally, but it introduces some issues:

  • Repeated wrapping and unwrapping of value objects in the aggregate and the state code
  • Applying mapping attributes (which are infrastructure-oriented) to domain events
  • Lack of persistence control from the domain model side (I might not want to persist all the events)

Similar to #82, it is possible to map persisted events to domain events (and back) to separate those concerns.

Here's the idea:

  • Add an optional two-way mapping
  • Treat it as an addition, meaning look inside the map first and pass through unmapped types

EVE-42

Lingua principale
C#
Stelle
512
Fork
99
Merge medio
5g 6h
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Eventuous/eventuous

Tutte le issue di Eventuous/eventuous

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.