System Design - Cache | Caching | Cache Invalidation | Cache Eviction

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024

Комментарии • 50

  • @merepapa350
    @merepapa350 4 года назад +5

    I am really thankful to you that you made this playlist

  • @amalsalim88
    @amalsalim88 3 года назад +4

    I always hated Indian accent, but after listening to about a 100 videos by some really smart indians explained in a very humble manner..... I really appreciate this accent.
    Take a very difficult concept to explain and ask an Indian to explain it in English keeping their accent. The emphasis on many words give your time to relax and take in the concepts at the right pace

    • @CodingSimplified
      @CodingSimplified  3 года назад +1

      Thanks Amal for your nice feedback. Keep Watching.

  • @imrahil008
    @imrahil008 3 года назад +15

    It's pronounced as in "CASH"

  • @bankagarai7859
    @bankagarai7859 2 года назад +1

    Well defined session

  • @Tiger26279
    @Tiger26279 4 года назад +1

    Worth to watch

  • @techrelayhub
    @techrelayhub Год назад +1

    Thanks man. poweful videos

  • @SatyaPrakash-gj5vp
    @SatyaPrakash-gj5vp 4 года назад +2

    Very worth & neat session! Keep it up!
    I have a question ,can you explain how data stored in cache.
    key- Request
    value- Response
    key and value as a Map? can we use concurrentHashMap rather than LinkedHashMap.

    • @CodingSimplified
      @CodingSimplified  4 года назад +1

      Thanks. That's right. Data is mainly stored in key, value form in cache. Actually cache is implemented using Linked list & Hashing. So concurrentHashMap doesn't look ideal Data structure for it. I've explained cache implementation in Queue playlist. If you're interested, please see that video which'll help in understanding it. Thanks.

    • @anilchaudhry804
      @anilchaudhry804 3 года назад

      @@CodingSimplified in my opinion concurrenthashmap looks good when you want to have thread safety + decent performance. If in interview you are asked so then CHMP can solve some of your problems like concurrency, no race condition, efficient locking (bucket level), thread safety, better performance and scalable. Agree?

  • @NaturalPro100
    @NaturalPro100 5 лет назад +2

    Greatly explained

  • @ashoknalla2068
    @ashoknalla2068 4 года назад

    Write back cache is protected using RAID levels usually now a days RAID 6 or 1and media is SSD. On the other hand cache through SSD along with RAID level directly on the IO module is most efficient but cotly process.

  • @themikek99
    @themikek99 Год назад +2

    Hi, very nice presentation! Could you please upload it in English?

  • @jasper5016
    @jasper5016 5 лет назад +2

    Great tutorial but what are you talking "you have multiple servers on a website". It's not correct. A website has multiple servers. And again " servers are hitting on the webserver" what does that mean? Do you mean "Requests are hitting on the webserver"?

  • @rohithkadivendi6896
    @rohithkadivendi6896 5 лет назад

    Very clear explanation!

  • @junwonjung8771
    @junwonjung8771 4 года назад +1

    Hi, Thanks for the video, I have a question.
    While in the write around caching mechanism, it says it stores bypassing cache, directly into db. When it tries to load data, it makes cache miss then it gets data from db and then re-insult to cache.
    My question here is, what if there was an existing cache, and make write-around method when writing that data. Then data will be affected in database, but it will not be affected in cache. What if we try to load that data again, then there will be that data in cache, and load old cache data.
    Is this a disadvantage of write around cache? I thought that caching mechanisms only deal with latency for the load, so this case should not happen.
    Please let me know if anything I'm missing from this concept. Thanks!

    • @CodingSimplified
      @CodingSimplified  4 года назад

      Hi, thanks for liking the video. Here our concept is about Cache Invalidation, which means we want to update cache with data. Now if we'll use old cache & showing old data, we're defeating our purpose. We need to show latest data, that's reason we can't use old cache here.
      I hope it answers your question.

  • @mquanit3333
    @mquanit3333 4 года назад +1

    please do make the practical implementation of these concepts on Redis

    • @trushapatel9012
      @trushapatel9012 4 года назад

      ruclips.net/video/U3RkDLtS7uY/видео.html

  • @gorrepatiyaswanth2757
    @gorrepatiyaswanth2757 2 года назад

    @Coding Simplified. Where does the cache is stored in case of Distribute Cache

  • @ibrahimshaikh3642
    @ibrahimshaikh3642 4 года назад +1

    Good video, could u plz add some diagram it will improve video quality

    • @CodingSimplified
      @CodingSimplified  4 года назад +1

      Thanks for your suggestion. For this video, I can't add in between now. But, I'll take care in future. Thanks.

  • @yelletivarshith2398
    @yelletivarshith2398 4 года назад

    Hi, can you please suggest any book that i can find these concepts and your explaination is excellent ..thank you

    • @CodingSimplified
      @CodingSimplified  4 года назад

      Thanks. I'm not sure about book which contains these concepts.

    • @yelletivarshith2398
      @yelletivarshith2398 4 года назад

      @@CodingSimplified Thank you for the reply ..if you know any related books also please do suggest

    • @vinay335
      @vinay335 3 года назад

      @@yelletivarshith2398 grokking-the-system-design-interview

  • @azadalishah2966
    @azadalishah2966 4 года назад

    Hi, I belive that there is client(front end) & server(backend). Server means always backend. Say in case of web browser which is initiated from front end(client) & request is sent to backend (server). My doubt is - is there something like front end server also? When u say
    web server, is it front end or backend? Can caching be done in front end/client side also without sending the request to server?

    • @CodingSimplified
      @CodingSimplified  4 года назад

      - when we say client, it means user, Now server can be at front end (UI) & at backend (API server)
      - Caching can be done at front end as well on back end.
      Let me know if you've any further questions.

    • @azadalishah2966
      @azadalishah2966 4 года назад

      Coding Simplified @ thanks for clarification. Other than user, can’t we say the UI(front end) is client ?

    • @CodingSimplified
      @CodingSimplified  4 года назад

      @@azadalishah2966 yeah, you can say. Just that, when you say, explain you're referring to front end.

  • @xof8256
    @xof8256 5 лет назад

    Thanks

  • @siddharthdhar4321
    @siddharthdhar4321 5 лет назад

    what do you mean when you say "web server has a single node"?

    • @truepakistani9604
      @truepakistani9604 3 года назад

      Means we are running only web server ( instance ) on node ( machine ). Which is available for all clients.

  • @satyanarayanareddykarri489
    @satyanarayanareddykarri489 2 года назад +2

    kaʃ

  • @AkshaySharma-bg3oj
    @AkshaySharma-bg3oj Год назад

    Hi , first of thank you very much for these videos.
    can you please upload these ppts? that would be great :)

  • @srikanth2732
    @srikanth2732 4 года назад

    how much time data will reside in cache

    • @CodingSimplified
      @CodingSimplified  4 года назад

      It depends on size of cache. As far as cache size is not full, there is no time limit. It can stay for longer duration.
      Data will be out from cache: If you flush cache or cache size limit is reached & least recently data is evicted

  • @baivulcho
    @baivulcho 5 лет назад

    Great content, really informative. It's just amazing how you can say "applications" perfectly with a proper 'S' at the end, but you say "shtore" instead of "store", surely you can pronounce the sound 'S'....

    • @CodingSimplified
      @CodingSimplified  5 лет назад

      Thanks for notifying. Atleast you're listening videos with attention. ;)

    • @baivulcho
      @baivulcho 5 лет назад

      @@CodingSimplified Yes, especially this one. As I said, great content and really useful and concise! Keep up the good work.

    • @CodingSimplified
      @CodingSimplified  5 лет назад

      Thanks