title: How to deploy microservices on Heroku
body: <p>I have read a lot about microservices, and would like to build my app with that approach. What I know so far is that I nead some services like:</p>
  
  <ul>
  <li><strong>load balancer</strong> - to deal with every request, and push it forward to another services</li>
  <li><strong>authorization service</strong> - to authorize my users</li>
  <li><strong>database</strong> - for my microservices. I would like to use one instance of DB with different schemas for every service.</li>
  <li><strong>service A</strong> - for functionality A</li>
  <li><p><strong>service B</strong> - for functionality B</p></li>
  <li><p>etc. etc. etc.</p></li>
  </ul>
  
  <p>I found out, that Heroku is interesting place to deploy applications. My problem is that I completely don't understand they ideology. What I have done so far, is creation/registration of few "apps":</p>
  
  <ul>
  <li>my-app-auth</li>
  <li>my-app-load-balancer</li>
  <li>etc. etc.</li>
  </ul>
  
  <p>I see, that Heroku gives me some public hostname for every of that app, and this is where my concerns starts. Should I deploy my internal services with public hostnames? I don't think so. And here my question comes:</p>
  
  <p>Can anyone provide me some guidelines, how to deal with microservices on Heroku? How should i deploy them? How should I define my load balancer, and hook internal services to it? What is JHipster? Do I need it? How can I use it? Should I use Heroku tools (for example CLI) or can I stay with my gitlab repo? I can't find any point of grasp on the Internet, about that.</p>