Deno Queues | Prime Reacts

Sdílet
Vložit
  • čas přidán 6. 10. 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
  • Věda a technologie

Komentáře • 111

  • @Kotfluegel
    @Kotfluegel Před 9 měsíci +49

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

    • @JamesRouzier
      @JamesRouzier Před 9 měsíci +3

      FastCGI equivalent will added soon

  • @kibels894
    @kibels894 Před 9 měsíci +22

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

    • @succatash
      @succatash Před 9 měsíci +1

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

    • @jerrygreenest
      @jerrygreenest Před 4 měsíci

      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.

  • @nightshade427
    @nightshade427 Před 9 měsíci +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.

  • @ESPViper100
    @ESPViper100 Před 9 měsíci +9

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

    • @gosnooky
      @gosnooky Před 9 měsíci

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

  • @josevargas686
    @josevargas686 Před 9 měsíci +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 Před 9 měsíci +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.

  • @JasonSmith80513
    @JasonSmith80513 Před 9 měsíci +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 Před 9 měsíci +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 Před 9 měsíci

      So they can take your money 🤑 💰

    • @whoknows3679
      @whoknows3679 Před 9 měsíci +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 Před 9 měsíci +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 Před 9 měsíci

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

  • @andythedishwasher1117
    @andythedishwasher1117 Před 9 měsíci +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 Před 9 měsíci +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 Před 9 měsíci +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 Před 9 měsíci +3

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

  • @user-qr4jf4tv2x
    @user-qr4jf4tv2x Před 9 měsíci +13

    1 db per month and 1 js framework a day

    • @y_san0
      @y_san0 Před 9 měsíci

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

    • @succatash
      @succatash Před 9 měsíci

      Foundation ain't new

  • @whamer100
    @whamer100 Před 9 měsíci +7

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

    • @_____case
      @_____case Před 8 měsíci

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

    • @whamer100
      @whamer100 Před 8 měsíci +1

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

    • @_____case
      @_____case Před 8 měsíci +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.

  • @aztracker1
    @aztracker1 Před 9 měsíci +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.

  • @ThePapanoob
    @ThePapanoob Před 9 měsíci

    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

  • @_modiX
    @_modiX Před 9 měsíci +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 Před 9 měsíci

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

    • @_modiX
      @_modiX Před 9 měsíci

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

  • @riscnx
    @riscnx Před 9 měsíci +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 Před 8 měsíci

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

  • @trashcan3958
    @trashcan3958 Před 9 měsíci +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 ;)

  • @stevenhe3462
    @stevenhe3462 Před 9 měsíci

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

  • @gdmk1000
    @gdmk1000 Před 9 měsíci +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 Před 9 měsíci

      Wait, doesn’t Node wrap v8?

    • @gdmk1000
      @gdmk1000 Před 9 měsíci +4

      @@squrler yes but not a sandbox

    • @succatash
      @succatash Před 9 měsíci

      Isn't BUN sandboxed?

    • @gdmk1000
      @gdmk1000 Před 9 měsíci

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

    • @succatash
      @succatash Před 9 měsíci

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

  • @covle9180
    @covle9180 Před 9 měsíci +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.

  • @ryan_the_dev
    @ryan_the_dev Před 9 měsíci +1

    deno reaction, called it!

  • @Kane0123
    @Kane0123 Před 9 měsíci

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

  • @CanRau
    @CanRau Před 9 měsíci

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

  • @andrewforrester6713
    @andrewforrester6713 Před 9 měsíci +27

    Deno is legitimately awesome

  • @ollierkul
    @ollierkul Před 9 měsíci +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 Před 9 měsíci

      This comment sent me

    • @ollierkul
      @ollierkul Před 9 měsíci

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

  • @NeutralUsername311
    @NeutralUsername311 Před 9 měsíci +1

    creative ending

  • @celiacasanovas4164
    @celiacasanovas4164 Před 9 měsíci +4

    GO DENO

  • @stefankyriacou7151
    @stefankyriacou7151 Před 9 měsíci +2

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

  • @BlackAsLight448
    @BlackAsLight448 Před 18 dny

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

  • @jeanchindeko5477
    @jeanchindeko5477 Před 9 měsíci +1

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

  • @panggilmeiam
    @panggilmeiam Před 9 měsíci

    Is the pricing is a "Trap"?

  • @skiesaboveunlimitedstargaz7316
    @skiesaboveunlimitedstargaz7316 Před 9 měsíci +1

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

    • @whamer100
      @whamer100 Před 9 měsíci +3

      Deno is just "Node" in big endian

    • @VivekYadav-ds8oz
      @VivekYadav-ds8oz Před 9 měsíci +3

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

    • @gosnooky
      @gosnooky Před 9 měsíci +1

      @@whamer100 Very clever. You get a cookie.

  • @seanknowles9985
    @seanknowles9985 Před 9 měsíci

    Pulumi is multi cloud infrastructure IAC baby.

  • @covle9180
    @covle9180 Před 9 měsíci

    So, rabbitmq in javascript?

  • @codeitude
    @codeitude Před 9 měsíci +3

    What differentiates this from RabbitMQ or Kafka?

    • @JosifovGjorgi
      @JosifovGjorgi Před 9 měsíci +7

      it's billable by default :)

    • @brainsniffer
      @brainsniffer Před 9 měsíci +1

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

    • @tc2241
      @tc2241 Před 9 měsíci

      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 Před 9 měsíci

      Well, no Erlang or Scala involved.

  • @Tony-dp1rl
    @Tony-dp1rl Před 9 měsíci

    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.

  • @georgespanos4680
    @georgespanos4680 Před 9 měsíci +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 Před 9 měsíci

      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 Před 9 měsíci +1

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

    • @IvanRandomDude
      @IvanRandomDude Před 9 měsíci

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

    • @ProfessorThock
      @ProfessorThock Před 9 měsíci

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

  • @_____case
    @_____case Před 8 měsíci

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

    • @ollierkul
      @ollierkul Před 7 měsíci

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

    • @_____case
      @_____case Před 7 měsíci

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

  • @betapacket
    @betapacket Před 9 měsíci

    SQeaL

  • @taylorkoepp3048
    @taylorkoepp3048 Před 9 měsíci

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

  • @tc2241
    @tc2241 Před 9 měsíci +1

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

  • @scorpyyy
    @scorpyyy Před 9 měsíci

    deno?

  • @jockey101
    @jockey101 Před 9 měsíci +1

    Not first.

  • @erikslorenz
    @erikslorenz Před 9 měsíci

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

  • @SXsoft99
    @SXsoft99 Před 9 měsíci

    Come on it's not that hard to setup systemctl

  • @AhmedMohammed23
    @AhmedMohammed23 Před 9 měsíci +77

    free palestine

    • @Kane0123
      @Kane0123 Před 9 měsíci +56

      Is that a new JS framework or database?

    • @Kane0123
      @Kane0123 Před 9 měsíci +18

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

    • @SpikeTaunt
      @SpikeTaunt Před 9 měsíci +21

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

    • @MerkieAE
      @MerkieAE Před 9 měsíci +24

      free bsd

    • @AhmedMohammed23
      @AhmedMohammed23 Před 9 měsíci +8

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

  • @fearclan5913
    @fearclan5913 Před 9 měsíci +1

    bubies