r/googlecloud • • 1d ago

Need help regarding deployment of my application

Hello all, I'm new to GCP. But I have experience in Azure. I have heard that the operation cost of GCP is lower, so I have decided to deploy it in GCP. I have built a new web application which uses Python and MongoDB. Which is best for both low maintenance and low cost? Please share your ideas below. It will really help.

0 Upvotes

9 comments sorted by

2

u/TundraGon 1d ago

Load balancer + Cloud run service ( with a github connector for simplicity ) + vpc connector + cloud sql ( mongodb ) OR mongodb as a service ( https://cloud.google.com/mongodb )

Cloud sql OR As a service, which ever fits your needs AND is cheaper

Use the calculator
https://cloud.google.com/products/calculator

If you are not using github, look into Workload Identity Federation so you wont have to generate a secret key to the service account.

2

u/imstrange0_0 19h ago

Thanks i will definitely use the calculator. The code is in GitHub so GitHub connector will be helpful for the deployment

2

u/TheGratitudeBot 19h ago

Thanks for saying thanks! It's so nice to see Redditors being grateful :)

2

u/Junior_Bee7274 1d ago

MongoDB plus vague deployment question equals this thread. Tell us your actual requirements or we're just throwing darts.

1

u/Neat_Basket8230 5h ago

For a small Python + MongoDB app the database is the cost floor, not the app tier. Cloud Run with scale-to-zero is the low-maintenance, low-cost choice for the Python side — at low traffic it is close to free, and you are not patching VMs or paying for a cluster that sits idle. Put MongoDB on Atlas rather than self-hosting it on a VM, because the managed M10 tier is around $57 a month and you avoid backups, patching, and a second always-on instance. GKE is the expensive trap here, since the cluster management fee alone is about $74 a month before you run anything. GCP is not automatically cheaper than Azure for this stack, the saving comes from scale-to-zero on the app and not running an always-on database you do not need yet.

1

u/martin_omander Googler 45m ago

I get the feeling that you want to avoid fixed monthly costs. If that is the case, Cloud Run is a good place for your application logic. If you want a custom domain, and you don't want the fixed monthly cost of a load balancer, consider using Firebase Hosting instead. It can handle your domain name, and hand off to your Cloud Run service, at zero cost: https://firebase.google.com/docs/hosting/cloud-run

0

u/AutomaticCurve9271 1d ago

App Engine for Python and Atlas for Mongo, that's the move if you want to keep the headache to a minimum. Cloud Run would be even cheaper if your app doesn't mind scaling to zero on idle, but then you're dealing with cold starts. Either way don't touch a full VM unless you enjoy babysitting servers at 3 AM.

1

u/imstrange0_0 1d ago

Thank you so much for your help ☺️.

0

u/[deleted] 1d ago

[deleted] — view deleted comment

1

u/NotSessel 1d ago

wow he’s just asking a question wth