Report this

What is the reason for this report?

Better Option for Angular / Node JS / PostgreSQL

Posted on March 30, 2020

I created 2 option for hosting angular/nodejs/postgresql application. The app is a simple POS system that will probably be used by 2-3 persons.

Here is the of the options I made. Check page 2 for the prod environment.

https://docs.google.com/document/d/1O7cCFFLfoPTAdgxflrjOrRsIfM1GG3aeqkPLjcu_5Fk/edit?usp=sharing

My goal is for me to never be bothered again after I handover the application to the client.

I’m thinking if the standby node for the database is a bit overkill. I’m also thinking if a Kubernetes cluster with 2 nodes is better rather than using 1 droplet.

Please let me know which you think are lacking or overkill.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

For a small-scale application with 2-3 users, setting up a Kubernetes cluster or multiple Droplets might be an overkill. Also, it might be challenging for your customer to maintain the app if they don’t have experience with Kubernetes already.

Based on your requirements, it seems like you’re looking for a solution that’s easy to maintain and manage. In this case, I would recommend considering DigitalOcean’s App Platform and Managed Database service.

DigitalOcean App Platform: This is a Platform as a Service (PaaS) offering from DigitalOcean. With App Platform, you can deploy and scale applications quickly without managing any infrastructure.

  • Ease of Use: Deploying an application is as simple as pointing to your GitHub repository and configuring a few options.
  • Automatic Scaling: The platform can automatically scale your application up or down based on the load.
  • Managed Services: App Platform takes care of infrastructure tasks such as operating system updates, security patches, and server management.
  • Built-in CI/CD: Automatic builds and deployments whenever you push to your branch.

DigitalOcean Managed Database: This is a fully managed database service. You can choose different types of databases including PostgreSQL.

  • Maintenance Free: DO takes care of maintenance tasks like updates, backups, and scaling.
  • High Availability: The service offers automatic failover, meaning if the primary node fails, one of the standby nodes will automatically become the primary node, ensuring your application is always up.
  • Secure by Default: Your database runs in your account’s private network, which isolates communication at the account or team level.
  • Daily Backups and Point-In-Time Recovery: You get automated backups and can recover data to any point within the previous seven days.

A single instance of each of the App Platform and Managed Database service should be sufficient to handle your needs while also keeping maintenance to a minimum for your customer.

Best,

Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.