How Notion Cut Latency by 20%

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

КОМЕНТАРІ • 161

  • @NeetCodeIO
    @NeetCodeIO  6 днів тому +38

    Honestly, had a lot of fun making this one. How'd you like it and do you wanna see more?
    Finally gonna be continuing the System Design playlist: ua-cam.com/video/lFomAYu_Ug0/v-deo.html
    And here's the full write up: blog.neetcode.io/p/notion-uses-sqlite-caching

    • @SatinderSingh71
      @SatinderSingh71 6 днів тому +1

      Finally what we have all been waiting for. Neetdesign 🎉

    • @frozenmen93
      @frozenmen93 6 днів тому +1

      Sure NeetCode. I really like the way you explain everything :)

    • @adilansari-hq9ge
      @adilansari-hq9ge 6 днів тому +1

      yes , watched the video twice. its pure Gold. Need more and more videos.

    • @camelCig
      @camelCig 6 днів тому

      For sure!

    • @Ansh77K
      @Ansh77K 3 дні тому

      Yep really like this style of content, primeagen and t3gg theo are some of my favourite types specially as a beginner

  • @maid768
    @maid768 6 днів тому +81

    To be honest, I immediately liked the video just by reading the title and without even watching the video. I was like "finally something new and not even new but also really interesting topic". Would like more of those kind of videos in the future, thank you

  • @ashishnagar
    @ashishnagar 6 днів тому +55

    I love it.. the format, the video length, the topics coverage and of course the hands-on explanation. Looking forward to this series.

  • @ashutoshbondre6325
    @ashutoshbondre6325 5 днів тому +9

    Great great video! I have stumbled upon the "How Notion Cut Latency" posts on Linkedin multiple times previously, but the textual material always seemed too heavy or contained too much jargon to comprehend easily without losing patience. This video format & someone explaining as we go - is SOOO SOO much better! Please keep doing this. There's a lot of DSA content on UA-cam but almost no content such as this video. This could also be NeetCode's near future niche.

  • @austenmoore7326
    @austenmoore7326 5 днів тому +9

    Great video. I loved the visuals and 10-20 minutes is the sweet spot for optimal length imo

  • @Luis-Torres
    @Luis-Torres 5 днів тому +4

    Visuals are great. Lengthy videos are also nice, I'm not here for dopamine, I'm here for education. Keep up the good work man! 🙂

  • @tinrab
    @tinrab 6 днів тому +4

    One interesting thing about this is OPFS. I've never actually used it before.

  • @DA5H
    @DA5H 6 днів тому +10

    Can't wait to study this, but shouldn't you be posting this on the main channel?

    • @owo4202
      @owo4202 5 днів тому +1

      My guess is: His main account probably maxed subscribers in cs job market, so opening another channel would bring more exposure and double income.

  • @jthepj108
    @jthepj108 2 дні тому

    Graphics make all the complex concepts you cover super approachable. More 20-minute videos please!
    This was excellent. You covered all the important points concisely and only cut out details that can be found in the newsletter.
    I would suggest a TLDR of some kind at the start.

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

    This video hit me at the perfect time. That shared web worker strategy is a surprise to me. Might save some bugs in my own code!

  • @chief1337x
    @chief1337x 4 дні тому +1

    I usually dont comment on the videos, but this made me comment because of your effort you put in the video creating it! Amazing video dude! I really liked the flow of the video and everything else.

  • @matveyshishov
    @matveyshishov 5 днів тому +1

    I really liked Richard Hipp's lecture on his SQLite, cleared my mind on a couple things.

  • @Nuzrd84
    @Nuzrd84 4 дні тому +1

    Everything is good 📈😊, honestly It makes me stick to the video to the end.
    You should add the visuals like these to persuade the System design and very informative video BTW,
    I hope like me everyone expect this like understandable and knowledgeable video from you in the future .
    Thank you.

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

    Naive Question: does Notion solve for race between tabs?
    I.e. let’s say you have two tabs open on the same task but they are in two different states.
    one is newer - let’s say 2 paragraphs in the task description
    One with staler data.
    Focus is on the tab with the new data, and now you move to the old tab, add one char to your stale description and navigate to a different task.
    Will you lose your paragraphs ? (I don’t use notion… but intrigued)

  • @eruhinmakhtar9162
    @eruhinmakhtar9162 3 дні тому +1

    Bit of a correction here: web workers do not allow parallel actions, only concurrent actions. The distinction between these terms is that parallel means actions are being performed at precisely the same time, such as on multiple cores, while concurrent means that multiple tasks may be in progress at the same time, but at any given moment, only a single action is taking place. Basically, web workers can do stuff while other threads are blocked/waiting but no two JavaScript threads will ever be executing instructions at precisely the same time.

  • @kirillfedtsov
    @kirillfedtsov 2 дні тому

    "Latency is bad but you know what is worse..." I was totally expecting a sponsor plug there 😅

  • @jazzymichael
    @jazzymichael 5 днів тому

    Nice thumbnail. The dark and faded blue looks really good against the black background, very easy to read.

  • @jaceyang3375
    @jaceyang3375 2 дні тому

    Clean explanation. Need more high quality content like this. Good job my man🎉

  • @business_central
    @business_central 5 днів тому +1

    Loved the visuals loved the explanation and drawings.
    For the video, if anything I would love more depth. I feel that's what's mainly missing in all of UA-cam. Totally in for much longer videos or series where you fully cover a concept in high level and actual code/tech level. Hope to see that!
    For the newsletter I want to read it, but wonder can we only read it in the emails ? nowhere else? Just like to read in light mode or reading mode of some browsers if possible.

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

    Liked the diagram pictures used & the length of the video was nice, I learned that this was possible from this video & knowing the pitfalls like the OPFS causing data corruption will save a lot of headaches I imagine.

  • @Anushkumar-lq6hv
    @Anushkumar-lq6hv 4 дні тому

    I loved all the visuals and the explanations. I would prefer if these videos were 15 to 20 mins and not longer. The blog post can provide additional details.
    Also, this was one the best explanations I have seen to date.

  • @ahmadbasyouni9173
    @ahmadbasyouni9173 5 днів тому +1

    This is so good keep doing it please ur the only person i can listen to talk

  • @quicklearningdeveloppement5948
    @quicklearningdeveloppement5948 5 днів тому +1

    great content i loved it but by the way at 11:35 i wanna say that basically threads share the same memory but processes don't , this is why processes they have to communicate through channels

    • @NeetCodeIO
      @NeetCodeIO  5 днів тому

      ah good catch, in this case i believe while web workers run in a separate thread, from a programming perspective to me it still feels like they communicate with the main js thread the way different processes would communicate with each other.
      this is such a subtle point tho so someone please correct me if im wrong

  • @DeathSugar
    @DeathSugar 6 днів тому +1

    Dunno about cutting latency, but they did a lot if shite to make notion slow right after initial release. I remember how at first I was pretty happy how it was snappy as hell, but when our teams started to fill more documents it become slower. And then they've released a new update with new features and everything turned into a turtle - everything was slow as hell. Including simple selection and opening context menu.

  • @aaronprice5235
    @aaronprice5235 5 днів тому +1

    There is so much entry level stuff posted for tech in general its hard to find good sources for Mid + level development.
    This is huge.

  • @VidyaB-c1h
    @VidyaB-c1h 4 дні тому

    Awesome !!! The details, the code and yes the pictures - very very useful ... I have also signed up for your newsletter. Your leetcode videos are gold standard, and so was this.

  • @jayantchhillar4227
    @jayantchhillar4227 3 дні тому

    I rarely put comments on videos. But have to say, this is good. Length is good. Content is non-generic. Learnt something that might come handy someday

  • @Joel-iz6zr
    @Joel-iz6zr 5 днів тому

    The visuals were awesome, I made sure to subscribe to the newsletter!

  • @ArchesNP
    @ArchesNP 4 дні тому

    Very cool video. Liked those hand-on explanation. The way you actually showed application tab, it's memory usage and the js file with log statements. Pls continue your good work. Looking forward to learn more from you!

  • @sahilnenwani6528
    @sahilnenwani6528 3 дні тому

    Loved your way of explaining up the things, 19 minutes totaly worth to watch

  • @AnandaKrishna-t3h
    @AnandaKrishna-t3h 6 днів тому

    Very refreshing video, between leetcode problem solving videos.
    looking forward to see more system design lecture , Thank you.

  • @NeoMekhar
    @NeoMekhar 3 дні тому

    Awsome video, awsome topic as well. I wanted to learn more about using sqlite for caching, particularly now with WASM tools like the sqlite-vec extension for vector search!! This was great!
    Visuals were great!

  • @kikisbytes
    @kikisbytes 6 днів тому

    Love the thorough run through and easy explanation!

  • @michelle_tsai_drums
    @michelle_tsai_drums 6 днів тому

    Love the vid! Visuals help a lot, thanks for taking the time to draw them!

  • @kooravid-hd8586
    @kooravid-hd8586 День тому

    Great video you should keep the images and cover more details on each topic.

  • @tejasgoyal5658
    @tejasgoyal5658 12 годин тому

    absolutely love the sys design videos, pls do more

  • @pollathajeeva23
    @pollathajeeva23 5 днів тому

    Great job, man! I will check out your newsletter. Thanks!

  • @AliMalik-yt5ex
    @AliMalik-yt5ex 5 днів тому

    Yes! Visuals are fantastic, especially for breaking down abstract concepts. Love this initiative.

  • @codygao8323
    @codygao8323 4 дні тому +1

    Great video as usual, i love your explanation and diagrams! Keep up the good work, THANKS

  • @satyasanjay1339
    @satyasanjay1339 5 днів тому

    Visuals are key to understanding any topic much faster and better. So, add more if necessary.

  • @colineckert
    @colineckert 5 днів тому

    great video! love the visuals, length, and overall format 👍

  • @ismbks
    @ismbks 6 днів тому +1

    sqlite is possibly the best piece of software written in the 21th century

  • @felixx2012
    @felixx2012 4 дні тому

    Love seeing these system design videos, keep it up (but also keep up leetcode questions, I'm still unemployed)

  • @warrenhenning8064
    @warrenhenning8064 5 днів тому

    Love stuff like this. Signed up for the newsletter.

  • @ernestodapodaka
    @ernestodapodaka 5 днів тому

    20 min, visual and mixing several topics in your cocktail shaker would be great.

  • @TonyHoabc
    @TonyHoabc 5 днів тому

    I like the coding, it really adds to the typical system design videos.

  • @fareedjaved5986
    @fareedjaved5986 4 дні тому

    Great deep dive. I appreciate the visuals.

  • @jmms49
    @jmms49 5 днів тому

    Cool video! I think the shared worker is called "service worker"?
    BTW, you forgot to link the newsletter in the description

  • @satyamjha68
    @satyamjha68 6 днів тому

    Do more of these videos plz!! Joined your newsletter!

  • @DNKF
    @DNKF 5 днів тому

    Please do more videos like this! Please don't leave daily Leetcode problems too =] These 2x are "must have" to interview.

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

    Love the video. Maybe I'm in the minority, but i'd love if you could "test" a video where there aren't as many edits stitched together if that makes sense. ie when you make a statement, let the clip run into the next section and leave the pauses. It'll let the idea settle and sink easier, although the con here is that you'll get longer videos. Just a thought.

  • @Nxck2440
    @Nxck2440 6 днів тому

    I have a software interview tomorrow. Watching this to see if I can learn some system design lingo to trick them into thinking I know stuff.

  • @knkootbaoat6759
    @knkootbaoat6759 5 днів тому

    the visuals are good. obviously could always be better but i dont have further feedback on how. for the vid length could definitely cut it a bit.
    Thanks as always

  • @techstudio7331
    @techstudio7331 6 днів тому

    This was extremely awesome and kept my attention intact and curiosity raised, drawing and images way of explanation is better (atleast for e) than rambling while showing up bunch of text. Thankyou so much.
    Btw might be a naive question, how do you get to know about news as such ? what are your sources?

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

    I love the video and the explanation and the detail and everything. You genuinely want your viewers to learn these things and it shows. Thanks

  • @dmc_xenon2411
    @dmc_xenon2411 5 днів тому

    Love the content! Keep the visuals coming. they make things much easier to understand.

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

    Awesome awesome video! Thank you for taking the time to draw and give a great explanation of their system, I found it really helped and connected all the pieces together! You are the GOAT. I love these types of videos. Keep up the great work!

  • @biradon4444
    @biradon4444 5 днів тому

    The visual is amazing, keep doing it 🔥

  • @emonymph6911
    @emonymph6911 2 дні тому

    Pictures and diagrams are a requirement. Rather than creating your own you can use some icon library and grab what you need. Boring standards is better than flashy when learning, it's more important that everyone is on the same page.

  • @hstivggfghyhgfg8359
    @hstivggfghyhgfg8359 5 днів тому

    There is a key-value database like Firestore built into the browser (IndexedDB) without any limits. I guess Notion team's wants to write SQL

  • @hrshlgunjal-1627
    @hrshlgunjal-1627 5 днів тому

    Loved the pictures. Explaination was amazing as well. And yup 20 minutes is ideal. Thanks for making this newsletter.

  • @sjtgs
    @sjtgs 5 днів тому

    I love the video . I love the practical aspect. Kudos to you ....

  • @stryhx
    @stryhx 6 днів тому

    need some more videos like this my man!!!!!! keep up the good work!

  • @nadrojcs
    @nadrojcs 3 дні тому

    What a creative solution by Notion and creative product aswell

  • @johnmarkham5695
    @johnmarkham5695 3 дні тому

    Dude do more system design. This was perfect

  • @adilansari-hq9ge
    @adilansari-hq9ge 6 днів тому

    Superb Content Bro!
    Expecting more and more such videos and more images ,graphics and code samples and less Text.
    I felt 20 minute is less , 30 minutes should be fine.

  • @BROOKnim
    @BROOKnim 6 днів тому

    Great video man! If you do get time make more videos on these concepts, atleast for things in you newsletter that you fell are video worthy!
    Again, great video man!

  • @xdaniels13
    @xdaniels13 4 дні тому

    Great video, good length and details enough to be awesome watch and educational keep it up

  • @goombagrenade
    @goombagrenade 4 дні тому

    Great and helpful video. More system design videos please!

  • @omi_khan4901
    @omi_khan4901 5 днів тому

    loved the video, it's perfect. Concise and letting me know the things possible as opposed to exactly how to do it.

  • @sumoinbush
    @sumoinbush 5 днів тому

    Keep the style! This works really well and I understood everything. Thank you

  • @abhishekvishwakarma9045
    @abhishekvishwakarma9045 3 дні тому

    not a single minute feels boring this is how one should explain System architecture 🔥

  • @adityaanuragi6916
    @adityaanuragi6916 5 днів тому

    Loved the video, I like how you explained system design
    Often with bytebytego (which I do like) I do feel a little stumped at times
    Also if I understand correctly we are literally having a database on the client side?!? That seems wild, but why didn't they just use indexedDB

  • @sifatulrabbi
    @sifatulrabbi 3 дні тому

    awesome explanation and liked the way you draw too.

  • @AnhNguyen-ro3iz
    @AnhNguyen-ro3iz 4 дні тому

    This is awesome! I like the length of your video, your explanation and thought are clear as always! Please keep making these!

  • @ashishalex10
    @ashishalex10 5 днів тому

    learnt something within 5 mins of the video. Quality content, thank you !

  • @shaunfurtado7368
    @shaunfurtado7368 5 днів тому

    Honestly, Everything about your content, the way you share is just awesome for understanding. Looking forward for even more of these content.

  • @hassanmehmood8711
    @hassanmehmood8711 5 днів тому

    That's some premium quality content here. Loved that

  • @hstivggfghyhgfg8359
    @hstivggfghyhgfg8359 5 днів тому

    Also localstorage has a 5MiB limit

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

    I'd love to hear even more details. wouldnt mind if u go towards 40 min long

  • @ayzack2361
    @ayzack2361 5 днів тому

    I really like this video! I like the visuals, the length is perfect.

  • @yusufnurwahid898
    @yusufnurwahid898 5 днів тому

    Great video man!!! Keep up the good work!!!
    I really enjoy the explanation...

  • @abhishekoraon8935
    @abhishekoraon8935 2 дні тому

    Great explanation, insightful ❤

  • @vishwanathsingh8507
    @vishwanathsingh8507 5 днів тому

    Amazing video! Keep making more of these

  • @steco5441
    @steco5441 5 днів тому +2

    im so tired of programming man i just wanna sit and read a book man its so sad, I wanna get a ton of money in lottary or some unknown billioonaire uncle so I can just enjoy my life instead of focusing everything about practicing every day after work just to get freaking MONEY

  • @slai2389
    @slai2389 4 дні тому

    Excellent video, looking forward to have more like this. Really need some practical system design knowledge. Thanks for your videos as always

  • @yuri.caetano
    @yuri.caetano 5 днів тому

    Hi nav, I really enjoied a lot your video. I'm mind of tech lead in the places I work. We are doing aí stuff.
    And it's very good to me to see how others experts are solving their problems

  • @rajamohamed134
    @rajamohamed134 4 години тому

    Loved it, pictures conveyed a lot better👍

  • @دردشةفيالهوى
    @دردشةفيالهوى 5 днів тому

    thank you so much, looking forward

  • @ridabrahim7604
    @ridabrahim7604 18 годин тому

    Keep doing these videos, i learned a lot from this. Also this just made me realize than as a self taught sometimes you can invent your own solutions to overcome programming problems like workarounds same as what notion did with race requests etc

  • @guitarhero69
    @guitarhero69 5 днів тому

    sick video. with a hands on explanation it was easy for a novice like me to understand it. i need moreeee

  • @hapaise2924
    @hapaise2924 5 днів тому

    loved the video with the details , images and everyhting. it was soo clear and eays to understand, lots of knowledge as well!

  • @Tronn62158
    @Tronn62158 5 днів тому

    great explanation, enjoyed the pictures

  • @kng1433-g4x
    @kng1433-g4x 4 дні тому

    I actually prefer Informative videos and 'Hour-long-videos' actually doesn't matter to me yk, I'd like if you produce such contents as I really feel your ability to explain is pretty neat.
    Oh and also, really nice and informative visuals I really appreciate it.

  • @UIEngineering101
    @UIEngineering101 2 дні тому

    what prompted Notion team to use SQLite instead of SQL-like storage already available in the browser called indexDB?

  • @ridabrahim7604
    @ridabrahim7604 19 годин тому

    Just subscribed to your newsletter, if you open the website from a mobile phone you can't find any place to sign up, i had to write the exact url to get it

  • @dera_ng
    @dera_ng 5 днів тому +1

    I don't think there's a limit to how far neetcode can go again 😓
    Just when you think bro has settled and we can have some time to make a meaningful catch-up, he blasts off again.
    I'm tired 😩.

  • @michaelevans4139
    @michaelevans4139 5 днів тому

    This is fire ! Keep more of these coming !

  • @fengyuan7838
    @fengyuan7838 5 днів тому

    Great video, great explanations, great visuals

  • @yamix-tr
    @yamix-tr 2 дні тому

    i think it's a good idea, but most users that have old phones don't usually pay for their service ... they even can't download the newer versions of the app ! same applies for computers, if you can't spend 800$ for a good PC, there is a higher chance your not paying for anything & you'll end up downloading an older cracked unstable version of the app
    if we keep focusing on those users that don't spend money to use some of your services the company will end up spending more & earning less.
    many companies sometimes focus on Apple users even when they are only 60% of users because they are more likely to pay for an app than Android users & they represent the 80% of their earnings.
    it's just business, but everything comes with a cost like Data Corruption & they will have to find a better way as you explained !