title: How to develop billing system in jhipster microservice application
body: <p>I am currently working on a microservice based application which now includes a gateway, a uaa, two micro services.</p>
  
  <p>The application use password grant to get access and refresh token, once authenticated, all microservices will be awared.</p>
  
  <p>Now I want to add billing information for each user, e.g. after purchase some product (one month or one year), he/she will be allowed to access the two micro services.</p>
  
  <p>I have three options now:</p>
  
  <ol>
  <li>store billing information in uaa mysql table (jhi_user), when request coming in to access the two services, use feign client to get information from uaa to microservice.</li>
  <li>develop another billing microservice, use feign client to get information from the microservice.</li>
  <li>copy billing information to each of the two microservices (store in their own databases).</li>
  </ol>
  
  <p>I want to know which one is better. Another question is, if choose from 1 &amp; 2, there will be a lot of communication (check billing information for each request) among microservices through restful API, that will impact the performance?</p>
  
  <p>Appreciated for any idea.</p>