MENU

Fun & Interesting

How to Setup Redis Caching in Node

Better Stack 10,893 9 months ago
Video Not Working? Fix It Now

Speed up your Node.js applications with Redis caching in this comprehensive tutorial. Boost your app's performance, scalability and reduce latency. Start with setting up Redis with Node.js and implementing a basic caching techniques. We will also look at benchmarking our changes to confirm we've improved our application. Lastly, lets talk about caching patterns that we can use in Redis. Code: https://github.com/betterstack-community/hacker-news Artillery Docs: https://www.artillery.io/docs Redis Docs: https://redis.io/docs/latest/operate/oss_and_stack/install/install-redis/install-redis-on-linux/ Blog Post: https://betterstack.com/community/guides/scaling-nodejs/nodejs-caching-redis ► HACKING SCALE NEWSLETTER https://newsletter.betterstack.com/ ► RELATED GUIDES How To Start Logging With Redis: https://betterstack.com/community/guides/logging/how-to-start-logging-with-redis/ Better Stack Redis logging: https://betterstack.com/docs/logs/redis/ A Comprehensive Guide to Dockerizing Node.js Applications: https://betterstack.com/community/guides/scaling-nodejs/dockerize-nodejs ► READ MORE More about Better Stack: https://betterstack.com/ Community pages: https://betterstack.com/community/ ► STAY TUNED GitHub: https://github.com/BetterStackHQ Twitter: https://twitter.com/betterstackhq LinkedIn: https://www.linkedin.com/company/betterstack Instagram: https://www.instagram.com/betterstackhq/ TikTok: https://www.tiktok.com/@betterstack 📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀: 0:00 Intro 1:20 Demo Project 1:45 Benchmark with Artillery 05:37 Installing Redis Server 08:12 Install node-redis 08:27 Connect Redis in Express 12:15 Cache data with Redis 17:55 Compare Benchmark 19:44 Caching Strategies and Patterns 26:00 Outro

Comment