Deno Deploy Demo: a multi-datacenter chat, client+server in 23 lines of TS
1–10 of 49 posts
Re: Deno Deploy Demo: a multi-datacenter chat, client+server in 23 lines of TS
#2Nice, I like how short and simple it is. The title seems to imply it runs on multiple datacenters. How does it sync messages between those?
Re: Deno Deploy Demo: a multi-datacenter chat, client+server in 23 lines of TS
#3[deleted]
Re: Deno Deploy Demo: a multi-datacenter chat, client+server in 23 lines of TS
#4Nice, I like how short and simple it is. The title seems to imply it runs on multiple datacenters. How does it sync messages between those?
I believe the BroadcastChannel implements the server-side distributed messaging.
Re: Deno Deploy Demo: a multi-datacenter chat, client+server in 23 lines of TS
#5What I really like about this is that you open the dependency in a web browser and see the human readable source code. No transpiling! https://deno.land/std/http/server.ts
Re: Deno Deploy Demo: a multi-datacenter chat, client+server in 23 lines of TS
#6Deno is such a nice little scripting tool. I've been using it for devops glue and scripts lately.
Native typescript, easy-as-pie dependency management. its great!
Re: Deno Deploy Demo: a multi-datacenter chat, client+server in 23 lines of TS
#7what is TS?
Re: Deno Deploy Demo: a multi-datacenter chat, client+server in 23 lines of TS
#8what is TS?
TypeScript...
Re: Deno Deploy Demo: a multi-datacenter chat, client+server in 23 lines of TS
#9Re: Deno Deploy Demo: a multi-datacenter chat, client+server in 23 lines of TS
#10Here's a version that resets the input field when you hit enter: https://dash.deno.com/playground/careful-toad-72