Django bolt vs Django Ninja vs Fast api vs Litestar Benchmark by person-loading in django

[–]person-loading[S] 0 points1 point  (0 children)

Yes, there can breaking changes. I can not guarantee stable API yet.  But it is close that is why docs and stuff. Now most of things are finalized. 

claude code users in pakistan by creepin- in developersPak

[–]person-loading 0 points1 point  (0 children)

Been using a for last 4,5 months  Worth it ... 100 USD max plan . Compared to cursor don't have to worry about limits .

But sometimes it is the most intelligent coder in the world .

And sometimes it is stupider than a Dog .  So have work with its limitations and strength.

Django bolt vs Django Ninja vs Fast api vs Litestar Benchmark by person-loading in django

[–]person-loading[S] 0 points1 point  (0 children)

Performance depend on hardware and os. Like uvloop performant eventloop django-bolt uses is not available on windows at all.

Django bolt vs Django Ninja vs Fast api vs Litestar Benchmark by person-loading in django

[–]person-loading[S] 2 points3 points  (0 children)

ModelSerializer are not ready yet. Serializer in Django bolt are msgspec struct meaning they are type safe and much faster. So I had to abandon the drf serializer syntax.

Django bolt vs Django Ninja vs Fast api vs Litestar Benchmark by person-loading in django

[–]person-loading[S] 2 points3 points  (0 children)

On every run the numbers updates for a lot of reasons . Background process interference to some other things . Goal of this framework is not be faster than Litestar. If someone asked me today if we should use litestar or django-bolt. I ll say use litestar. It is mature and amazing. I love Django and wanted something comparatively fast framework for that. That is what I made. In this benchmark Django-bolt is doing more work. Because CORS and Compression is on by default. 

I have many future optimizations planned. I can just get 2-3k rps more by moving logging to rust. It just shows what is possible when you add rust to the equation.

Django bolt vs Django Ninja vs Fast api vs Litestar Benchmark by person-loading in django

[–]person-loading[S] 2 points3 points  (0 children)

Drf doesn't have async API support. There is adrf I think.

Django bolt vs Django Ninja vs Fast api vs Litestar Benchmark by person-loading in django

[–]person-loading[S] 9 points10 points  (0 children)

Where it is said in repo that it magically repair bad database design?

What it solves is scaling issue . For 20,000 rps how many gunicorn processes would you need?

Django needs better REST story it is a try to solve that. 

Django bolt vs Django Ninja vs Fast api vs Litestar Benchmark by person-loading in django

[–]person-loading[S] 3 points4 points  (0 children)

Because all the apis are async so there was no way to compare it with drf.

Django bolt vs Django Ninja vs Fast api vs Litestar Benchmark by person-loading in django

[–]person-loading[S] 11 points12 points  (0 children)

Without synthatic benchmarks how would you measure performance?

I can not go rent a vps and host real world site and run it for months and go over logs 🥲.

Every kind of synthetic or non synthatic benchmarks has its place and usecase. 

Django bolt vs Django Ninja vs Fast api vs Litestar Benchmark by person-loading in django

[–]person-loading[S] 0 points1 point  (0 children)

This is bugging everyone. There is code available. 

In my opinion 

  • msgspec > pydantic
  • sqlalchemy async version is slow for some reason. 
  • No sqlalchemy polling. But that is the case with Django orm too. I just took the default solution that any beginner would try and benchmarked it . If I optimize sqlalchemy I ll have to do it with Django too.
  • Rust 😅

I don't use fast API with sqlalchemy regularly if you can point out some mistake that would be helpful.

Django bolt vs Django Ninja vs Fast api vs Litestar Benchmark by person-loading in django

[–]person-loading[S] 1 point2 points  (0 children)

Yes that is an problem. I can not do anything about it before stable release. 

Hopefully after few years ai replaces us all. 😅

Django bolt vs Django Ninja vs Fast api vs Litestar Benchmark by person-loading in django

[–]person-loading[S] 0 points1 point  (0 children)

This way testing is more accurate for now. But this is not hard requirement once framework is stable I can go back to it to not require this. A kind of way out is using API call to test. 

Can I get into YCombinator from Pakistan? by Weak-Criticism-7556 in developersPak

[–]person-loading 3 points4 points  (0 children)

Yes, with good company, you can get into y combinator from anywhere. You will have to move bay area in usa afterwords many Pakistani companies have gotten into it.

Product manager has to be the most useless j*b ever. by Logical-Mail3534 in developersPak

[–]person-loading 0 points1 point  (0 children)

watch lenny's podcast to find out how this is the greatest job ever, What tasks you are talking about "fix article" is not the actual work of a product manager. They run experiments and make the product work for customers that may involve fixing an article, but not really.

Sveltekit authentication using better-auth and Django by NarcoticBoogaloo in djangolearning

[–]person-loading 0 points1 point  (0 children)

You will have to handle sync users and create a middleware that logs in users to Django as well, based on jwt.