tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

Request: Django DRF vs Django Ninja vs Django with celery

Open zakimimit opened this issue 1 year ago • 6 comments

Hello, I Hope we can see :

-Django DRF vs Django Ninja -Django with celery vs Nodjs or Go

And you can chose the best combination of Django Ninja with celery vs Nodjs or Go.

This will be fair comparison

Thank you for the valuable content

zakimimit avatar Sep 25 '24 23:09 zakimimit

I'll be using a new, improved Ruby on Rails application to test with Django. If you have experience, would you @zakimimit mind looking into how Django can be improved? For example, unused middleware can be removed from Django.

PR with improved Ruby on Rails - https://github.com/antonputra/tutorials/pull/335 Original Django app - https://github.com/antonputra/tutorials/tree/main/lessons/209/mydjango

antonputra avatar Nov 04 '24 11:11 antonputra

First of all, thank you for accepting my suggestion.

1 - Use Django Ninja to make API calls asynchronous. 2 - You can use task queues like Celery. 3 - Then combine them and check the result. 4 - Compare the results of 1-2-3 with Ruby on Rails and also if you can with Nodjs.

Otherwise, I am not an expert in test configuration

zakimimit avatar Nov 04 '24 13:11 zakimimit

Okay, thanks. I was wondering about async Django in the past as well, but it looks like it's not officially supported, only available through third-party packages.

antonputra avatar Nov 04 '24 16:11 antonputra

Django >5.1 now supports asynchronous. (https://docs.djangoproject.com/en/5.1/topics/async/#asynchronous-support) But it is poorly designed, according to several reviews.

This is why I told you to use Django Ninja. (https://django-ninja.dev/) You can check out some use cases and benefits of using Django Ninja.

zakimimit avatar Nov 04 '24 16:11 zakimimit

@zakimimit got it

antonputra avatar Nov 04 '24 16:11 antonputra

Hello @antonputra ,

I found an article that might be it will be so helpful

https://jonathanadly.com/is-async-django-ready-for-prime-time

I hope you make the comparison between Django vs Nodjs then Django vs ruby or Nexjs

My best regards

zakimimit avatar Nov 16 '24 19:11 zakimimit