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...
Serverless is literally CGI (Common Gateway Interface) all over again.
FastCGI equivalent will added soon
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.
Serverless got millions of engineers that don't even work for Amazon to optimize their billing and capacity for them.
But they aren't optimizing AWS. So still sucks.
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.
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.
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.
Whenever a new JS framework comes out, somewhere, someone publishes a new database.
Yet with inter-service messaging, we're still stuck with Kafka and RabbitMQ.
1 db per month and 1 js framework a day
🤣 in the end each js user, will hv it is own framework....
Foundation ain't new
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.
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.
Eventually serverless is going to create dedicated professors for interpreting javascript with built in V8
You can have a "serverless" function that's written in any language.
@@_____case i mean, yeah obviously, but this is a video related to js
@@whamer100 I guess I'm just saying that I think it's unlikely that serverless companies will build solutions that only support JS applications.
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?
because the serverless runtime knows where the function is run and so can optimize the database access, so kv reaches real time speeds
So they can take your money 🤑 💰
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
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.
@@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?
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.
What all node user is asking for, is speed and lower memory usage. if Deno solves this problem, the popularity will increase
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.
Wait, doesn’t Node wrap v8?
@@squrler yes but not a sandbox
Isn't BUN sandboxed?
@@succatash no, since it's supposed to ne a drop in for nodejs
@@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.
I use Deno with TS for cross platform CLI programming, since Mojo is not ready for that. I love it pretty much.
And I thought I was being cool by using the new hip Rust language for CLIs.
@@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.
The Java getters and setters got me. My colleague wrote thousands of lines of them in our small project.
Foundation DB is not new at all. It was created in 2009.
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.
Deno is legitimately awesome
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.
SQLite is only used when running the Deno CLI. When deployed on Deno Deploy, KV + Queues use FoundationDB.
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.
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 ;)
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.
This comment sent me
@@ProfessorThock To the Deno docs I'm sure ;)
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
You can use these features without hosting on Deno deploy. You just run Deno on your own servers.
I would actually use deno if they had self hosting feature parity
GO DENO
Love that they give you currently up to 30 days of delay which seems pretty unnecessarily complex with AWS 😢
Deno is basically saying "No" to Node... If you scramble the letters it becomes .. Deno = Node...
Deno is just "Node" in big endian
@@whamer100 You made me laugh out loud XD Thank you for that one.
@@whamer100 Very clever. You get a cookie.
deno reaction, called it!
1:26 this is nuts
Is this an attempt to expand deno so that you end up with deno-andys?
So, rabbitmq in javascript?
Is the pricing is a "Trap"?
Pulumi is multi cloud infrastructure IAC baby.
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.
Until Deno supports sharing state between multiple deployed binaries, all of their KV-based features only encourage building monoliths.
You can connect to the same KV instance from multiple different processes.
@@ollierkul Is that true now? Last I checked, that wasn't supported. I'm assuming by "processes" you mean "deployed services".
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...
First time trying AWS I unknowingly accepted a recommended service which charged me over $2000 for what I planned to be a free project
@@ProfessorThock I hope you don't pay this.
Literally. $3.5 VPS at Hetzner can power most web apps nowadays.
@@georgespanos4680 took almost two months but I did get the money back and was quite relieved
What differentiates this from RabbitMQ or Kafka?
it's billable by default :)
Man, deno just went back in time and made service broker in sql in 2008
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
Well, no Erlang or Scala involved.
They use GCP
Ahhh yes, consolidate so that’s it’s a pita to migrate when the company inevitably gets sold/goes under
SQeaL
deno?
u no know dee no?
😂😂😂😂😂😂😂😂
Not first.
free palestine
Is that a new JS framework or database?
Or are they locked into a cloud vendor? Sorry I’m trying to understand
Why are you giving it out for free, what's wrong with it?
free bsd
@@MerkieAE What you’re referring to as Free BSD, is in fact, GNU/BSD
Deno is like fetch. Stop trying to make it a thing
Come on it's not that hard to setup systemctl
bubies