Caching API Responses with Redis

  Рет қаралды 22,816

Redis

Redis

Күн бұрын

Пікірлер: 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
@deveshb793
@deveshb793 3 жыл бұрын
Loved the way you explained Justin, thank you!
@Redisinc
@Redisinc 3 жыл бұрын
My pleasure! - J
@cappuccinopapi3038
@cappuccinopapi3038 3 жыл бұрын
Now this is developer advocacy!
@4F2E4A2E
@4F2E4A2E 3 жыл бұрын
I just love this guy and content! Thank you!
@Redisinc
@Redisinc 3 жыл бұрын
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
@phil5293
@phil5293 2 жыл бұрын
Great video. I had a problem at first with 'process.env.WEATHER_API_KEY'. I ended up viewing other KZbin 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
@SakosTechSpot
@SakosTechSpot 2 жыл бұрын
bay area represent! thanks for the video!
@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 2 жыл бұрын
Wouldn't t1 get the date before you get data ? Shouldn't you use it in .then() or .finally() ?
@jameslewis5604
@jameslewis5604 Жыл бұрын
Have you done something to expand on this demonstrating what you would do with redis if the app has multiple instances?
@Redisinc
@Redisinc Жыл бұрын
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 Жыл бұрын
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
@seyyedkhandon
@seyyedkhandon 5 ай бұрын
How can we store json in redis cluster using ioredis without json-stringify/parse?
@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
@rayfananda3083
@rayfananda3083 2 жыл бұрын
it's mind blowing
@Redisinc
@Redisinc 2 жыл бұрын
🤯
@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
@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/
@martg0
@martg0 2 жыл бұрын
why using axios and not only fetch directly? thanks!
@Redisinc
@Redisinc 2 жыл бұрын
I like axios! - Justin
@martg0
@martg0 2 жыл бұрын
@@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.
@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/
@varunkulkarni9765
@varunkulkarni9765 Жыл бұрын
can we cache external api calls from django server
@Redisinc
@Redisinc Жыл бұрын
absolutely!
@m12652
@m12652 2 жыл бұрын
Thank you…
@Entertainment_Zone2522
@Entertainment_Zone2522 2 жыл бұрын
How can MySQL update data in real time in redis cache?
@socat9311
@socat9311 8 ай бұрын
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 8 ай бұрын
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 8 ай бұрын
@@Redisinc thanks!
@thatguycodes
@thatguycodes 3 жыл бұрын
saved me
@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
@christellelemaire9749
@christellelemaire9749 Жыл бұрын
Accord pas soucis confiance
How to Improve Performance of Web APIs Using Redis Cache
16:54
Code Maze
Рет қаралды 1,6 М.
Family Love #funny #sigma
00:16
CRAZY GREAPA
Рет қаралды 52 МЛН
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 3,9 МЛН
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 39 МЛН
Speed Up Your Apps with Cache Control
14:42
Huntabyte
Рет қаралды 20 М.
Python and Redis Tutorial - Caching API Responses
32:26
Part Time Larry
Рет қаралды 57 М.
Learn how to do caching in NodeJS using Redis
24:34
Mafia Codes
Рет қаралды 34 М.
Rate Limiting with Redis
26:46
Redis
Рет қаралды 32 М.
Modern Redis in 40 Minutes | Crash Course 2023
38:43
Josh tried coding
Рет қаралды 46 М.
Redis Data Structures for Non-Redis Users
48:00
Redis
Рет қаралды 28 М.
How to use SpringBoot Caching using Redis and InMemory?
29:58
Protect Your API With Rate Limiting | Full Guide (2024)
41:40
Josh tried upstash
Рет қаралды 15 М.
Redis with Node Crash Course - Cache Data for Improved Performance
44:58