Intro to ACID Database Transactions | Systems Design Interview: 0 to 1 with Google Software Engineer

Поділитися
Вставка
  • Опубліковано 5 лют 2025
  • Implementing isolation in databases both takes a long time and is hard - only days ago I heard the exact opposite about my chode

КОМЕНТАРІ • 25

  • @SagnikChatterjee-v8y
    @SagnikChatterjee-v8y Місяць тому +3

    the best part of these videos is that i look forward to these corny jokes, makes me feel i am studying in a classroom setting again. good work jordan

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

    the smiley logo on the tshirt for ACID topic. hats off on the effort Jordan

  • @firoufirou3161
    @firoufirou3161 2 роки тому +4

    According to wikipedia, consistency is more about keeping the DB always in a state that respects the rules:
    Consistency ensures that a transaction can only bring the database from one consistent state to another, preserving database invariants: any data written to the database must be valid according to all defined rules, including constraints, cascades, triggers, and any combination thereof. This prevents database corruption by an illegal transaction. Referential integrity guarantees the primary key-foreign key relationship

    • @jordanhasnolife5163
      @jordanhasnolife5163  2 роки тому +3

      Yeah that's fair to say, just mainly the database doesn't go bonkers due to multithreading.

    • @firezdog
      @firezdog 9 місяців тому

      i think this concern is addressed in the video during the discussion that a consistent database is a database that respects the invariants -- for example the invariant that there is always at least one worker listed for a given shift. (it's interesting that some of the invariants are user defined and some are internal to the database, for example foreign key references -- so maybe part of the expectation would be that a database will always pass an integrity check pragma or something)

  • @quanghoang3801
    @quanghoang3801 2 роки тому +4

    wow, congratzz, you survived the first wave

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

    I always get confused with consistency from ACID because it's different from the CAP theorem, it's good to revisit this topic and refresh this knowledge.

    • @adityaprakash8991
      @adityaprakash8991 17 днів тому

      Consistent is overloaded term:
      1. Consistent hashing
      2. Cap theorem
      3. Replica consistency

  • @casualcontemplation
    @casualcontemplation 25 днів тому +1

    I like the way you use funny and non funny words, magic man

  • @TwoiChai
    @TwoiChai Рік тому +4

    okay. I was under my table after the foot picture transaction

    • @jordanhasnolife5163
      @jordanhasnolife5163  Рік тому

      That'll be $5

    • @TwoiChai
      @TwoiChai Рік тому

      no foot pics no $$$. work hard play hard@@jordanhasnolife5163

    • @TwoiChai
      @TwoiChai Рік тому

      @@jordanhasnolife5163 double it and give it to the next person🙏

  • @karthikgurunathanshow
    @karthikgurunathanshow 29 днів тому +1

    How does successfully enforced atomicity guarantee consistency ? Should it not be the other way round

    • @jordanhasnolife5163
      @jordanhasnolife5163  26 днів тому

      I think consistency in the ACID meaning of the term basically implies that the database is satisfying invariants, so I guess I would say I agree lol

  • @ethanwcheatham
    @ethanwcheatham 11 місяців тому +2

    Feels like a fever dream watching this now getting hit with the bath water

  • @dalgonacovfefe
    @dalgonacovfefe Рік тому +3

    sir not the riley reid

  • @chrisrectenwald7307
    @chrisrectenwald7307 2 роки тому +2

    You should provide the readings that helped you come up with this vidya

    • @jordanhasnolife5163
      @jordanhasnolife5163  2 роки тому +3

      All these beginning videos are almost completely ripped off of "Designing data intensive applications" by Martin Kleppmann. In the future I'll start to diverge from this book and then will attach them.

    • @chrisrectenwald7307
      @chrisrectenwald7307 2 роки тому +6

      @@jordanhasnolife5163 So you're saying that I should just read the book that I bought.

    • @xmnemonic
      @xmnemonic 2 роки тому +5

      @@chrisrectenwald7307 lol maybe? there are 1,000 beginner python tuts in video, books, blogs... choose the medium, style that you like

    • @jordanhasnolife5163
      @jordanhasnolife5163  Рік тому +4

      @@chrisrectenwald7307 Lol yeah I hate reading too, alas sometimes you must, that being said I think this still has supplemental value as visual examples

  • @prashlovessamosa
    @prashlovessamosa 2 роки тому +3

    Hey yo.