title: How to communicate from REST to message queue
body: <p>how is that possible that a REST Microservice can communicate with another Microservice which is a hybrid, which means he can communicate with REST and with a Message Queue. For Example an API-Gateway. For the outside world, he is able to communicate with an App, Mobilephone via REST but the communication from the backend is via message queue.</p>
  
  <p>Use case:</p>
  
  <p>My homepage wants to get a Vehicle from the database. He asks the API-Gateway via a GET-Request. The API-Gateway takes the GET-request and publishes it into the message queue. The other Microservice takes the message and publishes the result. Then the API-gateway consumed the result and send it back as a response. </p>
  
  <p>How can I implement it? Am I using Spring boot with Apache Kafka? Do I need to implement an asynchronous communication?</p>
  
  <p>(Sorry its german)
  <a href="https://i.stack.imgur.com/Qs7Zi.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qs7Zi.jpg" alt="enter image description here"></a></p>