title: How to query in a Event Driven Microservice architecture?
body: <p>Let suppose the following simple UC based on a CQRS architecture:</p>
  
  <p>We have a backend managing a Business Object, let says a Movie.</p>
  
  <ul>
  <li>This backend is composed of 2 Microservices: a CommandManager (Create/Update/Delete Movie) and a QueryManager (Query Movie)</li>
  <li>We have a frontend that offer a web page for creating a new Movie and this action lead automatically to another web page describing the Movie. </li>
  </ul>
  
  <p>A simple way to do that is:</p>
  
  <ul>
  <li>A web page collect movie information using a form and send them to the frontend.</li>
  <li>The frontend make a POST request to the CommandManager</li>
  <li>The CommandManager write the new movies to the datastore and return the movie key</li>
  <li>The frontend make a GET using this key to the QueryManager</li>
  <li>The QueryManager looks for the Movie in the Datastore using the key and return it.</li>
  <li>The frontend deliver the page with the Movie Information.</li>
  </ul>
  
  <p>Ok, now I want to transform this UC in a more Event Driven way. Here is the new flow:</p>
  
  <ul>
  <li>A web page collect movie information using a form and send them to the frontend.</li>
  <li>The frontend write a Message in the BUS with the new movie information</li>
  <li>The CommandManager listen the BUS and create the new movies in the datastore. Eventually, it publish a new message in the BUS specifying that a new Movie has been created.</li>
  </ul>
  
  <p>At this point, the frontend is no more waiting for a response due to the fact that this kind of flow is asynchronous. How could we complete this flow in order to forward the user to the Movie Information Web page? We should wait that the creation process is done before querying the QueryManager. </p>
  
  <p>In a more general term, in a asynchronous architecture based on bus/event, how to execute Query used to provide information in a web page?</p>