Earlier quoted context omitted.
Sure, if you use Python's async feature. But my understanding is that it's relatively uncommon; blocking IO is still the norm, right? I for one have worked in or around a couple of nontrivial Python servers, and I've never once seen an await statement. My understanding (correct me if I'm wrong) is that this comes down to it being newer, and having worse ecosystem support (more "synchronous-colored" APIs, less battle-…
In non-async Python, generally the thing that blocks is a thread -- something Javascript doesn't even have! A different thread will happily run in the meanwhile.
Deno raises $21M
381–390 of 397 posts
Re: Deno raises $21M
#382Earlier quoted context omitted.
More practically: for example, I write my web service(s) with event sourced architecture. Now any worker, or any service sending a command, can operate against the storage. Regardless of version. Other architectural patterns offer the same kinds of options. Clean architecture or hexagonal architecture limits the surface (coupling) between your versioned logic and the data so much, that they can version independent. A…
> More practically > event sourced architecture You must be joking. Please tell me you're joking.
Re: Deno raises $21M
#383Earlier quoted context omitted.
Yeah unless I'm missing something isn't this just a stand alone company offering roughly workers?
This is an open source JavaScript runtime with a hosted business model. Deno is great. Deno Deploy is a reasonable way for them to make money.
Re: Deno raises $21M
#384Deno deploy seems cool and all, but I haven't seen any great rationale for using their service over say Cloudflare Workers.
Workers are not meant as a generalist runtime.
https://deno.com/deploy/docs/pricing-and-limits https://developers.cloudflare.com/workers/platform/limits/
Re: Deno raises $21M
#385Earlier quoted context omitted.
> Up to 10ms CPU time per request So less than 17 minutes of CPU time per day - not a lot, but also not nothing.. But at 10ms per request, what would one use it for? Just server-side rendering for something simple?
proper applications as well. example is the https://deno.land website has an average CPU time of 6ms. CPU time means it doesnt include any IO bound operations, so ie doing a fetch request wont really contribute to the CPU time.
I've had to switch multiple webapps to Cloudflare Workers' "unbound" mode to go beyond CPU time limits.
Re: Deno raises $21M
#386Earlier quoted context omitted.
Workers are not meant as a generalist runtime.
Neither is Deno Deploy, really. The limits on CPU time etc are very similar, with Cloudflare being more flexible on CPU and Deno Deploy being more flexible on bundle size. https://deno.com/deploy/docs/pricing-and-limits https://developers.cloudflare.com/workers/platform/limits/
Here's an example. Deno is like any other backend runtime and has regular DB clients. CF Workers do not. If you want to use Workers with PG, the CF docs point you to Supabase which provides REST over PG using PostgREST.
https://developers.cloudflare.com/workers/tutorials/postgres...
Re: Deno raises $21M
#387Earlier quoted context omitted.
Neither is Deno Deploy, really. The limits on CPU time etc are very similar, with Cloudflare being more flexible on CPU and Deno Deploy being more flexible on bundle size. https://deno.com/deploy/docs/pricing-and-limits https://developers.cloudflare.com/workers/platform/limits/
Yes Deno Deploy is for HTTP (just like CF Workers) but my point is that Deno is more of a generalist runtime compared to Workers and has a much broader appeal than just Deno Deploy. Here's an example. Deno is like any other backend runtime and has regular DB clients. CF Workers do not. If you want to use Workers with PG, the CF docs point you to Supabase which provides REST over PG using PostgREST. https://developers…
Deno Deploy doesn't have much of a moat, and Cloudflare is better funded. Both are promising to be open source & self hostable (https://twitter.com/KentonVarda/status/1523666343412654081). We shall see.
Re: Deno raises $21M
#388Earlier quoted context omitted.
Yes Deno Deploy is for HTTP (just like CF Workers) but my point is that Deno is more of a generalist runtime compared to Workers and has a much broader appeal than just Deno Deploy. Here's an example. Deno is like any other backend runtime and has regular DB clients. CF Workers do not. If you want to use Workers with PG, the CF docs point you to Supabase which provides REST over PG using PostgREST. https://developers…
Yes, Cloudflare Workers originally couldn't make arbitrary outgoing TCP connections. Cloudflare wrote an adapter to transport Postgres over WebSockets ( https://blog.cloudflare.com/relational-database-connectors/ ) and then added support for TCP connections ( https://blog.cloudflare.com/introducing-socket-workers/ ). Deno Deploy doesn't have much of a moat, and Cloudflare is better funded. Both are promising to be op…
Even when CF open sources Workers, they will be useless for anything non-HTTP related.
Re: Deno raises $21M
#389Earlier quoted context omitted.
Yes, Cloudflare Workers originally couldn't make arbitrary outgoing TCP connections. Cloudflare wrote an adapter to transport Postgres over WebSockets ( https://blog.cloudflare.com/relational-database-connectors/ ) and then added support for TCP connections ( https://blog.cloudflare.com/introducing-socket-workers/ ). Deno Deploy doesn't have much of a moat, and Cloudflare is better funded. Both are promising to be op…
I'm arguing about Deno (the whole thing) vs Workers, not Deno Deploy vs Workers. Even when CF open sources Workers, they will be useless for anything non-HTTP related.
> Deno deploy seems cool and all, but I haven't seen any great rationale for using their service over say Cloudflare Workers.
Note "their service". You replied with
> Workers are not meant as a generalist runtime.
So, we really were talking about Cloudflare Workers vs Deno Deploy.
Deno is something different, for sure. But it seems Deno Land Inc. is betting on Deno Deploy. Which makes grandparents' question interesting.
Re: Deno raises $21M
#390Earlier quoted context omitted.
I'm arguing about Deno (the whole thing) vs Workers, not Deno Deploy vs Workers. Even when CF open sources Workers, they will be useless for anything non-HTTP related.
Grandparent said > Deno deploy seems cool and all, but I haven't seen any great rationale for using their service over say Cloudflare Workers. Note "their service". You replied with > Workers are not meant as a generalist runtime. So, we really were talking about Cloudflare Workers vs Deno Deploy. Deno is something different, for sure. But it seems Deno Land Inc. is betting on Deno Deploy. Which makes grandparents' q…
What I'm saying is that, even if you're only going to use Deno Deploy, it is an objectively better proposition because Deno (the runtime) has a much broader use case.
Would you rather use something that (for now) can only be used on a single cloud provider for (let's call them) "edge HTTP" workloads and integrations with services of that single cloud provider...
... or use something that can be used on any cloud/hosting provider, for any HTTP workload (plus many other non-HTTP use cases), which also happens to have an "edge HTTP" service custom tailored for it?
And let's not forget, Deno (the company), is much more focused on real developer needs. Workers still have a mediocre DX (although it has improved considerably lately) and still no framework for Workers like Fresh.