Deno Queues | Prime Reacts

Поділитися
Вставка
  • Опубліковано 8 лют 2025
  • Recorded live on twitch, GET IN
    / theprimeagen
    Reviewed article: deno.com/blog/....
    Authors: Ryan Dahl - / ryanmdahl | Andy Jiang - an... | Igor Zinkovsky - ig...
    MY MAIN YT CHANNEL: Has well edited engineering videos
    / theprimeagen
    Discord
    / discord
    Have something for me to read or react to?: / theprimeagenreact
    Hey I am sponsored by Turso, an edge database. I think they are pretty neet. Give them a try for free and if you want you can get a decent amount off (the free tier is the best (better than planetscale or any other))
    turso.tech/dee...

КОМЕНТАРІ • 113

  • @Kotfluegel
    @Kotfluegel Рік тому +49

    Serverless is literally CGI (Common Gateway Interface) all over again.

    • @JamesRouzier
      @JamesRouzier Рік тому +5

      FastCGI equivalent will added soon

  • @nightshade427
    @nightshade427 Рік тому +10

    Mixing db inserts and queuing into one commit is super helpful, eliminates the need to crazy architectures to achieve the same result. This is a huge win.

  • @kibels894
    @kibels894 Рік тому +24

    Serverless got millions of engineers that don't even work for Amazon to optimize their billing and capacity for them.

    • @succatash
      @succatash Рік тому +1

      But they aren't optimizing AWS. So still sucks.

    • @jerrygreenest
      @jerrygreenest 10 місяців тому

      Basic programmers optimize their serverless, which is quite convenient thing to do if you have at least a little brain.
      And Deno programmers optimize their AWS. So it doesn't actually suck. That's just a shift of responsibilities.
      The only bad thing is that normally those wrappers cost x10 or even x100 of something original thing would cost.
      Looks NextJS it's wildly costed. It wasn't so expensive in early days for adopters, but now is. Same thing might be to Deno.

  • @andythedishwasher1117
    @andythedishwasher1117 Рік тому +12

    Dude you gotta try Surreal DB. It's so silky smooth. Never had an easier time making a DB do what I wanted. Sorry for the shill, not affiliated, just a fan. I've been building a number of automated deployment modules with it because it's been a dream to integrate just about anywhere so far.

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

      SurrealDB is awesome, super flexible. I haven't been keeping as up to date with it like I used to. Does it have any good integrations with ORMs now? The only thing I was really missing when using it was better type safety and maybe a more explorable API.

  • @ESPViper100
    @ESPViper100 Рік тому +11

    Whenever a new JS framework comes out, somewhere, someone publishes a new database.

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

      Yet with inter-service messaging, we're still stuck with Kafka and RabbitMQ.

  • @user-qr4jf4tv2x
    @user-qr4jf4tv2x Рік тому +16

    1 db per month and 1 js framework a day

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

      🤣 in the end each js user, will hv it is own framework....

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

      Foundation ain't new

  • @josevargas686
    @josevargas686 Рік тому +5

    Fresh from Deno is really nice. It is hard to explain, but imagine that you got Bun+Astro but a lot more standardized and less glue code. Plus you get all the Deno Deploy stuff.

    • @ollierkul
      @ollierkul Рік тому +1

      The only thing I miss from Fresh is better options for styling.. and maybe the flexibility of using other UI frameworks, like in Astro. The experience of using it though is very nice and feels more minimal compared to other meta frameworks.

  • @whamer100
    @whamer100 Рік тому +7

    Eventually serverless is going to create dedicated professors for interpreting javascript with built in V8

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

      You can have a "serverless" function that's written in any language.

    • @whamer100
      @whamer100 Рік тому +1

      @@_____case i mean, yeah obviously, but this is a video related to js

    • @_____case
      @_____case Рік тому +1

      @@whamer100 I guess I'm just saying that I think it's unlikely that serverless companies will build solutions that only support JS applications.

  • @JasonSmith80513
    @JasonSmith80513 Рік тому +30

    Deno is really nice to use. It cleans up a lot of Node design mistakes. The new kv stuff seems useful, but I wonder about them bolting this stuff into the runtime. Why not just a library?

    • @gdmk1000
      @gdmk1000 Рік тому +2

      because the serverless runtime knows where the function is run and so can optimize the database access, so kv reaches real time speeds

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

      So they can take your money 🤑 💰

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

      Cant be a library since it works differently on local and on deploy
      On local is backed by SQLLite or something and on Deploy is backed by FundationDB
      So it has to be part of the runtime, becase underhood that is run by the runtime differently

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

      It definitely could be a library - building it into the runtime is largely for convenience (zero config database that works out of the box in local dev and prod on Deploy). The only functional difference then would be you'd import the KV APIs first, rather than directly calling them on the Deno.* namespace. We may end up going this route eventually based on feedback during the beta period.

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

      @@kevinwhinnery how can be a library without exposing the internal works of Fundation db?
      Or it would be just the library to use the API?

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

    I think Bun will just copy this business model, makes so much sense have all of this build into the runtime and sell it on the cloud.

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

    What all node user is asking for, is speed and lower memory usage. if Deno solves this problem, the popularity will increase

  • @gdmk1000
    @gdmk1000 Рік тому +11

    deno's core idea is tied to what seems like a pretty boring feature before you realize the implications. it wrapd v8 as a sandbox for server code, like a browser is a sandbox for client code. that means you can create services that host customer code as an isolate, no docker. node and bun can never do that. the way deno's code is architected is also unique, it's very easy to use it to create custom js runtimes, like what supabase is doing to replace kong.

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

      Wait, doesn’t Node wrap v8?

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

      @@squrler yes but not a sandbox

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

      Isn't BUN sandboxed?

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

      @@succatash no, since it's supposed to ne a drop in for nodejs

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

      @@gdmk1000 what BUN? It says it's sandboxed, I don't think it's drop in for nodejs, they've just made it that node works with BUN like deno does now.

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

    I use Deno with TS for cross platform CLI programming, since Mojo is not ready for that. I love it pretty much.

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

      And I thought I was being cool by using the new hip Rust language for CLIs.

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

      @@comradepeter87 You are, my friend. But I want something that is purely interpreted to have a similar flavor to shell programming. That's why I wouldn't consider Go either, although it's ideal for CLI programming. I would pick a different language if I want to publish a binary.

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

    The Java getters and setters got me. My colleague wrote thousands of lines of them in our small project.

  • @jeanchindeko5477
    @jeanchindeko5477 Рік тому +2

    Foundation DB is not new at all. It was created in 2009.

  • @aztracker1
    @aztracker1 Рік тому +1

    I've been following Deno and Cloudflare workers with great interest.
    It'd be nice to see some API abstractions that can target both. For the most part, can self host with either, but scaling without their ecosystem can be harder.
    I'm tempted on both fronts. Cloudflare is maybe more established but the Deno experience feels more polished.
    Not sure about how well webasm would work with either. I kind of wish they both offered a rust+webasm system with an established runtime and similar usability features.

  • @andrewforrester6713
    @andrewforrester6713 Рік тому +29

    Deno is legitimately awesome

  • @riscnx
    @riscnx Рік тому +2

    Sqlite?
    Dude SQLITE is the Humankind's 1st Non-client/server Database.
    And is still pretty much only production ready DB of it's kind.

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

      SQLite is only used when running the Deno CLI. When deployed on Deno Deploy, KV + Queues use FoundationDB.

  • @covle9180
    @covle9180 Рік тому +1

    Avoiding vendor lock in is as easy as making a docker container (and understanding the basics of k8s). All of the hyper scalers and many smaller providers all over the world support k8s clusters or some form of container hosting.
    Serverless is great until it's not and then it's terrible.

  • @trashcan3958
    @trashcan3958 Рік тому +2

    Put your backend in a docker container. Easy no vendor lock in. Also, host your BD using sqlite and a raspberry pie in your living room ;)

  • @ollierkul
    @ollierkul Рік тому +1

    Been spending a lot of time playing with Deno KV and queues. It's really nice imo. Can also do cron jobs with recursive enqueueing, all serverless.

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

      This comment sent me

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

      @@ProfessorThock To the Deno docs I'm sure ;)

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

    i would absolutely love if they build the features that you can selfhost it if you want. like currently theres no way to switch locally run deno kv from sqlite3 to foundationdb

  • @BlackAsLight448
    @BlackAsLight448 7 місяців тому

    You can use these features without hosting on Deno deploy. You just run Deno on your own servers.

  • @stefankyriacou7151
    @stefankyriacou7151 Рік тому +2

    I would actually use deno if they had self hosting feature parity

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

    GO DENO

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

    Love that they give you currently up to 30 days of delay which seems pretty unnecessarily complex with AWS 😢

  • @skiesaboveunlimitedstargaz7316

    Deno is basically saying "No" to Node... If you scramble the letters it becomes .. Deno = Node...

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

      Deno is just "Node" in big endian

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

      @@whamer100 You made me laugh out loud XD Thank you for that one.

    • @gosnooky
      @gosnooky Рік тому +1

      @@whamer100 Very clever. You get a cookie.

  • @ryan_the_dev
    @ryan_the_dev Рік тому +1

    deno reaction, called it!

  • @crowlsyong
    @crowlsyong 4 місяці тому

    1:26 this is nuts

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

    Is this an attempt to expand deno so that you end up with deno-andys?

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

    So, rabbitmq in javascript?

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

    Is the pricing is a "Trap"?

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

    Pulumi is multi cloud infrastructure IAC baby.

  • @Tony-dp1rl
    @Tony-dp1rl Рік тому

    Serverless is a Shit Diode. When a Shit Diode breaks down, it means that it starts conducting a significant amount of Shit in the reverse direction back to the developers, which is not its intended operation.

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

    Until Deno supports sharing state between multiple deployed binaries, all of their KV-based features only encourage building monoliths.

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

      You can connect to the same KV instance from multiple different processes.

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

      ​@@ollierkul Is that true now? Last I checked, that wasn't supported. I'm assuming by "processes" you mean "deployed services".

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

    I run my staff on VPS on the cloud. Cheaper, more performant and with no small lettering notes abouts charges which drove me nuts with Azure, AWS etc...

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

      First time trying AWS I unknowingly accepted a recommended service which charged me over $2000 for what I planned to be a free project

    • @georgespanos4680
      @georgespanos4680 Рік тому +1

      @@ProfessorThock I hope you don't pay this.

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

      Literally. $3.5 VPS at Hetzner can power most web apps nowadays.

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

      @@georgespanos4680 took almost two months but I did get the money back and was quite relieved

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

    What differentiates this from RabbitMQ or Kafka?

    • @JosifovGjorgi
      @JosifovGjorgi Рік тому +7

      it's billable by default :)

    • @brainsniffer
      @brainsniffer Рік тому +1

      Man, deno just went back in time and made service broker in sql in 2008

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

      Code native db deploy, config mgmt, and queues built on V8; a turnkey package. Not a new concept, but first I’ve heard with queues at the forefront

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

      Well, no Erlang or Scala involved.

  • @seanZG
    @seanZG 5 місяців тому

    They use GCP

  • @tc2241
    @tc2241 Рік тому +1

    Ahhh yes, consolidate so that’s it’s a pita to migrate when the company inevitably gets sold/goes under

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

    SQeaL

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

    deno?

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

    😂😂😂😂😂😂😂😂

  • @jockey101
    @jockey101 Рік тому +1

    Not first.

  • @AhmedMohammed23
    @AhmedMohammed23 Рік тому +80

    free palestine

    • @Kane0123
      @Kane0123 Рік тому +57

      Is that a new JS framework or database?

    • @Kane0123
      @Kane0123 Рік тому +18

      Or are they locked into a cloud vendor? Sorry I’m trying to understand

    • @SpikeTaunt
      @SpikeTaunt Рік тому +22

      Why are you giving it out for free, what's wrong with it?

    • @MerkieAE
      @MerkieAE Рік тому +24

      free bsd

    • @AhmedMohammed23
      @AhmedMohammed23 Рік тому +8

      @@MerkieAE What you’re referring to as Free BSD, is in fact, GNU/BSD

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

    Deno is like fetch. Stop trying to make it a thing

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

    Come on it's not that hard to setup systemctl

  • @fearclan5913
    @fearclan5913 Рік тому +1

    bubies