Rather than sending a Map and delegating responsabilities to consumers to figure out what type of event it is based on key values (which is expensive), the library should handle it and serialize it into a corresponding record. Many approaches are possible but first state events need to be mapped out.
Rather than sending a Map and delegating responsabilities to consumers to figure out what type of event it is based on key values (which is expensive), the library should handle it and serialize it into a corresponding record. Many approaches are possible but first state events need to be mapped out.