This is not strictly about eventuate, so I apologize for asking here. I assume people here would have experience to answer this question. My problem domain has case classes that have many members, in 20s, and sometimes more, if you expand the nested structure (22 limit on case classes). What is a good way to model Events that will update these case classes?
1) Convert case class members to Option[original type], and then use a sparse case class instances as the update events? They can be serialized to json, and would not take much space(Since case classes define my domain, I do not want to convert all fields to Option, because now I need to write validators and lose type mechanism to provide that to me )
2) Use raw Json (play-json) objects and write custom updaters to case classes by parsing the event log json
3) use something like scala-records and model domain as records instead of case classes?
Most of the examples I see only use a basic "Person" class, with name, phone number and an address. I searched the gitter and tried to search stack overflow, but it is hard to describe the problem to get good search results. Thanks in advance...