Django Rest Framework API #27 / How To Schedule a Task | Function To Improve API Performance.

preview_player
Показать описание
In this tutorial you will learn:
- How to Schedule a function / job in Django REST API.
- How to execute a function using Scheduler in a specific interval.
- How to optimize API performance using Scheduler.
- How to use requests to get data from external API.

Music Channel : @tuningthecode

Source Code:

Scheduler Documentation:

How to use THREADING to improve API performance:

ModelViewSet and Routers With Serializer:
Рекомендации по теме
Комментарии
Автор

Hello everyone, Please use weather_object.save() instead of weather_data.save() in order to save the new object that has been created.

codeenvironment
Автор

thank you so much, i was lose a lot days on the way to configure a job on django, your video saved my life

viricoria
Автор

You are the absolute best. Thanks for this video. I spent hours looking into django-q, celery, but this is way better and easier to execute, plus not a single warning about compatibility issues with other libraries.

giuseppe
Автор

Thank you for this video.
Can you please show how to connect this in heroku.

I tried it but it's not working

DanielAzubuine
Автор

thanks for the tutorial ! Very well explained ! thank you very much !

bahnimanborah
Автор

Thank you very much for your video, it helped me a lot

ernestofigueredo
Автор

thank you for this video, very useful

nailahadhwaalhafi
Автор

You sir, are a true life saver! Thank you.

samyakjain
Автор

after getting frustrated from learning scheduler and celery, i resorted to this

AtifShafiinheritance
Автор

Hi thank you so much for this wonderful video
Can you tell me how to get data periodically
I mean from api i have taken out first 500 entries and then i want to schedule after 1 min next 500 entries i can get
Please help

ShivamSharma-igvp
Автор

Can we create an api using django-rest framework that will connect to the database (given by url parameter )and query
the given table ???

deepanshuaggarwal
Автор

what if the function you want to schedule expects a request parameter

koech
Автор

how to perform job scheduling in distributed server because every server will run the same scheduled jobs.

DetectiveRyku
Автор

In the views.py, inside save_weather_data function shouldn't it be weather_object.save() instead of weather_data.save()???

firozhasan
Автор

I don't know this way will get trouble when you configure uwsgi work in multiprocess mode

yangjack
Автор

excuse me sir, why my objects.create won't save data from api url to database? can you help me please

ivanzaqqa
Автор

Scheduler stopped working in 5-10 minutes after host on iis..

dipteepatel
Автор

I followed the tutorial and in my case job executes twice, why ???, Any solution on that ?

dhisimdhisim
visit shbcf.ru