Тёмный

A faster Django response with Redis cache 

Django road
Подписаться 8 тыс.
Просмотров 14 тыс.
50% 1

Some views require database interactions on the backend before they return a HTTP response. This database interaction might take a long time leading to slower response time from the Django app and poor user experience. Caching can be a possible solution.
In this video we'll explore using Redis as a cache with Django.
Chapters:
--------------
0:00 intro
0:12 how caching works
1:00 good caching practice
1:10 caching in Django
1:53 Redis
2:22 caching levels
2:52 implementation and code
5:35 cached vs not cached
6:28 outro

Опубликовано:

 

21 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 42   
@laithal-zoubi1547
@laithal-zoubi1547 10 месяцев назад
Simple, clear and concise. Keep it up.
@EdduGmes
@EdduGmes 8 месяцев назад
Straight to the point and very solid knowledge! Thanks for the content!
@LifeOf97
@LifeOf97 Год назад
A very concise yet informative explanation. Thank you very much.
@Dima-qz4su
@Dima-qz4su Год назад
thank you, you have explained exactly what I needed
@anonymeister123
@anonymeister123 Год назад
Thank you kind sir 🙏🙏 not many focus on the Redis part
@aminuwaziri5639
@aminuwaziri5639 Месяц назад
Mann you good! I came across yo channel yesterday forI was searching for hkw to use redis. I'm new to Django - 2 years thou 😅.. I really wish I can meet you to ask some questions. Btw, nice content❣️
@sergebyusajabo2138
@sergebyusajabo2138 Год назад
Good job in explaining this. Thank you.
@EkeomaEAGU-wq2kb
@EkeomaEAGU-wq2kb 2 месяца назад
Hi, thanks for this concise and clear guide... it really helped me improve the performance of my app.
@MuhammadUsman-yi8bl
@MuhammadUsman-yi8bl 7 месяцев назад
You nailed it. Keep it up 👍.
@d0gl0gic80
@d0gl0gic80 Год назад
This is extremely useful thank you
@yoosafofficial
@yoosafofficial Год назад
django road the best django tutorials on youtube
@MrJgracias
@MrJgracias Год назад
You are the best, thank you!
@hahalin8211
@hahalin8211 2 месяца назад
Thank you, this video is very great.
@gamesojen
@gamesojen Год назад
Awesome! Thank you so much!
@user-wj7he9ff6k
@user-wj7he9ff6k 8 месяцев назад
Awesome video!!
@anilshrestha1272
@anilshrestha1272 Год назад
Quality content thank you.
@eduardolz12
@eduardolz12 Год назад
Well explained, thanks
@nagercoilgamer9484
@nagercoilgamer9484 Год назад
thanks...great explanation
@nwabuezefranklin7676
@nwabuezefranklin7676 Год назад
If clarity was a person. subscribed ✌
@djangoroad
@djangoroad Год назад
😂
@welzyalzy
@welzyalzy Месяц назад
That was awesome
@KrishnaDasPC
@KrishnaDasPC Год назад
For api with DRF booking system what will be the ideal time to live time? Some of the joins are pretty complicated so api response time for some api is more than 5 seconds.
@srourganoush5941
@srourganoush5941 27 дней назад
This is a treasure 🤑
@jairajsahgal7101
@jairajsahgal7101 7 месяцев назад
Thank you
@mohammadhanyfeyz8177
@mohammadhanyfeyz8177 6 месяцев назад
Awesome🤩
@EdgarTriias
@EdgarTriias Год назад
Does it work when calls to the DB points to Functions? I am using PostgreSQL
@hopesain5065
@hopesain5065 8 месяцев назад
I installed the django redis and the sad thing is that it does not work in production as it still renders an error saying localhost:6379 refused i have tried even hardcoding the managed redis but nothing works. CACHES PROBLEM
@packagebattos
@packagebattos 11 месяцев назад
Thanks for the video. One thing I didn't understand is, is cached response returns every time? I mean, if the data in database changes in the 15mins is the cached() view stays at old data? Another question: if a set DEBUG=False does it remove the debug bar at the right side?
@verainsardana
@verainsardana 10 месяцев назад
It is used for stuff that doesnt change that often, and for your second question I think debug toolbar only shows for ips mentioned in the settings at the start
@pharaoh9483
@pharaoh9483 Месяц назад
For the second question, you should have something like if DEBUG: # Add Django Debug Toolbar settings for development environment INSTALLED_APPS += ['debug_toolbar']
@GunalanDeivaganpathy
@GunalanDeivaganpathy Год назад
nice one
@DigisDen
@DigisDen Год назад
Am I missing something obvious here? Looking at those stats in the debug toolbar, the queries to the cache appeared to take LONGER than the sql queries.
@packagebattos
@packagebattos 11 месяцев назад
I saw that too. But that is probably because there is only 2 user in the database. If we had like 10,000 users, then it would be the query that takes more time.
@cameleonarabic8124
@cameleonarabic8124 9 месяцев назад
thanks
@gini-x4996
@gini-x4996 Год назад
thankyou
@user-vb1mh8lj3n
@user-vb1mh8lj3n Год назад
can i use that feature in class base view?
@djangoroad
@djangoroad Год назад
I believe you can
@ndthien
@ndthien Год назад
You should use f-strings instead of .format()
@djangoroad
@djangoroad Год назад
yeah I still use old style, should upgrade!
@howtophotoshop1340
@howtophotoshop1340 3 месяца назад
dude, man up
@chirofive
@chirofive 3 месяца назад
is this a girl or a boy ?
@aashayamballi
@aashayamballi Год назад
Thank you
Далее
AWS Regions and Availability Zones #shorts
0:46
NestJs caching with Redis
18:17
Просмотров 4,4 тыс.
This or That 🛍️
00:52
Просмотров 5 млн
D3 BMW XM LABEL Король.
31:52
Просмотров 488 тыс.
Celery for asynchronous tasks in Django
8:46
Просмотров 6 тыс.
Dockerizing Django with Postgres, Redis and Celery
20:59
Caching Pitfalls Every Developer Should Know
6:41
Просмотров 113 тыс.
.NET 6 - Web API Caching with Redis ⏲🌐
1:04:23
Просмотров 34 тыс.
Python and Redis Tutorial - Caching API Responses
32:26
I've been using Redis wrong this whole time...
20:53
Просмотров 340 тыс.
Adding a cache is not as simple as it may seem...
13:29