<p>Been working on a web app with a simple database model that only needs CRUD operations, figured MongoDB would be perfect for it. The most important constraints of the project is that it be able to scale from a small amount of users to a large amount. I’ve been looking at the cloud launcher and I’ve noticed that the most popular MongoDB solution advertises a cost of ~$350/mo. This is a surprisingly large amount that makes me consider using cloud sql for my database instead. Is there a better way to deploy MongoDB to GCP that’s more fitted to my use case? I’ve been reading about automatic scaling with kubernetes but I can’t find anything about price. Any and all advice is greatly appreciated </p>

<p>I have lately been working on a similar solution.</p>

<p>GCP announced that they don't charge for Kubernetes cluster management but only for resources used by it (instances, network ...):
<a href="https://cloud.google.com/kubernetes-engine/pricing" rel="nofollow noreferrer">https://cloud.google.com/kubernetes-engine/pricing</a></p>

<p>In general, databases are high maintenance (data mounts, backups, migrations...), so I would not start running Mongo on Kubernetes right away. You could get there but it will be more complicated than deploying your web app on Kubernetes.</p>

<p>Better to use MongoDB as a service that supports GCP (e.g. <a href="https://www.mongodb.com/cloud/atlas" rel="nofollow noreferrer">MongoDB Atlas</a>), I have done so myself and see a few other companies do that.
If you scale gradually you should be able to control your costs.</p>

<p>The web app itself should be easy to deploy and maintain on Kubernetes.</p>
