简体   繁体   中英

Breaking up existing rails application into UI and API

We have an already working rails application but the UI and API is built into 1 application. The problem we are having is that when anything happens to the app for example if it goes down, it affects API and GUI. 3rd party systems can't communicate with the API. We are trying to prevent this. These are my options so far:

option 1: deploy the same application to 2 different ports using puma and unicorn

option 2: have 2 different repos for API and GUI and deploy them separately on the same server

Is there a better way where we can have 1 repository hosting both API and GUI and when GUI goes down, API isn't affected?

Thanks I figured it out. Keep the same codebase and deploy unto 1 server that will serve as the API and one server that will serve as the GUI and a 3rd server being the mysql server

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM