Ask HN: What would be your stack if you are building an MVP today?
459 pointsSpecifically the backend. I'd love to hear your reasons. Do you keep one eye on what the stack would be post MVP?
1. Old schoolish (VPS - Maybe DO, Django/Flask/Rails/Remix/Next with postgres)
2. Supabase etc with JS/TS on either side of the network
3. Lambda/Cloud functions with Firebase/Dyanamo DB/Cosmos DB etc
4..n. What else and why?
Comments (723) 347 threads
Earlier commentsWhen I compared the existing frontend backend stacks like Svelt, Next, or a Go, Rust, whatever backend + React frontend, the amount that’s in Rails out of the box is just not even close to the rest. From ActiveRecord to secret management, a dynamic ecosystem of gems for almost anything and much more, choosing another stack just didn’t make sense.
Believe me when I say I really wanted to choose React for frontend because of its community and ecosystem but for an app with a backend that there is so much Rail does for you that you’d be spending weeks rebuilding with anything else.
A caveat is that this is Rails + Hotwire and Turbo + ViewComponents that makes it a no brainier. The old school Rails MVC would have been a harder sell
I have a moderately complex project, which is built using Next.js but it uses Yarn workspaces (for code sharing) and Docker (for deployment) but I waste a lot of time putting out fires w.r.t this setup than actually building features. I am thinking about doing away with Docker and Yarn 2 to keep the setup simple.
HTMX has been very promising, I have bumped into one or two bugs with it but there are always simple workarounds due to the sheer surface area of HTTP+HTML.
Postgres for great JSON support, keeping some stuff out of rigid schemas is critical for developing MVPs.
Frontend: If webapp needed, Typescript + React. If just html templating, probably Yew
Database: PostgreSQL. Move to Yugabyte or Scylla if scale becomes needed.
Streaming/event driven architecture: Fluvio
Cloud: AWS
Servers: ECS/Fargate to start. Move to Kubernetes as needed
IaaC: CDK
Repository: Github Monorepo
CI/CD: Unsure.
Style: Monolith API server. Separations will be made through Rust modules and interfaces. For anything that requires dedicated CPU/threads, those will be moved to separate services to be called by the monolith via gRPC.
All comments shown.
Couldn't load more comments. Check your connection and try again.