Live data from Hacker News

The architecture behind a one-person tech startup

anthonynsimon.com

281–290 of 334 posts

Re: The architecture behind a one-person tech startup

#281
post #59

Earlier quoted context omitted.

You can use any normal DB migration tool. For k8s, I put the app's readiness probe to false, run the migrations and then toggle the probe back to true. Here are some migration libraries: Go - https://github.com/golang-migrate/migrate Node - https://github.com/salsita/node-pg-migrate

I wonder what happens during blue green or canary deployment? if your migration changes database schema in a way that affect previous version negatively? is it even possible to do blue/green deploy if your schema changes radically?

It's fine if you make the changes backwards compatible a version. And in general, any change can be done in a backwards compatible way (although it can be a PITA)

Re: The architecture behind a one-person tech startup

#282

Earlier quoted context omitted.

Netlify free tier is pretty great, giving custom DNS and support for NextJS build was so simple. Heroku is similar, but Netlify is at least equally simple I found. Maybe someone else can shed more light on differences.

Aren't they different products though? Netlify is front end only while Heroku is full stack.

Well if you're deploying a static site they are the same, but that's still not the whole picture. They have support for lambda style "serverless" functions and Fauna DB[1], and can bundle functions with apps automatically for some tools like Next.js to do server side rendering for dynamic routes[2]. So while they don't support quite the same level of custom stacks, backends and DBs, they do provide tools that enable full stack applications.

[1] https://www.netlify.com/tags/database/

[2] https://www.npmjs.com/package/@netlify/plugin-nextjs

Re: The architecture behind a one-person tech startup

#283

Earlier quoted context omitted.

Digital Ocean is fantastic.

Would you mind being more specific? Is it the price / functionality balance that makes DO fantastic?

Price and functionality. It’s incredibly easy to use, unlike AWS and Google Cloud. The downfall is that you have a bit less control, but that’s never been an issue for me. Their servers have been incredibly reliable, they offer managed databases now, load balancer, S3 compatible Spaces. Everything I’ve needed so far, predictable and affordable pricing, and none of the complexity.

Re: The architecture behind a one-person tech startup

#285
post #73

The author almost seems to apologize for having a django monolith. But it's worth realising that one purpose of code organisation in larger companies is to mirror the team organisation. That's a constraint on code that can interfere with the best technical architecture. You can do better with a monolith in a one-man team!

> one purpose of code organisation in larger companies is to mirror the team organisation.

That's one of the weirdest reasonings I've ever heard. What happens when you have to downsize that team? But yea, shoehorn each individual contributor to say a single microservice out of a hundred and you'll wonder why your software doesn't develop fast - everyone's too tired trying to understand what each abstraction does that is meaningful so they spend less time understanding how the pipeline works and how to integrate into it.

Re: The architecture behind a one-person tech startup

#286
post #207

This is probably not the best place to ask this question, but as a solo founder or just to reduce costs/time are there some standard free software packages that are used when creating sites? For example most sites need a user sign up mechaism, a authN and authX mechanism to gate access to different pages. Are there open source projects that provide this? Or do site owners develop these from scratch every time?

a few to get you started: - https://github.com/vercel/nextjs-subscription-payments - https://bedrock.mxstbr.com/

Any personal experience with Supabase? Looks cool

Re: The architecture behind a one-person tech startup

#287

Earlier quoted context omitted.

Data is passed through -unencrypted- those edge locations though.

What data exactly? They serve HTML, CSS, JS, and images. The actual data is transmitted using AJAX requests towards an HTTPS API in EU.

Ah, so they're not using CF on those. Got it, that's fine then. It's rare with Cloudflare to see them used purely for static assets.

Re: The architecture behind a one-person tech startup

#288

Good on them. I wish I could use K8 as effectively as the author, it is an incredibly overwhelming list and an impressive range of knowledge. In my situation I am finding the lack of consistent environment a reoccuring issue, the developer environment does not match production. However I kept it simple with Google App Engine Standard and Flex environments, I found the deployment process simple and was enough for me (…

Have you considered Nix and NixOS? It also has a high learning curve, but it provides better reproducibility.

Re: The architecture behind a one-person tech startup

#290
I was just reading the beginning of Arvid Kahl's Zero to Sold. He recommends using a tech stack that you already know and have lots of muscle memory with. I couldn't agree with him more. [1]

This tech stack looks over-engineered upon first glance, but I don't know much about the author or his product.

I use Kubernetes a fair bit whilst developing OpenFaaS and teaching people about K3s, but there is a whole world of development teams who aren't prepared to consider it as an option. One of the reasons we created "faasd" [2] (single-node OpenFaaS) was to help people who just wanted to run some code, but didn't want to take "Kubernetes mastery 101"

For a small app using a managed service like Cloud Run plus some cloud storage should get you very far. I saw that Heroku is still popular with the indie community, with the author of Bannerbear getting a lot of value from the managed platform.

[1] https://thebootstrappedfounder.com/ [2] https://github.com/openfaas/faasd

Post reply on HN