Deno Queues | Prime Reacts

Поділитися
Вставка
  • Опубліковано 6 жов 2023
  • Recorded live on twitch, GET IN
    / theprimeagen
    Reviewed article: deno.com/blog/queues#:~:text=....
    Authors: Ryan Dahl - / ryanmdahl | Andy Jiang - andyjiang?lang=en | Igor Zinkovsky - igorzi_?lang=en
    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/deeznuts
  • Наука та технологія

КОМЕНТАРІ • 110

  • @Kotfluegel
    @Kotfluegel 8 місяців тому +48

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

    • @JamesRouzier
      @JamesRouzier 8 місяців тому +3

      FastCGI equivalent will added soon

  • @nightshade427
    @nightshade427 8 місяців тому +9

    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 8 місяців тому +20

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

    • @succatash
      @succatash 8 місяців тому +1

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

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

      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.

  • @ESPViper100
    @ESPViper100 8 місяців тому +8

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

    • @gosnooky
      @gosnooky 8 місяців тому

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

  • @user-qr4jf4tv2x
    @user-qr4jf4tv2x 8 місяців тому +13

    1 db per month and 1 js framework a day

    • @y_san0
      @y_san0 8 місяців тому

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

    • @succatash
      @succatash 8 місяців тому

      Foundation ain't new

  • @andythedishwasher1117
    @andythedishwasher1117 8 місяців тому +11

    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 8 місяців тому +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.

  • @neociber24
    @neociber24 8 місяців тому +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 8 місяців тому +3

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

  • @josevargas686
    @josevargas686 8 місяців тому +4

    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 8 місяців тому +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 8 місяців тому +7

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

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

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

    • @whamer100
      @whamer100 7 місяців тому +1

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

    • @_____case
      @_____case 7 місяців тому +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 8 місяців тому +28

    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 8 місяців тому +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 8 місяців тому

      So they can take your money 🤑 💰

    • @whoknows3679
      @whoknows3679 8 місяців тому +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 8 місяців тому +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 8 місяців тому

      @@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?

  • @_modiX
    @_modiX 8 місяців тому +4

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

    • @VivekYadav-ds8oz
      @VivekYadav-ds8oz 8 місяців тому

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

    • @_modiX
      @_modiX 8 місяців тому

      @@VivekYadav-ds8oz 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.

  • @celiacasanovas4164
    @celiacasanovas4164 8 місяців тому +4

    GO DENO

  • @ryan_the_dev
    @ryan_the_dev 8 місяців тому +1

    deno reaction, called it!

  • @andrewforrester6713
    @andrewforrester6713 8 місяців тому +27

    Deno is legitimately awesome

  • @aztracker1
    @aztracker1 8 місяців тому +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.

  • @stevenhe3462
    @stevenhe3462 8 місяців тому

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

  • @gdmk1000
    @gdmk1000 8 місяців тому +10

    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 8 місяців тому

      Wait, doesn’t Node wrap v8?

    • @gdmk1000
      @gdmk1000 8 місяців тому +4

      @@squrler yes but not a sandbox

    • @succatash
      @succatash 8 місяців тому

      Isn't BUN sandboxed?

    • @gdmk1000
      @gdmk1000 8 місяців тому

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

    • @succatash
      @succatash 8 місяців тому

      @@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.

  • @ThePapanoob
    @ThePapanoob 8 місяців тому

    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

  • @trashcan3958
    @trashcan3958 8 місяців тому +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 ;)

  • @riscnx
    @riscnx 8 місяців тому +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 7 місяців тому

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

  • @covle9180
    @covle9180 8 місяців тому +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.

  • @NeutralUsername311
    @NeutralUsername311 8 місяців тому +1

    creative ending

  • @Kane0123
    @Kane0123 8 місяців тому

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

  • @CanRau
    @CanRau 8 місяців тому

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

  • @ollierkul
    @ollierkul 8 місяців тому +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 8 місяців тому

      This comment sent me

    • @ollierkul
      @ollierkul 8 місяців тому

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

  • @stefankyriacou7151
    @stefankyriacou7151 8 місяців тому +2

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

  • @jeanchindeko5477
    @jeanchindeko5477 8 місяців тому +1

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

  • @panggilmeiam
    @panggilmeiam 8 місяців тому

    Is the pricing is a "Trap"?

  • @skiesaboveunlimitedstargaz7316
    @skiesaboveunlimitedstargaz7316 8 місяців тому +1

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

    • @whamer100
      @whamer100 8 місяців тому +3

      Deno is just "Node" in big endian

    • @VivekYadav-ds8oz
      @VivekYadav-ds8oz 8 місяців тому +3

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

    • @gosnooky
      @gosnooky 8 місяців тому +1

      @@whamer100 Very clever. You get a cookie.

  • @seanknowles9985
    @seanknowles9985 8 місяців тому

    Pulumi is multi cloud infrastructure IAC baby.

  • @covle9180
    @covle9180 8 місяців тому

    So, rabbitmq in javascript?

  • @Tony-dp1rl
    @Tony-dp1rl 8 місяців тому

    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.

  • @codeitude
    @codeitude 8 місяців тому +3

    What differentiates this from RabbitMQ or Kafka?

    • @JosifovGjorgi
      @JosifovGjorgi 8 місяців тому +7

      it's billable by default :)

    • @brainsniffer
      @brainsniffer 8 місяців тому +1

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

    • @tc2241
      @tc2241 8 місяців тому

      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 8 місяців тому

      Well, no Erlang or Scala involved.

  • @_____case
    @_____case 6 місяців тому

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

    • @ollierkul
      @ollierkul 6 місяців тому

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

    • @_____case
      @_____case 6 місяців тому

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

  • @georgespanos4680
    @georgespanos4680 8 місяців тому +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 8 місяців тому

      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 8 місяців тому +1

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

    • @IvanRandomDude
      @IvanRandomDude 8 місяців тому

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

    • @ProfessorThock
      @ProfessorThock 8 місяців тому

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

  • @betapacket
    @betapacket 8 місяців тому

    SQeaL

  • @tc2241
    @tc2241 8 місяців тому +1

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

  • @scorpyyy
    @scorpyyy 8 місяців тому

    deno?

    • @y00t00b3r
      @y00t00b3r 8 місяців тому +1

      u no know dee no?

  • @taylorkoepp3048
    @taylorkoepp3048 8 місяців тому

    Hey, I did my first professional programming writing MS Access VBA.

  • @jockey101
    @jockey101 8 місяців тому +1

    Not first.

  • @erikslorenz
    @erikslorenz 8 місяців тому

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

  • @AhmedMohammed23
    @AhmedMohammed23 8 місяців тому +77

    free palestine

    • @Kane0123
      @Kane0123 8 місяців тому +56

      Is that a new JS framework or database?

    • @Kane0123
      @Kane0123 8 місяців тому +18

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

    • @SpikeTaunt
      @SpikeTaunt 8 місяців тому +21

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

    • @MerkieAE
      @MerkieAE 8 місяців тому +24

      free bsd

    • @AhmedMohammed23
      @AhmedMohammed23 8 місяців тому +8

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

  • @SXsoft99
    @SXsoft99 8 місяців тому

    Come on it's not that hard to setup systemctl

  • @fearclan5913
    @fearclan5913 8 місяців тому +1

    bubies