title: Dao as a Seperate Module in Monolithic Considering Extendable to microservice in future
body: <p>I am actually creating one project where we are having 2 or more database. I will use Spring Boot. I would like to know:</p>
  
  <ol>
  <li><p>Why do we have Client of the Gateways while code as we already have REST endpoint in server (May be i am wrong )?</p></li>
  <li><p>My project currently will be monolithic but I want to make it possible to change to a microservice architecture in the future. Should I have the DAO as separate module which will be dependency for other module considering I can have more than one database (RDBMS and NoSQL)?</p></li>
  </ol>
  
  <p>Hope I am asking work question, but I am confused right now, while starting the project.</p>
  
  <p>Thanks in advance</p>