https://kotlinlang.org logo
#ktor
Title
# ktor
c

Colton Idle

05/01/2020, 2:58 AM
Caching is super important. I've only worked on mobile (android) and although I understand the basics of http, I'm really just now diving into headers and caching specifically. At the same time I'm learning a bit of backend development with ktor and I really want to nail my caching mechanism. It seems silly to me that so many backend systems don't have caching setup properly. I've read that there are ways to just use timestamps or tokens so that a server doesn't send you the same damn data again. Going off of this though, as a super new "backend" dev does anyone have any seminal talks or blog posts on the subject? Thank you
d

Dariusz Kuc

05/01/2020, 3:14 AM
caching is only as good as the underlying data - if you only get 1 request asking for the specific data caching won’t give you anything and most likely will cause issues (depending on the type of caching strategy you might evict something that you shouldn’t or it will cost crazy amounts of money to cache data that won’t ever be accessed)
c

Colton Idle

05/01/2020, 4:41 AM
I'm moreso talking about caching headers. Not how to actually implement it on the backend. Example is Etag vs Modified-Last headers.