jmalloc / ax

A message-driven application toolkit for Go. [EXPERIMENTAL]
MIT License
9 stars 3 forks source link

Message with invalid (empty) aggregate ID seems to be blackholed. #122

Closed jmalloc closed 6 years ago

jmalloc commented 6 years ago
RUN_ARGS="open-account" make banking
jmalloc commented 6 years ago

This is the expected behavior of the by-field direct mapper. If the mapped field is empty, the message is not routed to any instance.

The solution, insofar as having such a message produce an error rather than being ignored is to implement a Validate() method on the message.