Benchmarking Databases on Vercel | Prime Reacts

แชร์
ฝัง

ความคิดเห็น • 80

  • @ThePrimeTimeagen
    @ThePrimeTimeagen  ปีที่แล้ว +63

    i reached out to the author and he said he used only free tiers for this test. Hence the reason there is no planetscale replication as its not available in the free world.

    • @rumplstiltztinkerstein
      @rumplstiltztinkerstein ปีที่แล้ว +5

      When people mentioned the 't' in Toronto, you should have started saying "Oronto" instead xD

    • @cookie_doki
      @cookie_doki ปีที่แล้ว

      What about supabase replication? Supabase got destroyed here but it didn't look like they enabled replication.

    • @glommeryt
      @glommeryt ปีที่แล้ว +2

      ​@Cookie note that all setups were provided by the database vendors themselves! (author here).
      This is not a benchmark where we set up other vendors, this is organized by Vercel and each vendor set up their own systems.

  • @Pscribbled
    @Pscribbled ปีที่แล้ว +19

    18:11 I looked at the docs and Turso is essentially a read only replica as well. The difference is for writes, you still use the edge as an endpoint but it sends the write over to the primary.

    • @ThePrimeTimeagen
      @ThePrimeTimeagen  ปีที่แล้ว +4

      ok, that is pretty neet. but good to know.

    • @Pscribbled
      @Pscribbled ปีที่แล้ว

      Not sure how planet scale works but I guess the benefit or turso is that you can just write to the replica and call it a day. You can offload the slow request to the primary to turso. I’d be interested in how they keep their system fault tolerant so that they don’t drop writes if a node fails

    • @seannewell397
      @seannewell397 ปีที่แล้ว

      For optimistic updates I bet this would still slap (ie experiences like Linear)

  • @igorcastilhos
    @igorcastilhos ปีที่แล้ว +6

    Brazil mentioned! Yeahhh, come to Brazil Prime, we will give you some Pão de Queijo and Coxinha with caldo de cana. During the night time you will drink Cachaça💚💛💙

  • @TheGuigaboy
    @TheGuigaboy ปีที่แล้ว +8

    This is aewsome! As a software engenieer based in Brazil, we plan our applications to make as few requests as possible to anything in America and in many ocasions the latency is a deal breaker. Truely life changer lol

    • @TheGuigaboy
      @TheGuigaboy ปีที่แล้ว +1

      + Turso website is the fastest one i visited in a looooong time

    • @glommeryt
      @glommeryt ปีที่แล้ว +4

      ​@Tunema hey - author of the blog here. I was actually born and raised in Brazil, although by now my Portuguese sucks a bit! Glad to see you liked the website

    • @crazycoder9356
      @crazycoder9356 ปีที่แล้ว

      coé parça

    • @TheGuigaboy
      @TheGuigaboy ปีที่แล้ว

      @@crazycoder9356 doidera meu brod

  • @Craftidore
    @Craftidore ปีที่แล้ว +7

    Eager to see Prime turn back into his primary for of 'cat'
    (for context, the title at the time of watching is "Benchmarking Databases on Vercel | Prime Recats", in case Prime fixes it later)

  • @coreyalexbarker
    @coreyalexbarker ปีที่แล้ว +6

    The idea of having read replicas everywhere sounds great in theory, but replication lag can be a killer. Especially for those cases where you require your data be fresh everywhere and have to enforce sync writes (and sync replication).
    If your data can be a bit stale though, and use async replication, the more replicas the merrier.

    • @VuTuanIT
      @VuTuanIT ปีที่แล้ว

      If the data need to be fresh then you just need to read directly on the write connection. Does it work in this case?

    • @seannewell397
      @seannewell397 ปีที่แล้ว

      I question when this actually is important. Stock tickers? Your avg CRUD SaaS probably won't care even for up to a minute lag. >5min and we have problems tho for sure.

  • @cam545
    @cam545 ปีที่แล้ว +4

    I came here to find hot databases in my area, not disappointed

  • @Richetechguy
    @Richetechguy ปีที่แล้ว

    Great experience working with Turso so far, definitely suggest trying it out, def tried this out b/c of Prime.

  • @Red-vi3xb
    @Red-vi3xb ปีที่แล้ว +3

    NGL prime your literally the Dr Dis of programmming,love that i came across your channel had fun learning and getting enterained these past few days

  • @draakisback
    @draakisback 9 หลายเดือนก่อน +2

    Turso is interesting, they use raft consensus as far as I can tell to synchronize the various read state replicas across edges. On one of my previous projects, we combined raft with CRDTs to build a time series database and let me tell you, I wish this thing was not proprietary because I would absolutely be pushing it as the best distributed time series database out there. It just makes sense to do time series this way since you rarely are deleting or mutating data in a time series table. Anyway, I also wish that turso was open source.

    • @ThePrimeTimeagen
      @ThePrimeTimeagen  9 หลายเดือนก่อน

      you can always ask Glauber on twitter. he is pretty open about a lot of the decisions they make

    • @draakisback
      @draakisback 9 หลายเดือนก่อน

      @@ThePrimeTimeagen hmm, might be worth getting an actual Twitter account one of these days...

  • @asdfssdfghgdfy5940
    @asdfssdfghgdfy5940 ปีที่แล้ว +4

    Watching this from Australia in 240p because of how bad the internet is

  • @stephanjacob17
    @stephanjacob17 ปีที่แล้ว +1

    Your pronunciation of Rio de Janeiro is suprisingly good

  • @dn5426
    @dn5426 ปีที่แล้ว +4

    marketing benchmarks always have some amount of bs in them.

  • @danielvaughn4551
    @danielvaughn4551 ปีที่แล้ว +6

    I'm super interested in Planetscale, though they don't support foreign keys and it just freaks me out lol. I've never used a db without fks.

    • @CARPB147
      @CARPB147 8 หลายเดือนก่อน

      Even Oracle didn't support FKs until v8.x. From Oracle v4 through v7 it was a royal handicap not having them.

  • @GMUStudentDesign
    @GMUStudentDesign หลายเดือนก่อน

    Anyone know of write speed graphs please?! Wouldn’t Turso writes be slower?!

  • @nachovc
    @nachovc ปีที่แล้ว

    This is interesting because of the freemium perspective, but it doesn't bring fundamental shifts. I'm more interested in seeing how Cloudflare would do with their Distributed SQLite approach if they really get to make read/write replicas.
    At this moment, No-SQL alternatives like FaunaDB or CoakroachDB seems to be the ones actually breaking the molds with respect of edge data.

  • @Wolfeur
    @Wolfeur ปีที่แล้ว +1

    Remember, the name…is the Pruh-mEE-gen!

  • @TheStruders
    @TheStruders ปีที่แล้ว

    Is the added complexity of the edge and distributed systems worth the small performance gains? Maybe? Maybe not?

    • @willi1978
      @willi1978 8 หลายเดือนก่อน

      or keep everything local, like in an android app

  • @personcalledjames
    @personcalledjames ปีที่แล้ว +8

    The benchmark should have been done with Planetscale's read replication turned on for it to be a fair comparison. I'd be very interested to see how that would affect the results.

    • @ThePrimeTimeagen
      @ThePrimeTimeagen  ปีที่แล้ว +8

      yeah, the 1v1 results show a big difference as is
      but the read replication is a pay for feature only. i reached out to the author and he said he used only free tiers for this test.

    • @glommeryt
      @glommeryt ปีที่แล้ว +2

      Author here! The tool is provided by Vercel, not us, and each database contributed their own setups - including Planetscale. That said, this is not really a benchmark against Planestcale - they actually did fantastic !
      You are right that with read replicas planetscale (and others) can achieve this, but there is a reason they - and others - didn't add replicas in this test. It's quite expensive!
      The advantage of Turso, that I tried to touch on the article, is how easy and cheap (the free tier alone already has 3 locations) is to set up replication.
      Great comment, though! ❤

  • @ardawanx
    @ardawanx ปีที่แล้ว

    12:20 @ThePrimeTime, could you pls make a video about what defines a really good engineer and how can achieve that level?

  • @denissorn
    @denissorn ปีที่แล้ว

    Like Vuk Karadžić said: "Write as you speak and read as it is written."

  • @preetham524
    @preetham524 ปีที่แล้ว +1

    7:39 pure?

  • @samuelschwager
    @samuelschwager ปีที่แล้ว

    I walked on a Pierre and watched some boats

  • @WhiteThunder121
    @WhiteThunder121 ปีที่แล้ว

    Why should I use Edge to access my database 😭

  • @heroe1486
    @heroe1486 ปีที่แล้ว +1

    Why shouldn't you deploy at the edge ? Just read the pretty inconvenient cons on Vercel's own page ( + ignoring the fact that you have to write JS on the backend 😅)

    • @ThePrimeTimeagen
      @ThePrimeTimeagen  ปีที่แล้ว +1

      Yeah the JavaScript thing kind of sucks

    • @jonasrothmann1536
      @jonasrothmann1536 ปีที่แล้ว

      Doesnt vercel edge use CF workers which supports rust?

  • @caseyclayton01
    @caseyclayton01 ปีที่แล้ว

    I lived there for a couple of years and got dirty looks for pronouncing it as Pierre my first month. I liked living in Sioux Falls more, outside of the scars of being a Cobol dev the first year I was there and then Java, so not much better.

  • @aztro8323
    @aztro8323 ปีที่แล้ว +3

    Prime recats

  • @SamualN
    @SamualN ปีที่แล้ว +1

    tiger beetle is real

  • @after_alec
    @after_alec ปีที่แล้ว

    Blazingly fast

  • @Turalcar
    @Turalcar 3 หลายเดือนก่อน

    7:18 You could go 1 step further and pronounce Detroit as De-true-ah

  • @Dev-Siri
    @Dev-Siri ปีที่แล้ว +2

    YOU ARE GOING TO BRAZIL

  • @imyerf5382
    @imyerf5382 ปีที่แล้ว

    As a Helena,MT guy … I’m concerned

  • @hexnaught
    @hexnaught ปีที่แล้ว

    Wonder how this compares to Cockroach DBs offerings ?

  • @mjerez6029
    @mjerez6029 9 หลายเดือนก่อน

    this guy is discovering that the water is wet... do we really need these kind of articles to state the obvious? apparently yes. There is CDN and and there is data-centers. Edge computing is a wicked concept. but apparently people need to spend millions before realize.

  • @cheebadigga4092
    @cheebadigga4092 ปีที่แล้ว

    it happens once every twice

  • @maluraq
    @maluraq ปีที่แล้ว

    Canadians are just excited they got referenced at all

  • @zeyadkenawi8268
    @zeyadkenawi8268 ปีที่แล้ว

    won't that be very expensive? You literally have a database per edge + cross region costs are pretty high in the cloud so that will add another hidden cost just to get a couple of milleseconds.

  • @zezkai7887
    @zezkai7887 ปีที่แล้ว +1

    Why don't you like C++? I know Rust is great and doesn't have hidden execution paths, but at least in C++, you can recover from Out of Memory errors. (Just to note, I really like Rust.)

    • @jonforhan9196
      @jonforhan9196 ปีที่แล้ว

      C++‘s share Pointers are thread safe by default meaning they have extra over head on construction because they are atomic. Rust has Rc and Arc for specific use case. Rust io and string manipulation is leagues ahead of C++. The compiler, build tools, packages and ecosystem are better. CMake is horrible, i build recursive globing smart CMake scripts with for loops macros function… it’s horrible. Cargo is a dream to work with. Again the dependency management is just better. And Rust is just plain more fun to write in

    • @DMSBrian24
      @DMSBrian24 ปีที่แล้ว

      Other than terrible ecosystem/toolchain, C++ is extremely hard to learn and extremely easy to cause some serious issues in without even realizing it. It's super feature-bloated and those features are not easily discoverable, a lot of the more modern changes are good but at this point it's almost impossible to know what's best practice, what you should do and what you should avoid, reading someone else's code can be hell even if you're already very proficient at it. There's less and less junior C++ jobs nowadays, because juniors are useless at writing C++, you're either very good at it or you're useless, or even potentially detrimental to the project if your mistakes go unnoticed. Since better alternatives exist nowadays, there's simply no reason to use it, and no reason for new devs to learn it.

  • @CuevasGPablo16
    @CuevasGPablo16 2 หลายเดือนก่อน

    Chile mentioned

  • @invinciblemode
    @invinciblemode ปีที่แล้ว +1

    Prime Recats 🐱

  • @ripple123
    @ripple123 ปีที่แล้ว +2

    RECATS

  • @Rundik
    @Rundik ปีที่แล้ว

    Pretty misleading messages on their landung page. They put the text "Open source" at the top when it's not actually open source. Just some library they are using is open source and it's just a fork of sqlite

  • @tsalVlog
    @tsalVlog ปีที่แล้ว

    JAY SAHN

  • @jduartea
    @jduartea ปีที่แล้ว

    Hello from SANTIAGO DE CHILE

  • @Swadand04
    @Swadand04 ปีที่แล้ว +1

    pee-air

  • @JorgetePanete
    @JorgetePanete ปีที่แล้ว

    Recats
    meow

  • @jacobeperry
    @jacobeperry ปีที่แล้ว

    I want to see the graph of viewers anger after the pronunciation section! 😂😂😂😂

  • @BracingRex6989
    @BracingRex6989 ปีที่แล้ว +1

    brasil ? BRAsil ! BRASILLLLLLLLLLLLLLLLLL !!!

  • @jeremey__
    @jeremey__ ปีที่แล้ว

    redis is best

  • @eitanseri-levi2169
    @eitanseri-levi2169 8 หลายเดือนก่อน

    bruh

  • @duztdruid
    @duztdruid ปีที่แล้ว

    No mention of the elephant in the room: who wants to use an Sqlite based database in a world where everyone is used to the capabilities of eg. Postgres.

  • @TigreXspalterLP
    @TigreXspalterLP ปีที่แล้ว +2

    you should disclose the sponsorship. this is basically an ad

    • @ThePrimeTimeagen
      @ThePrimeTimeagen  ปีที่แล้ว +2

      ok real talk, i wasn't paid to read this. yeah i am sponsored on various things for the overall company behind it, but this was a "non sponsored" content.
      reasonably speaking, do i put ad or not on it? i genuinely don't know

    • @TigreXspalterLP
      @TigreXspalterLP ปีที่แล้ว +4

      @@ThePrimeTimeagen you should clarify your relationship with turso at the beginning of the video similar to linustechtips does with his investment in framework even if the video is not directly sponsored.
      you obfuscated this relationship by saying "this is my favorite database", "he is a very nice guy" and "turso engineers are very smart people" without disclosing the sponsorship. you also did it again in the pinned message e.g. you did not reach out to "the author", but to your sponsor.
      this is a problem, because i watch your videos to learn about new tech. these statements make it look like this is the best thing ever and i should check out libsql and turso. but not disclosing the relationship undermines your credibility a lot for me, because i have now to double check every project you talk about.

  • @Jensemann099
    @Jensemann099 ปีที่แล้ว

    shout louder XD

  • @liquidcode1704
    @liquidcode1704 ปีที่แล้ว +2

    I always called it "pee air" ever since I was little (but I'm from WV and maybe we all have fukd accents)

  • @anandmahamuni5442
    @anandmahamuni5442 ปีที่แล้ว

    Bro looks and sounds like drdisrespect