Infrastructure - acreid77/top-knowledge GitHub Wiki

We will use PaaS and DBaaS cloud services not to spend too much resources in deployment and maintenance. These kind of services are very handy for startups and MVPs. We will save money for DevOPs and DBAs. All of them have very user-friendly dashboards, scaling just by clicking one button, free plans - this means that application can be launched without spending a penny. Price estimations below heavily depends on the actual application traffic.

Heroku

Node.js and React/Next.js applications will be hosted on Heroku. Heroku has built-in CI/CD pipeline and auto scaling. It can automatically scale allocated resources up-to your limit if the website is having higher traffic than usual.

  • For the MVP we will need one Standard 1x dyno which will cost 25$ + 10$ for CI support per month.
  • For some millions of data entries after horizontally and vertically scaling our dynos we will need to spend around 500$ per month for Heroku. We will try multiple combinations of different dyno sizings and choose the best one. For example all combinations below cost 500$:
  1. 5 x (Standard 2x) + (Performance M)
  2. (Performance L)
  3. 10 x (Standard 1x)

heroku_dyno_pricing

MongoDB

We will use MongoDB atlas to host MongoDB database.

  • MVP atlas will be free.
  • For some millions of data entries it will cost around 115$ per month. We will choose GCP as cloud service provider, us-east1 as a region, 1,7 GB RAM and 80 GB storage.
    80GB will be more than enough to store all the MongoDB 'collections' and 'documents'.

atlas_pricing

AWS S3

  • AWS S3 will be completely free on day one.
  • For some millions of data entries if we estimate monthly image transfer to 20000 GB and total storage to 500 GB monthly pricing should be around 1800$.
    500 GB of storage will give us possibility to store 2.5 millions of data entries with a picture of size - 200 kb.
  • Transfer pricing
    transfer_pricing
  • Storage pricing
    storage_pricing

Mobile application publishing costs