You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to capture external events, such as those recorded by an IoT device.
Events can be directly appended to an event stream, using Commanded.EventStore, without needing to be produced by an aggregate from a command. An event handler can be used to react to these external events. It may dispatch a command as a reaction to an event.
Define an integration event struct which can be used for any external event without needing to define a custom struct for each type.
The type of the external event will be indicated by the type field. This allow loose coupling which is preferred when dealing with events from a third party, external system.
Append events to a stream (e.g. devices/device-1234) using Commanded.EventStore.append_to_stream/4 and an integration Commanded Application instance.
How to capture external events, such as those recorded by an IoT device.
Events can be directly appended to an event stream, using
Commanded.EventStore
, without needing to be produced by an aggregate from a command. An event handler can be used to react to these external events. It may dispatch a command as a reaction to an event.Define an integration event struct which can be used for any external event without needing to define a custom struct for each type.
The type of the external event will be indicated by the
type
field. This allow loose coupling which is preferred when dealing with events from a third party, external system.Append events to a stream (e.g.
devices/device-1234
) usingCommanded.EventStore.append_to_stream/4
and an integration Commanded Application instance.As these are external events we are storing in raw format we can use
:any_version
to skip concurrency control checking.The text was updated successfully, but these errors were encountered: