stackconf 2023 | What the Heck is Edge Computing Anyway? by Austin Gil.pdf

NETWAYS
NETWAYSNETWAYS
What the
heck is Edge
Compute
anyway?
(aka "edge functions"
or "edge workers")
Slides: bit.ly/edge-compute
@heyAustinGil
Hey 👋
I'm Austin Gil
austingil.com | @heyAustinGil
Hacking on websites since 2013
Teach folks how to build better websites
Have a cool chiweenie named Nugget
@heyAustinGil
Plain and simple:
Edge compute is the result of distributing serverless functions to thousands of
locations around the world to handle requests from as close to the user as
possible.
The result is programmable/dynamic/customizable responses with the least
amount of latency (aka more speed).
@heyAustinGil
That’s it!
@heyAustinGil
But that’s also really boring
@heyAustinGil
Let’s make dog hats!!!
@heyAustinGil
Natural progression of dog hats
1. Client wants a thing
2. You make a thing
3. You give them a thing
Mediocre analogy / really good photos ¯_(ツ)_/¯
@heyAustinGil
Let’s start with "Compute"
What:
Compute = bleeps & bloops -> HTML
Where:
Traditional Servers
Client-Side JavaScript
Client-Side workers
Static-Site-Generators
Cloud functions
Edge functions
@heyAustinGil
Traditional Servers
Machine runs software you choose to execute code you write to return HTML.
@heyAustinGil
🏭
Commercial workspace
@heyAustinGil
Client-Side Rendering
JavaScript (or WebAssembly) running in the user’s browser generates HTML.
@heyAustinGil
🛠️
DIY kits
@heyAustinGil
Static-Site-Generators
(SSGs)
Generate all pages ahead of time, into static folders and files.
(Technically still SSR)
@heyAustinGil
🐶🎩
Pre-knitted dog hats
@heyAustinGil
Cloud Functions
(aka "lambda", "serverless")
Service providers route requests to the functions you provide.
@heyAustinGil
🐶🎩🧶💉🤖
Dog-hat-knitting robots
@heyAustinGil
Ok, that’s compute
@heyAustinGil
What about "Edge"?
What
A network of globally distributed
computers capable of handling user
requests.
Why
By putting resources as close to users
as possible, we can reduce latency,
thereby improving performance and
user experience.
@heyAustinGil
Content Delivery Network
(CDN)
Thousand of globally distributed servers to deliver static assets closer to users
@heyAustinGil
🏪
Convenience stores
@heyAustinGil
Now let’s talk performance
@heyAustinGil
Users experience performance in 3-D
Distance request/response must travel (latency)
Download size before code executes
Device hardware capabilities
@heyAustinGil
The speed-of-light-problem
Technology continues to improve, but the speed of light remains the same.
Edge vs. Origin
Eventually, the biggest bottleneck is distance
@heyAustinGil
With everything in mind, we should…
Do things closer to users (like a CDN)
Do more work on servers (like cloud servers/functions)
Send smaller assets (???)
@heyAustinGil
The logical next step is…
@heyAustinGil
Put dog-hat-knitting robots
inside convenience stores
🐶🎩🧶💉🤖+🏪
@heyAustinGil
Edge compute
Programmable runtimes (like cloud functions)...that are globally distributed (like
a CDN)...and live between a client and origin.
Dynamic server-side functionality...that executes as close to users as possible.
Plus:
Reliable location information
Access to key-value stores
@heyAustinGil
For Users
Dynamic content with…
Less latency (compared to servers/cloud functions)
Less to download (compared to client-side rendering)
Less work on the client (better batt. & perf.)
@heyAustinGil
For Developers
Low barrier for POC
Consistent execution environment (no x-browser issues)
Location-based logic
Secrets stay secret (compared to client-side)
Common programming language (JavaScript)
No servers/infrastructure to manage
@heyAustinGil
For Website owners
Reduce load on origin servers (performance, reliability, cost)
Automatic scaling
Only pay for what you use
@heyAustinGil
The rough edges ( ͡° ͜ʖ ͡°)
Limited platform features (V8 isolates != Node.js)
Limited compute resources
Limited time resources
Limited networking protocols (HTTP != TCP/IP)
@heyAustinGil
No one likes to talk about
the hard part…
@heyAustinGil
Distributed data
@heyAustinGil
Edge compute isn’t
always better
💻: origin
🤵: server
🔪: edge
🎯: target
@heyAustinGil
Proxy service in same region 🙂
💻---------------🤵-🎯
vs.
💻-🔪---------------🎯
@heyAustinGil
Proxy service in distant region 😀
💻---------------🤵---------------🎯
vs.
💻-🔪---------------🎯
@heyAustinGil
Multiple concurrent requests 😄
(a.k.a API Orchestration)
┌----------------🎯
💻----------------🤵-🎯
└------🎯
vs.
┌----------------🎯
💻-🔪---🎯
└------🎯
@heyAustinGil
Multiple sequential requests 😬
(eg: Blog Post -> Catgeories -> Related Posts)
💻---------------🤵-🎯-🤵🎯-🤵---------------💻
vs.
💻-🔪---------------🎯---------------🔪---------------🎯---------
@heyAustinGil
There are solutions
Edge Key-Value stores
Replica databases
Distributed cache
@heyAustinGil
An addition, not a replacement
Where to run compute becomes a tough question
(latency, bundle size, device capabilities, data location etc).
Before
Client-side JS -> Client-side service worker -> Cloud functions -> Traditional
servers
After
Client-side JS -> Client-side service worker -> Edge compute -> Cloud functions
-> Traditional servers
@heyAustinGil
So maybe not for full apps
But good at other things…
@heyAustinGil
Common use cases
Modify request/response (server-side ads)
Fast static search (auto-complete, store locator)
Geolocation (language, policies)
Redirect management (blog post)
Token-based personalization (A/B testing, feature flags)
Stateless auth (JSON Web Tokens)
API proxy / orchestration
@heyAustinGil
The next phase of web
development
Dog hats for everyone!!!
@heyAustinGil
Available in frameworks near you
Astro
Remix
Next.js
Nuxt.js
11ty
Sveltekit
Fresh
SolidStart
Qwik City
and more
@heyAustinGil
It’s exciting!!!
but also…
@heyAustinGil
Existential crisis!!!
(ಥ﹏ಥ)
Isn't my app fast enough?
How much does 300 milliseconds matter?
Is all the effort worth it?
Do dogs even like wearing hats?
@heyAustinGil
Does 300ms really matter?
@heyAustinGil
Compulsory slide with lots of stats
100ms delay => 7% drop in sales
2s delay => 103% increased bounce rate
Over 3s load times => 53% smartphone users don’t convert
Optimal loading for most sales: 1.8-2.7s
28% users won’t return to slow sites
Webpages with most sales loaded 26% faster
250ms faster => keeps users from visiting competitors
Performance impact’s revenue, perception, loyalty, & engagement
Source: Akamai’s 2017 Online Retail Performance Report
@heyAustinGil
Visualization
In 2008, Amazon found 100ms in load hurt sales by 1%
($513.98b annual revenue x 1% = >$5b)
They could hire SIXTY THOUSAND developers and still profit
(2023 average = $83k)
More case studies of performance vs. UX/biz metrics at wpostats.com
@heyAustinGil
Is it worth it?
Lemme work it
It depends 💩
(but when you need it, give Akamai EdgeWorkers a try)
@heyAustinGil
Akamai EdgeWorkers
Most distributed network (>300k servers, >4k POPs)
More customizable lifecycle hooks
After client request, before origin request, after origin response, before
client response
Integrates with CDN’s cached content
Protected by industry-leading security
Canary-deployment rollouts
No per-region/per-server limits (only per-request)
@heyAustinGil
@heyAustinGil
@heyAustinGil
@heyAustinGil
@heyAustinGil
@heyAustinGil
@heyAustinGil
@heyAustinGil
@heyAustinGil
@heyAustinGil
@heyAustinGil
How’d I do?
bit.ly/thanks-austin
$100 Cloud Credit
linode.com/austingil
Let’s talk:
Edge compute, web development,
career, chiweenies, whatever :D
Let’s connect:
austingil.com @heyAustinGil @mastodon.social/@Austingil
@heyAustinGil @heyAustinGil @AustinGil
1 von 62

Recomendados

BigDataCloud meetup - July 8th - Cost effective big-data processing using Ama... von
BigDataCloud meetup - July 8th - Cost effective big-data processing using Ama...BigDataCloud meetup - July 8th - Cost effective big-data processing using Ama...
BigDataCloud meetup - July 8th - Cost effective big-data processing using Ama...BigDataCloud
789 views69 Folien
Infra for startup von
Infra for startupInfra for startup
Infra for startupSira Sujjinanont
32.2K views64 Folien
GWT is Smarter Than You von
GWT is Smarter Than YouGWT is Smarter Than You
GWT is Smarter Than YouRobert Cooper
4.4K views91 Folien
Cost effective BigData Processing on Amazon EC2 von
Cost effective BigData Processing on Amazon EC2Cost effective BigData Processing on Amazon EC2
Cost effective BigData Processing on Amazon EC2Sujee Maniyam
10K views71 Folien
Clouds: All fluff and no substance? von
Clouds: All fluff and no substance?Clouds: All fluff and no substance?
Clouds: All fluff and no substance?Guy Coates
718 views68 Folien
Leveling up your JavaScipt - DrupalJam 2017 von
Leveling up your JavaScipt - DrupalJam 2017Leveling up your JavaScipt - DrupalJam 2017
Leveling up your JavaScipt - DrupalJam 2017Christian Heilmann
581 views94 Folien

Más contenido relacionado

Similar a stackconf 2023 | What the Heck is Edge Computing Anyway? by Austin Gil.pdf

Ingesting click events for analytics von
Ingesting click events for analyticsIngesting click events for analytics
Ingesting click events for analyticsData Driven Innovation
967 views26 Folien
Ingesting Click Data for Analytics von
Ingesting Click Data for AnalyticsIngesting Click Data for Analytics
Ingesting Click Data for AnalyticsClickMeter
1.5K views26 Folien
Catalina Oyaneder | Ultimate Stack Compilation | Codemotion Madrid 2018 von
Catalina Oyaneder | Ultimate Stack Compilation | Codemotion Madrid 2018 Catalina Oyaneder | Ultimate Stack Compilation | Codemotion Madrid 2018
Catalina Oyaneder | Ultimate Stack Compilation | Codemotion Madrid 2018 Codemotion
136 views102 Folien
Introduction to Amazon Web Services (EC2) von
Introduction to Amazon Web Services (EC2)Introduction to Amazon Web Services (EC2)
Introduction to Amazon Web Services (EC2)John Mulligan
3.9K views14 Folien
SEO for Large/Enterprise Websites - Data & Tech Side von
SEO for Large/Enterprise Websites - Data & Tech SideSEO for Large/Enterprise Websites - Data & Tech Side
SEO for Large/Enterprise Websites - Data & Tech SideDominic Woodman
3.2K views148 Folien
Google Cloud infrastructure in Conrad Connect by Google & waylay von
Google Cloud infrastructure in Conrad Connect by Google & waylayGoogle Cloud infrastructure in Conrad Connect by Google & waylay
Google Cloud infrastructure in Conrad Connect by Google & waylayVeselin Pizurica
2.8K views33 Folien

Similar a stackconf 2023 | What the Heck is Edge Computing Anyway? by Austin Gil.pdf(20)

Ingesting Click Data for Analytics von ClickMeter
Ingesting Click Data for AnalyticsIngesting Click Data for Analytics
Ingesting Click Data for Analytics
ClickMeter1.5K views
Catalina Oyaneder | Ultimate Stack Compilation | Codemotion Madrid 2018 von Codemotion
Catalina Oyaneder | Ultimate Stack Compilation | Codemotion Madrid 2018 Catalina Oyaneder | Ultimate Stack Compilation | Codemotion Madrid 2018
Catalina Oyaneder | Ultimate Stack Compilation | Codemotion Madrid 2018
Codemotion136 views
Introduction to Amazon Web Services (EC2) von John Mulligan
Introduction to Amazon Web Services (EC2)Introduction to Amazon Web Services (EC2)
Introduction to Amazon Web Services (EC2)
John Mulligan3.9K views
SEO for Large/Enterprise Websites - Data & Tech Side von Dominic Woodman
SEO for Large/Enterprise Websites - Data & Tech SideSEO for Large/Enterprise Websites - Data & Tech Side
SEO for Large/Enterprise Websites - Data & Tech Side
Dominic Woodman3.2K views
Google Cloud infrastructure in Conrad Connect by Google & waylay von Veselin Pizurica
Google Cloud infrastructure in Conrad Connect by Google & waylayGoogle Cloud infrastructure in Conrad Connect by Google & waylay
Google Cloud infrastructure in Conrad Connect by Google & waylay
Veselin Pizurica2.8K views
I've (probably) been using Google App Engine for a week longer than you have von Simon Willison
I've (probably) been using Google App Engine for a week longer than you haveI've (probably) been using Google App Engine for a week longer than you have
I've (probably) been using Google App Engine for a week longer than you have
Simon Willison15.1K views
Rapidly Building and Deploying Scalable Web Architectures von Keith Fitzgerald
Rapidly Building and Deploying Scalable Web ArchitecturesRapidly Building and Deploying Scalable Web Architectures
Rapidly Building and Deploying Scalable Web Architectures
Keith Fitzgerald813 views
Developing For The Web von aleemb
Developing For The WebDeveloping For The Web
Developing For The Web
aleemb412 views
Js foo famo.us- build native quality apps using html5 within a day von Debnath Sinha
Js foo  famo.us- build native quality apps using html5 within a dayJs foo  famo.us- build native quality apps using html5 within a day
Js foo famo.us- build native quality apps using html5 within a day
Debnath Sinha460 views
Famo.us - build native quality apps using html5 within a day von Debnath Sinha
Famo.us - build native quality apps using html5 within a dayFamo.us - build native quality apps using html5 within a day
Famo.us - build native quality apps using html5 within a day
Debnath Sinha948 views
An Introduction to Web Components von Red Pill Now
An Introduction to Web ComponentsAn Introduction to Web Components
An Introduction to Web Components
Red Pill Now1.4K views
Measure All the Things! - Austin Data Day 2014 von gdusbabek
Measure All the Things! - Austin Data Day 2014Measure All the Things! - Austin Data Day 2014
Measure All the Things! - Austin Data Day 2014
gdusbabek1.3K views
Welcome to a new reality - DeepCrawl Webinar 2018 von Bastian Grimm
Welcome to a new reality - DeepCrawl Webinar 2018Welcome to a new reality - DeepCrawl Webinar 2018
Welcome to a new reality - DeepCrawl Webinar 2018
Bastian Grimm23.5K views
Serverless computing with Google Cloud von wesley chun
Serverless computing with Google CloudServerless computing with Google Cloud
Serverless computing with Google Cloud
wesley chun185 views
Continues Deployment - Tech Talk week von rantav
Continues Deployment - Tech Talk weekContinues Deployment - Tech Talk week
Continues Deployment - Tech Talk week
rantav1.2K views
Open Science Grid For Virtual Cell von Prasanna Gautam
Open Science Grid For Virtual CellOpen Science Grid For Virtual Cell
Open Science Grid For Virtual Cell
Prasanna Gautam576 views
Getting more out of Matplotlib with GR von Josef Heinen
Getting more out of Matplotlib with GRGetting more out of Matplotlib with GR
Getting more out of Matplotlib with GR
Josef Heinen688 views

Último

falsettos von
falsettosfalsettos
falsettosRenzoCalandra
13 views48 Folien
Chris Ferris Retrain Manitoba Presentation - CEA - June 2, 2023.pdf von
Chris Ferris Retrain Manitoba Presentation - CEA - June 2, 2023.pdfChris Ferris Retrain Manitoba Presentation - CEA - June 2, 2023.pdf
Chris Ferris Retrain Manitoba Presentation - CEA - June 2, 2023.pdfChrisFerris
5 views12 Folien
EADR DRDO von
EADR DRDOEADR DRDO
EADR DRDOAdityaThakre13
8 views39 Folien
PB CV von
PB CVPB CV
PB CVPedro Borracha
8 views16 Folien
HITCON CISO Summit 2023 - Closing von
HITCON CISO Summit 2023 - ClosingHITCON CISO Summit 2023 - Closing
HITCON CISO Summit 2023 - ClosingHacks in Taiwan (HITCON)
192 views33 Folien
PB CV v0.3 von
PB CV v0.3PB CV v0.3
PB CV v0.3Pedro Borracha
14 views16 Folien

Último(20)

Chris Ferris Retrain Manitoba Presentation - CEA - June 2, 2023.pdf von ChrisFerris
Chris Ferris Retrain Manitoba Presentation - CEA - June 2, 2023.pdfChris Ferris Retrain Manitoba Presentation - CEA - June 2, 2023.pdf
Chris Ferris Retrain Manitoba Presentation - CEA - June 2, 2023.pdf
ChrisFerris5 views
Roozbeh Torkzadeh - TU Eindhoven von Dutch Power
Roozbeh Torkzadeh - TU EindhovenRoozbeh Torkzadeh - TU Eindhoven
Roozbeh Torkzadeh - TU Eindhoven
Dutch Power108 views
ERGONOMIC RISK ASSESSMENT (ERA).pptx von j967z4hcnp
ERGONOMIC RISK ASSESSMENT (ERA).pptxERGONOMIC RISK ASSESSMENT (ERA).pptx
ERGONOMIC RISK ASSESSMENT (ERA).pptx
j967z4hcnp6 views
a timeline of the history of linguistics- BAUTISTA- BELGERA.pdf von FordBryantSadio
a timeline of the history of linguistics- BAUTISTA- BELGERA.pdfa timeline of the history of linguistics- BAUTISTA- BELGERA.pdf
a timeline of the history of linguistics- BAUTISTA- BELGERA.pdf
FordBryantSadio6 views
I use my tools to help people von mywampa
I use my tools to help peopleI use my tools to help people
I use my tools to help people
mywampa7 views
تنزيل (1).pdf DVT von taalali1
تنزيل (1).pdf  DVT تنزيل (1).pdf  DVT
تنزيل (1).pdf DVT
taalali16 views

stackconf 2023 | What the Heck is Edge Computing Anyway? by Austin Gil.pdf