Axon 3.1 introduces the concept of Query Handler / Query Bus. The documentation describes how to configure them (https://docs.axonframework.org/v/3.1/part2/query-handling.html), but omits the purpose of them.
My naive interpretation of the view part of the application was to create an event listener and to construct some view projection based on events.
This can be in-memory (Hashmap?) or persistent - from H2 DB to real JPA data store with a RDBMS behind.
If I want to query this view side, I would put a Repository (e.g. a JPARepository) and expose the read methods.
Could you explain what are the Query Handlers used for and how they match into this picture?