DEV Community

Nick
Nick

Posted on

Deployment Options for SAAS App

I have a SAAS app and need to deploy it, but I'm unsure of the best options. I have some vague ideas but am curious to know what others think as I'm not that knowledgeable in this area, and don't know what's best cost-wise vs separation of concerns etc.

Requirement 1: deploy app and servers

  1. Front-end React app
  2. Back-end graphql server (the front-end queries this server and my server updates my postgres database) - graphql only exposes a single endpoint
  3. A stripe webhook server (that listens for stripe events and then updates my postgres database accordingly) - it must expose a single endpoint that Stripe can access
  4. A RESTFUL tracking server (that just listens for REST API calls and updates my postgres database) - exposes multiple endpoints

I also need to have a staging test server that I can push and test code changes to (where the URL is not accessible to the public) and a real production server (with public access).

Requirement 2: deploy my postgres database

I also have a Postgres database that I need my servers to be able to interact with, which also needs to run a daily stored procedure (that changes my database) and monthly script (that calls stripe APIs and changes my database).

Requirement 3: my app must access sensitive information

I also have a process.env file that I need to store somewhere safe and have my app be able to access the sensitive information.

I need to know how to deploy everything and satisfy all of the requirements.

What specific AWS deployment options do I have for everything? Any advice would be appreciated, thanks.

Top comments (0)