johanhaleby / occurrent

Unintrusive Event Sourcing Library for the JVM
https://occurrent.org
124 stars 16 forks source link

Add ability to push event to a SubscriptionModel out-of-band #126

Open johanhaleby opened 2 years ago

johanhaleby commented 2 years ago

It can be useful to allow pushing events to (certain?) subscription models. For example for recurring events (TenHoursPassedEvent) and integration events.

johanhaleby commented 1 year ago

Maybe we actually shouldn't be able to do this. Or at least not directly push such an event to SM. Maybe we should require the event to be converted to a command, then you can publish it normally. For example, TenHoursPassedEvent could be translated to what we want to happen after these ten hours have passed, such as RemoveIdlingPlayerFromGameCommand.