Hi Vaughn, Thanks for your post and sorry if mine wasn't clear.
On Friday, 29 August 2014 17:25:39 UTC+8, Vaughn Vernon wrote: Personally I'm having a little trouble understanding how your three points > differ much. > You're right, they are similar / related (and I did mention that) but I think there is a logical progression to them (IMHO). The first one says that *any* actor should be able to persist an event, not just PAs (or subclasses) with their pId and all the code for replaying events etc. The second says that it should be possible to associate these non-state-persisting events with a topic(s), specifically to realise reliable distributed pub/sub. The third that when persisting events there should be a more general facility to include metadata beyond the persistentId or topic name just mentioned. > Couldn't you extend PersistentActor as something like TopicEnricher and > make it's enrich method call persist? I see your need, but I think it's > enough out of the scope of ES that it is probably more application specific. > Extending PA would mean the actor has all the machinery to save and replay events specifically for a persistenceId when the actor may just want to add events to the event stream (as a part of CQRS). I suggest a trait would be adequate (but I am not sure). In my understanding event sourcing is primarily about aggregate persistence (saving state incrementally and rebuilding from that), which PersistentActor does well. CQRS usually seems to have an event stream from write to read whether or not event sourcing is used. Cheers, Ashley. -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
