BUSINESS PROBLEM:
I received this MVP stack (Node/Nest/React) on AWS upon initial employment. However, we had 24x7 operation and could not afford downtime.
SOLUTION:
While at this company (confidential), we migrated to a load-balanced, highly available site spanning multiple AWS availability zones.
We also migrated from a MONGO document store to PostgreSQL to facilitate reports and automated our deploy with Terraform.
We did all of this without significant downtime or defects. We also maintained 70% automated unit test coverage with Jest. This was over the 2.5 years I worked for them.
EFFECTIVENESS:
This new architecture helped us with load, catastrophic problems, and quicker, less problematic blue/green deploys.
See below for architecture progression.