Hello,
I have a projection that emit new event based on the value of certain attribute of aggregate entity (user), for example, country field of an user, but not all events for that user will contain the info for country. So I store the country information in the state object, when i want to retrieve the country info, i just read it from the state object. Problems for me now are:
-
when eventstore application stopped, the state object in the projection would also be lost, so if i restart the projection after event store back up, i can’t reuse the data i stored in the state object previously
-
is this the correct way to use projection? (thought of building read model in my own application, but that introduce extra work effort)
Regards,
Run Yang