choose your region: Earth; Cloudflare Workers
QConSF 2019
choose your region: Earth; Cloudflare Workers hi, im @ag_dubs - - PowerPoint PPT Presentation
QConSF 2019 choose your region: Earth; Cloudflare Workers hi, im @ag_dubs performance accessibility infrastructure how the internet works? how the internet could work? javascripts journey JavaScript (1995) Wasm (2017) HTML
choose your region: Earth; Cloudflare Workers
QConSF 2019
hi, i’m
1970 1980 1990 2000 2010 2020 JavaScript (1995) IE (1995) Browser War I (1995-2001) Netscape (1994) HTML (1993) Wasm (2017) Chrome (2008) Firefox (2002) Safari (2003) Browser War II (2008-2017) CSS (1996) First Website (1991)
JavaScript (1995) HTML (1993) Wasm (2017) NodeJS (2009) V8 (2008) JQuery (2006) React (2012) 1970 1980 1990 2000 2010 2020 Angular (2010) Ember (2011) Google Maps (2004) CSS (1996) AJAX (2009) SPA (2003) TraceMonkey (2009) First Website (1991)
IE (1995) Netscape (1994) Chrome (2008) Firefox (2002) Safari (2003) JavaScript (1995) HTML (1993) CSS (1996) Wasm (2017) NodeJS (2009) V8 (2008) React (2012) 1970 1980 1990 2000 2010 2020 Angular (2010) Ember (2011) Google Maps (2004) Adobe Flash (1996) NaCL (2011) Java Applets (1995) JQuery (2006)
SPEED OF COMPUTATION IN THE BROWSER
AJAX (2009) TraceMonkey (2009) SPA (2003) First Website (1991)
The web is bloated by user “experience”.
Addy Osmani
WE TRIED SO HARD AND GOT SO FAR BUT IN THE END…
Source: https://medium.com/@addyosmani/the-cost-of-javascript-in-2018-7d8950fbb5d4i’m a systems engineer for
your javascript program 💦 your javascript program executing 🍖 your javascript program’s generated output 隸 your end user 🧻 a POP (point of presence), a cache node
隸
隸
隸 💦
隸🍖
隸
隸
隸 💦
隸🍖
隸 🧻
隸 🧻
隸 🧻
隸 🧻
隸 🧻
💦
隸 🧻 🍖
隸 🧻
隸 🧻
隸 🧻
💦
隸 🧻 🍖
Ryan Dahl announces Node.js
to JavaScript developers
隸
隸 💦
隸 🍖
隸🍖
隸
隸 💦
隸 🍖
隸🍖
隸
隸 🧻
隸 🧻 💦
隸 🧻 🍖
隸 🧻 🍖
隸 🧻 🍖
隸 🧻 🍖 🍖
隸 🧻 🍖 🍖
隸 🧻 🍖 🍖
* an incredibly simplified and not quite, but close to, accurate representation of Cloudflare’s 180+ data centers
🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻
* an incredibly simplified and not quite, but close to, accurate representation of Cloudflare’s 180+ data centers
🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻
* an incredibly simplified and not quite, but close to, accurate representation of Cloudflare’s 180+ data centers
🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻
** not really but sort of, yknow??
the edge
隸 🧻
隸 🧻 💦
隸 🧻 🍖
隸 🧻 🍖
隸 🧻
隸 🧻 💦
隸 🧻 🍖
隸 🧻 🍖
隸 🧻 🧻 🧻 隸 隸 🧻 🧻 隸 隸
隸 🧻 🧻 🧻 隸 隸 💦 💦 💦 🧻 🧻 隸 隸 💦 💦
隸 🧻 🧻 🧻 隸 隸 🍖 🍖 🍖 🧻 🧻 隸 隸 🍖 🍖
隸 🧻 🧻 🧻 隸 隸 🍖 🍖 🍖 🧻 🧻 隸 隸 🍖 🍖
隸 🧻 🧻 🧻 隸 隸 🧻 🧻 隸 隸
隸 🧻 🧻 🧻 隸 隸 💦 💦 💦 🧻 🧻 隸 隸 💦 💦
隸 🧻 🧻 🧻 隸 隸 🍖 🍖 🍖 🧻 🧻 隸 隸 🍖 🍖
隸 🧻 🧻 🧻 隸 隸 🍖 🍖 🍖 🧻 🧻 隸 隸 🍖 🍖
capetown, ZA
doha, Qatar
melbourne, AU
reykjavik, IS
* an incredibly simplified and not quite, but close to, accurate representation of Cloudflare’s 180+ data centers
🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻 🧻
Scalability can mean…
Our network is huge and continues to grow
Every app needs to be in every location. And some places are very small.
each server only has to run the requests local to it!
we need to be able to switch back and forth between apps quickly!
we need to be able to start them back up quickly!
Run client code directly on the server.
Run code where data lives.
Run code from visited sites.
… we have been overlooking the power of client side tech!
Browsers are optimized for: Small Downloads Fast startup Many tabs and frames Secure Isolation
Web browsers have been the most hostile security environment… for quite some time.
Kenton Varda
PLEASE UPDATE YOUR VERSION OF ADOBE FLASH
* this talk is not sponsored or affiliated with V8 beverages or the Campbell’s Soup Company
Application Application Application Libraries Libraries Uncommon Libraries Web Platform APIs Language Runtime Language Runtime JS Runtime Operating System Operating System Operating System Hardware (virtualized) Hardware Hardware Provided by Host Provided by Guest
VMs Containers Isolates
> npm i @cloudflare/wrangler -g
yeeeeeehaww
> wrangler generate hello > wrangler subdomain world > cd world > wrangler publish Successfully published https://hello.world.workers.dev
workers.cloudflare.com
go forth and build awesome, accessible things… for the whole world!
@ag_dubs workers.cloudflare.com