Ask HN: What is the best back end framework in 2022?

10 points by deidei ↗ HN
Hey HN,

I want to build and ship a side project really quick. I'm wondering what is the best framework to build a backend fast in 2022?

Second I also want to know what is the best framework to build a backend in Python?

19 comments

[ 3.6 ms ] story [ 63.6 ms ] thread
Depends what the purpose is. Any number of frameworks will work; sounds like you already limited it to Python, so Django or Flask seems logical.
Just want to build a REST API really fast, I'm going to be building the frontend in React. I'm not really limited to Python but prefer it a bit over the others, I'd love to know about frameworks in other languages too.
Django gives basic web framework. Django rest framework gives rest api.

Pl use django spectacular for openapi compatible rest api. Will make feont end code gen easier.

Oops.. I intended to answer the original post and somehow answered @deidei. Consequences of trying to type on a phone I guess.. And that made the tone come out all wrong.
If your asking this question the answer is Django. There’s nothing else left that’s really being actively developed in the open source space and nobody wants to admit it.
I'm probably going to go with Django but I still want to know what people think about FastAPI?
Django/Flask will have 100x as many resources to help you than FastAPI will, given the nature of your question that's what your decision should be based on.

If you are interested in something outside of Python then Ruby on Rails also has resources in depth.

In order of shipping speed:

- The one you already know

- The one closest to the one you already know

- The new hotness everyone is talking about

I kind of disagree on the last one, or at least there is a huge step from the second one to it.

I've used next.js for a project which I think qualifies as the new hotness. Once I had to add translations, authentication and do some authorization checks, and make all of this work with SSR, it became a hell of a nightmare and I regretted it so much.

Oh, the list is definitely not linear.

My first side-project I spent several days trying to figure out how to use mongodb with Node, only to give up and just use what I already knew (Django + postgres). These days I build everything with Node, but I learned how to use it at work first.

(comment deleted)
NextJS
LOL

Nextjs is to a backend framework what a fly is to an airplane.

If fly's can fly, why you need more?
For me the quickest and most robust way to build anything web related, as a single dev or as a small team is Laravel + Unpoly + tailwind. That's a real full stack: from authentication, translations, background jobs, componetized views, ajax updates and form submissions, etc, etc.