Replies: 1 comment 3 replies
-
View Model is a special kind of read model, which does not have any storage or db, it is built from the event stream on the fly by reducer function. Generic read model has some storage, listen to events from all aggregates, and its projection functions are not reducers, these are non-pure functions that mutate the storage. So it is not practical to send applied events to the client, there is no easy way to understand how read model were affected, and there are security issues linked to such a solution. So there is no generic way to keep result of query to read model in sync with changes being done in that read model. We thought about notifications from read models. This feature is in plans, but not implemented yet. |
Beta Was this translation helpful? Give feedback.
-
As far as I understand it from the docs its only possible to subscribe to view model updates and not read models. Is there a reason for this and is there any plans to allow subscriptions to read models too?
Beta Was this translation helpful? Give feedback.
All reactions