Hello everybody!
First of all, thanks to everyone involved in development of the Axon Framework, which immensely helps with developing event sourcing-based applications in Java! I’m working on an issue that requires me to receive incremental updates on state of certain entities - a perfect use case for subscription queries. The consumer of these updates is not interested in any previous state of those entities and only wants to receive updates from the point of subscription.
As far as I’m concerned, there’s no way in Axon to create a subscription query without providing initial response type. But even if I do it, the QueryUpdateEmitter won’t emit any update messages for my subscription unless I implement a no-op @QueryHandler for this subscription query, which is (as well as initial result type parameter) obviously redundant in this case and makes the code harder to understand.
That makes me wonder what was the reason for the Axon team to make initial result of subscription queries mandatory? Or is it just a low priority task for you to do in the future? Or maybe I just didn’t figure out how to make such queries without creating an unused @QueryHandler?
Thanks in advance