Тёмный
No video :(

Caching API Responses with Redis 

Redis
Подписаться 27 тыс.
Просмотров 22 тыс.
50% 1

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

 

29 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 50   
@MeonisRP
@MeonisRP 2 года назад
So in my E-commerce shop it takes 1,5 sec to load some heavy pages, with Redis it’s just 0,1 sec. My boss today was speechless :D
@Redisinc
@Redisinc 2 года назад
Love it! Glad we could be a part of that success!
@antoniopavicevac-ortiz8886
@antoniopavicevac-ortiz8886 2 года назад
I love clear, concise and a adroit presentation of how to do something!
@pcraov1223
@pcraov1223 2 года назад
Nice and clear. Much simplified explanation and demonstration about Redis Cache. Thanks Justin.
@Redisinc
@Redisinc 2 года назад
Glad it was helpful! Let me know what other content you'd like us to cover :) - Justin
@Reecepbcups
@Reecepbcups 2 года назад
Thank you! This was amazing. As someone just learning JS & already a lover of Redis, learned a lot here
@Redisinc
@Redisinc 2 года назад
That's so great to hear! Make sure to check out Guy Royse's livestreams as well, he writes everything in JS and is always entertaining. You should also check out our Redis University course integrating Redis with JS here: university.redis.com/courses/ru102js/ Best of luck! - Justin
@cappuccinopapi3038
@cappuccinopapi3038 2 года назад
Now this is developer advocacy!
@deveshb793
@deveshb793 2 года назад
Loved the way you explained Justin, thank you!
@Redisinc
@Redisinc 2 года назад
My pleasure! - J
@4F2E4A2E
@4F2E4A2E 3 года назад
I just love this guy and content! Thank you!
@Redisinc
@Redisinc 2 года назад
Aww thanks, buddy! Love ya too! - Justin
@sebastiansanta2792
@sebastiansanta2792 2 года назад
Redis is great! I learned it quick and made a small web app with it the same day. Super easy to learn and so useful
@Redisinc
@Redisinc 2 года назад
That's awesome, Sebastian! You should check out our discord (discord.gg/redis) and share your progress! - Justin
@ipxify
@ipxify Год назад
watched this video , learn 10 things more than just cache
@SakosTechSpot
@SakosTechSpot 2 года назад
bay area represent! thanks for the video!
@phil5293
@phil5293 2 года назад
Great video. I had a problem at first with 'process.env.WEATHER_API_KEY'. I ended up viewing other RU-vid videos to figure out that I needed to set up a system environment variable. I am new to NodeJS
@Redisinc
@Redisinc 2 года назад
Thanks, Phil! I should have added a comment in the code to explain that better. I'll add that now. Welcome to the wild, wacky world of Node.js! - Justin
@rajeshkhadka225
@rajeshkhadka225 2 года назад
Here we are caching data locally into the machine, but when the app goes for deployment where does the cache stored ??
@privymassage3458
@privymassage3458 2 года назад
Exactly. Today I tried SISMEMBER with redis enterprise cloud the response is only a 1 / 0 the time it took was between 78ms and 14ms. That's time added to my api response. So imagine something more heavy 🤔
@Redisinc
@Redisinc Год назад
@@privymassage3458 you'd want to run your code as close as possible to the database to minimize round trip latency. Using Redis Cloud you can choose between AWS, Azure and GCP and pick the same or closest region to where you run your applications to achieve this.
@rafaelfu624
@rafaelfu624 2 года назад
Awesome!
@sujezz
@sujezz Год назад
Wouldn't t1 get the date before you get data ? Shouldn't you use it in .then() or .finally() ?
@seyyedkhandon
@seyyedkhandon 2 месяца назад
How can we store json in redis cluster using ioredis without json-stringify/parse?
@socat9311
@socat9311 6 месяцев назад
how is your redis docker config? are you using docker desktop? i try to do this but does not seem the redis instance is visible outside the container, trying to figure out how docker desktop does the mapping basically
@Redisinc
@Redisinc 6 месяцев назад
This is the command I use to start up a Redis-Stack image with RedisInsight. It exposes the Redis default port (6379) and the browser access to Redis Insight (8001): docker run -d --name redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latest Here's our page on the different configurations. Hope this helps! - Justin
@socat9311
@socat9311 6 месяцев назад
@@Redisinc thanks!
@alexi_space
@alexi_space 2 года назад
I got this error after importing ioredis : This dependency was not found: * dns in ./node_modules/ioredis/built/cluster/ClusterOptions.js To install it, you can run: npm install --save dns
@rayfananda3083
@rayfananda3083 2 года назад
it's mind blowing
@Redisinc
@Redisinc 2 года назад
🤯
@gabrielvillela2738
@gabrielvillela2738 2 года назад
Justin Castilla Love the video! but need help with one part of the tutorial. Do you do zoom meeting by any chance?
@Redisinc
@Redisinc 2 года назад
Glad you enjoyed the video! We don't really do zoom meetings, but you can join our discord channel at discord.gg/redis and we should be able to assist. - Justin
@vasurangpariya8492
@vasurangpariya8492 Год назад
During setting and getting key into redis we need to JSON parse and stringify the large object and that creates performance issue so how to overcome with that issue
@Redisinc
@Redisinc Год назад
You can set/get JSON directly into Redis without having to serialize it into a String! Check it out here: redis.io/docs/stack/json/
@jameslewis5604
@jameslewis5604 11 месяцев назад
Have you done something to expand on this demonstrating what you would do with redis if the app has multiple instances?
@Redisinc
@Redisinc 11 месяцев назад
With Redis in the cloud, all of the applications would hit the same Redis instance. The first time an app instance hits a query and saves the result in the cache, other subsequent instances would check the Redis cloud and use that result until the TTL deletes that cache entry. Did that answer your question? - Justin
@jameslewis5604
@jameslewis5604 11 месяцев назад
Justin. Lets take your great weather app as an example. Lets imagine we get update messages from our weather client telling us that the weather has changed rather than the 1hr TTL you did in the app and we want to pre warm the cache based on that message. Lets also imagine we want to be highly available so we have 2 instances of our weather app running in 2 different data centers. When both apps receive the update message from the weather center how do we stop contention in Redis? @@Redisinc
@SP-yh5op
@SP-yh5op Год назад
Can we do partial updating if cache is a json string. Also does cache supports other data types like List JSON apart from string
@Redisinc
@Redisinc Год назад
Check out the JSON data type in Redis Stack which allows for atomic in place updates of JSON data in Redis redis.io/docs/stack/json/
@varunkulkarni9765
@varunkulkarni9765 Год назад
can we cache external api calls from django server
@Redisinc
@Redisinc Год назад
absolutely!
@m12652
@m12652 2 года назад
Thank you…
@martg0
@martg0 Год назад
why using axios and not only fetch directly? thanks!
@Redisinc
@Redisinc Год назад
I like axios! - Justin
@martg0
@martg0 Год назад
@@Redisinc ok! I was wondering because it adds weight to the bundle size, and we recently took this import out replacing it with native fetch.
@Entertainment_Zone2522
@Entertainment_Zone2522 2 года назад
How can MySQL update data in real time in redis cache?
@thatguycodes
@thatguycodes 2 года назад
saved me
@christellelemaire9749
@christellelemaire9749 Год назад
Accord pas soucis confiance
@cloccawoerc
@cloccawoerc 2 года назад
could you share the repo in this example?
@Redisinc
@Redisinc 2 года назад
Here you go! github.com/redis-developer/redis-caching-api-responses
Далее
Redis Data Structures for Non-Redis Users
48:00
Просмотров 28 тыс.
SIGMA ENVY IS UNTOUCHABLE 🔥 #insideout2
00:10
Просмотров 4,1 млн
Python and Redis Tutorial - Caching API Responses
32:26
What is Redis Cache?
6:19
Просмотров 78 тыс.
When RESTful architecture isn't enough...
21:02
Просмотров 273 тыс.
I've been using Redis wrong this whole time...
20:53
Просмотров 354 тыс.
Top 7 Ways to 10x Your API Performance
6:05
Просмотров 326 тыс.
Redis Crash Course
27:31
Просмотров 619 тыс.
Cache Systems Every Developer Should Know
5:48
Просмотров 480 тыс.
Scaling Redis To 1M Ops/Sec
29:53
Просмотров 14 тыс.
The Power Of Golang's Decorator Pattern
14:09
Просмотров 46 тыс.