Example, I'm developing a simple Python project that uses database. Need db service that I don't want to manage. Also, want to auto scale
Ask HN: How do you deploy your weekend project in 2022?
1–10 of 50 posts
Re: Ask HN: How do you deploy your weekend project in 2022?
#2Re: Ask HN: How do you deploy your weekend project in 2022?
#3Re: Ask HN: How do you deploy your weekend project in 2022?
#41) CloudRun ( run a Docker container exposing a port to the web )
It can autoscale.
2) CloudSQL ( managed Postgres and some other SQL choices )
We faced some friction getting the two connected. CloudSQL is available on an IP address, then in our code we have PSQL library which we specify the IP address to. The complication was that CloudRun instances can't actually "see" the CloudSQL. After navigating the GCP documentation, website, and some trial and error, it magically worked.
It was painful to get setup but it's running smooth now.
Re: Ask HN: How do you deploy your weekend project in 2022?
#5Managed DB: Railway, Render, Planetscale, Supabase
Re: Ask HN: How do you deploy your weekend project in 2022?
#6I haven't had a problem scaling because its all lambda so it scales nicely and is all self contained for functions.
I've used DynamoDB with is even simpler but if you think you'd ever want something relational or more familiar I would definitely go with Postgres RDS
Re: Ask HN: How do you deploy your weekend project in 2022?
#7At this point I just have a template to do it and reuse it in my various projects.
If I don't need a server, I usually just use the Serverless framework.
Re: Ask HN: How do you deploy your weekend project in 2022?
#81. If DB is needed - Google App Engine with Datastore (default) or Firestore
2. If no DB - Google App Engine (default) or Cloud Run