title: Spring Boot - talking between two applications
body: <p>I guess this is pretty basic stuff, but couldn't find anything interesting. </p>
  
  <p>Let's say that I have a large CRM/ERP Spring Boot app. I will call it "app A". It's used only internally on a company's intranet. For security reasons, it would be best if it would not be exposed to publicly. </p>
  
  <p>Now, I want to build another, much smaller app, like blog or ads wall, call it "app B".  The only purpose of this app is to expose a small part of data managed by A to the public, in the form of a blog or ads wall. </p>
  
  <p>Of course A uses some sort of database engine, covered with Hibernate, and has some services and so on. The tricky part is that I'd like to not use Hibernate in app B and get data only from app A, getting them remotely (they both could be deployed on the same machine with different domains), using services that A has. </p>
  
  <p>In general my question is; is this is a good idea, and also, even more important, how to do that? I know about existence of Facade Pattern, I know that you could make a REST API and use json. But is there a better way? I'm not that deep into Java as I would like to be. Any suggestions will be appreciated. </p>