modernice / goes

goes is an event-sourcing framework for Go.
https://goes.modernice.dev
Apache License 2.0
134 stars 12 forks source link

Nil-UUID safe-guards #134

Open bounoable opened 1 year ago

bounoable commented 1 year ago

goes currently doesn't distinguish between Nil-UUIDs and valid UUIDs. This might lead to problems, notably within aggregates and projections, where Nil-UUIDs are treated as legitimate.

To tackle this, we could introduce protective measures against Nil-UUIDs in both the aggregate and event packages. This change could lead to backwards incompatibility, but the potential for reducing errors and improving overall system robustness makes it seem worthwhile.