title: Microservices communication JDBC SQL VS REST
body: <p>which is the best way between these two approches that allow two microservices to exchange data</p>
  
  <p>1- Via Rest call.</p>
  
  <p>2- Each microsevice expose its related data as a database's view ,so that it can be reached by other microservices using Spring JDBC template or JPA.</p>
  
  <p>Notice that each microservice has its own (private) tables in the same database schema.</p>
  
  <p>Thanks,</p>