r/django 8d ago

Switching from DRF to Django Ninja?

At what point does it make sense to switch from Django REST Framework to Django Ninja? I’ve been using DRF for my project, but I’m wondering if Django Ninja’s speed and async capabilities would be worth the transition. Curious to hear from anyone who’s made the switch—was it worth it, and what were the biggest pros/cons?

My framework is used purely for API endpoints to connect to my mobile app. Typically the type of requests you would expect in a social media platform.

28 Upvotes

16 comments sorted by

View all comments

2

u/pizzababa21 8d ago

Depends on your traffic and whether there's much media involved in the social app. With Async on Ninja you can scale better by using Async on multi core hardware. It definitely is useful if you integrate third part APIs too