This is why you need caching

This is why you need caching

Web Dev Cody

1 год назад

36,848 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Divyanshu Rawat
Divyanshu Rawat - 14.11.2023 22:45

Will this work this much faster in production also ?

Ответить
Larry D
Larry D - 22.10.2023 17:45

Caching is not the answer to poor database schema.

Ответить
Ted Mosby
Ted Mosby - 25.09.2023 00:03

I implemented this in my app Cody! When i logged the times using the cache, vs without, it was at least 80 percent faster. Devs like you and Josh Tried Coding are a blessing, teaching us advanced topic to implement in our projects.

Ответить
Eshw23
Eshw23 - 15.09.2023 05:58

Insanely helpful man, im definately going to add redis for my saas

Ответить
Muhammad Abubakar
Muhammad Abubakar - 09.09.2023 21:03

Hi, I need guidance around what tools and technologies are expected from a 3 years experienced frontend (react.js) developer.

Ответить
Sumit Wadhwa
Sumit Wadhwa - 02.08.2023 08:25

redis on a remote server that I need to reach out to every time my api is hit, bugs me. why?

Ответить
Martin Thomas
Martin Thomas - 08.07.2023 22:29

What I don't understand is if cache exists for the user and you return that instead, at what point will they get the latest data if they are only getting the outdated cached data returned?

Ответить
Son Ayo
Son Ayo - 02.05.2023 08:55

I need to take a look at this. Thanks

Ответить
Emmanuel Ezeagwula
Emmanuel Ezeagwula - 29.04.2023 15:20

I love that you get straight to the point

Ответить
Ipicon
Ipicon - 28.04.2023 16:06

honestly this is seems a bit of an overkill, if you use Redis just to cache for 10 seconds, you have this already built in in the Next framework, those are called `Segment Config Options`.
Which you can cache your api request, without any 3rd party providers and without spending more money on them :)(P.S and it will be faster)

Ответить
Steve Hodgkiss
Steve Hodgkiss - 28.04.2023 11:12

Hi Cody, do you have any ideas how to set the expires' value on the Javscript Fetch calls ?

Ответить
Austin
Austin - 28.04.2023 09:28

heya Cody! this is a good thumbnail for the video! keep up the good work! <3

Ответить
Indrajeet Giri
Indrajeet Giri - 28.04.2023 07:40

I Don't Understand Why You Wrote false && cache Inside An If Statement You Can Directly Write if(cache) Instead If There Is An Cache Result

Ответить
Hasan Iqbal
Hasan Iqbal - 27.04.2023 20:24

Hey Cody, are you going to continue the Mantine course platform series?

Ответить
Parlor 311
Parlor 311 - 27.04.2023 19:53

Or you could cache the data on disk like a pleb and force everyone working for you to agree even though you just said that the table is going to have 100 rows at most and it's an app used by like 200 people a day max.

Ответить
Ibrahim Mohammed
Ibrahim Mohammed - 27.04.2023 19:37

I've a question, why do we need trpc or an end point and not just use prisma client directly on our server component? or do we still need to have an endpoint?

Ответить
Streamocu
Streamocu - 27.04.2023 19:36

love your content... thank you

Ответить
Jeremy
Jeremy - 27.04.2023 19:29

I just use redis as my primary db.

Ответить
Abdulrahman Al Sabagh
Abdulrahman Al Sabagh - 27.04.2023 19:18

Very nice

Ответить
shadowplay
shadowplay - 27.04.2023 18:02

Is making a local cache manager based on local object or map will be a good idea? Or using redis will be better approach for the best performance?

Ответить
Bram
Bram - 27.04.2023 17:46

Liked the video still one thing trigged me and that was the else when it was not needed since your if always returns the else would not be needed

Ответить
Gol. D. Georgo
Gol. D. Georgo - 27.04.2023 17:04

Thanks React Query.

Ответить
Alexis Tyler
Alexis Tyler - 27.04.2023 16:29

This seems less like a reason to use a cache and more of a reason to find out why your query is taking so damn long.

Ответить
Insensibility
Insensibility - 27.04.2023 16:28

Grats on sponsorship! <3

Ответить
Tina Seibert
Tina Seibert - 27.04.2023 16:21

Good job babe!!!!

Ответить
JM Santos
JM Santos - 27.04.2023 16:17

Thank you for this great tutorial! I would like to ask how would you handle invalidation or returning the data if there's like pagination involved? Do you set the cache key as the composite of "domainId" + pagination options like limit and page? (eg: post_page1_limit25)

Ответить
Josh tried coding
Josh tried coding - 27.04.2023 16:08

You do custom thumbnails now! Super interesting topic, thanks for sharing. Got a good experience with upstash as well, very handy for serverless

Ответить
TheLaitas
TheLaitas - 27.04.2023 16:01

[0]

Ответить