System Design Interview - Design a Distributed LRU Cache (Full mock interview with Sr. MAANG SWE)

Поділитися
Вставка
  • Опубліковано 12 гру 2024

КОМЕНТАРІ • 15

  • @tryexponent
    @tryexponent  2 місяці тому

    Make sure you're interview-ready with Exponent's system design interview prep course: bit.ly/474ucRM

  • @AbhishekYadav-ib9jj
    @AbhishekYadav-ib9jj 3 місяці тому +5

    Using doubly linked list is definitely required. During the get operations you’ll need to move the element to the head and delete from current location. With doubly linked list, deletion will constant time operation. With linkedlist, this will O(n) operation.

  • @judeboachie
    @judeboachie 3 місяці тому +4

    Please add chapters to your videos. Will help a lot!

  • @ThisIsInconceivable
    @ThisIsInconceivable 8 днів тому

    Would be great to address shard splitting. I.e. if a shard becomes too full, some data needs to be moved to other hosts (existing or new)

  • @AdityaGupta-yi7oe
    @AdityaGupta-yi7oe 3 місяці тому

    23:35 I would prefer a query router of some sort that would sit bw Service Hosts and Cache cluster and Service hostts just need to connect to the router, the way we have in DB sharding.
    Would this be a better approach to be suggested in an interview?

  • @SpyrosGiann
    @SpyrosGiann 3 місяці тому +2

    Thanks, great content! Out of curiosity, what software and hardware (is it a stylus?) is Ravi using to conduct the interview?

    • @ravikant-hi8mz
      @ravikant-hi8mz 2 місяці тому +1

      It is a digital pen - Wacom pen tablet and software is whimsical

    • @tryexponent
      @tryexponent  2 місяці тому +1

      Hey SpyrosGiann, thanks for the kind words! The online whiteboard tool being used is called "Whimsical".

  • @AdityaGupta-yi7oe
    @AdityaGupta-yi7oe 3 місяці тому +1

    I would prefer a query router that would sit in bw Service Hosts and Cache cluster to route the queries, and service hosts and connect to this Router, just like we have in DB Sharding.
    Would this be a better approach to be suggested in an interview?

  • @someshgangwar4013
    @someshgangwar4013 2 місяці тому

    Great Video

  • @lakshaymiddha2531
    @lakshaymiddha2531 3 місяці тому

    I didn’t understand completely that why read requests would go to read replicas. We can read from primary and data will be more consistent. What’s the issue in this approach?

  • @zelesluk1
    @zelesluk1 День тому

    It would have been better to discuss further eventual consistency and how much of a problem it is here in the functional requirement section. IMHO not much of a problem since we talk about least recently used (oldest)

  • @SUNNYKUMAR-cl1xw
    @SUNNYKUMAR-cl1xw 3 місяці тому

    But why consitency and availability can’t be provided sql databases does that. Cap says any two at one point of time we can support.

  • @ZenG2k24
    @ZenG2k24 3 місяці тому

    Great content. Love it :)

  • @szyulian
    @szyulian 3 місяці тому

    watched.😀-------