Live data from Hacker News

Ask HN: How do you deploy your weekend project in 2022?

news.ycombinator.com

1–10 of 50 posts

Re: Ask HN: How do you deploy your weekend project in 2022?

#4
We just posted our first Show HN ever with your exact same setup, but s/python/go. If you're running it in Docker, then this might work for you too:

1) 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?

#6
I like Serverless on aws. It's super cheap (free tier), and even the database in RDS has a free version for Postgres. Front end I like to deploy using Next.js and Vercel or Netlify.

I 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

Post reply on HN