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 comments1. you get a lot of out of the box rails like glue jsut like rails or django but the runtime perf is way faster. you can get away without even using caching in prod for awhile
2. supabase is written in elixir
3. lambda could functiosn have their place but loc you in to a cloud provider. I can move my elixir mvps accross providers with no issue and I won't get any surprise bills.
> pubsub and websockets which are important for any new kind of software product
... not really. By far most people (probably by a huge margin) are doing fine building 1000s of new products per week without either those things.
Further I think you are right.
I'm a backend/infra developer, and I had been dreading having to learn a new front end framework because the work flows just look hideous. This looks like I can sidestep most of that problem entirely.
phoneix channels -> django channels and actvecable but phoenix's version is much more powerful
liveview -> livewire, hotwire. both are copies of liveview but neither of them are as powerful since only liveview can spinup a persistent thread PER user allowing active stateful sessions that can push and recieve events from the client.
Livewire has started at pretty much same time as LiveView and AFAIK both projects influenced each other over the years. Both authors are in contact and the frameworks are quite a bit different because Livewire (in PHP) does everything over http so it has to employ different tactics than LiveView that can run over websockets.
Hotwire on the other hand is from Basecamp who have been using this approach forever. They just packaged their experience into a framework they released. Theoretically hotwire is the oldest of the three.
I am saying this because i don't think you need to use LiveView. All of them are super productive and are used for many real projects. They are just a bit different and better at different things.
2. Supabase for Postgres and Authentication.
3. Astro as a framework for front-end, deployed on Vercel, running in Hybrid mode.
With all of these in-place, I can extend my existing components to accommodate any needs. It scales very well in the beginning as I move very fast, and anecdotally scales very well regardless of size.
The only missing parts here is support for timed jobs, but that can probably be done with Fly.io machines in the future.
Clojure's not the easiest thing to get into, the stability and documentation and libraries are great.
All comments shown.
Couldn't load more comments. Check your connection and try again.