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
I've experienced a few issue while setting up a persistent subscription to update my readl model.
I will try to list them here in a concise way, let's discuss about it afterward.
The UserEventAppeared example class in the read model section should implement EventAppearedOnPersistentSubscription.
The documentation doesn't tell much about persistent subscription creation. That is especially troublesome because the suggested blueprint uses PersistentSubscriptionSettings::create() ->build(); which will NOT resolve links and set startFrom to -1.
Not resolving links will prevent to retrieve recorded event data (unless I have not understood something). I've also had to manually decode this data
Using startFrom: -1 will ignore all the previous events of the stream. As it is suggested to enable the $by_category projection juste before setting up the persistent subscription, no events will be handled by the mysql subscriber. That is quite tricky to understand IMO.
I've experienced a few issue while setting up a persistent subscription to update my readl model.
I will try to list them here in a concise way, let's discuss about it afterward.
UserEventAppeared
example class in the read model section should implementEventAppearedOnPersistentSubscription
.PersistentSubscriptionSettings::create() ->build();
which will NOT resolve links and setstartFrom
to -1.startFrom: -1
will ignore all the previous events of the stream. As it is suggested to enable the$by_category
projection juste before setting up the persistent subscription, no events will be handled by the mysql subscriber. That is quite tricky to understand IMO.Here's my read model subscriber:
The text was updated successfully, but these errors were encountered: