Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Data: online and off
Search
Phil Nash
September 21, 2015
Programming
200
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Data: online and off
Phil Nash
September 21, 2015
More Decks by Phil Nash
See All by Phil Nash
Four steps from JavaScript to TypeScript
philnash
3
620
JavaScript Apps Go Intl - GIDS Live 2021
philnash
2
410
You're on Mute! WebRTC and our Lives on Screen - GIDS Live 2021
philnash
1
410
Better API DX with a CLI - APIdays Jakarta
philnash
0
490
The trouble with webhooks - at Apidays Live Hong Kong
philnash
2
320
Four steps from JavaScript to TypeScript
philnash
0
530
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
The trouble with webhooks - at APIdays Singapore
philnash
0
450
What's going on with Project Fugu? at DevTalks Reimagined
philnash
0
670
Other Decks in Programming
See All in Programming
graphql-ruby を Spinel で速くしようとした話
mtsmfm
0
120
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
190
TanStack Vue Query と Pinia Colada から学ぶ非同期状態の型設計
aoshi
0
290
コーディング自動化の次へ。人の介入をゼロにするファクトリーとサポートAIによる実践
timakin
5
4.7k
Jetpack Compose Mechanisms
skydoves
3
870
HTML-in-Canvasで作る未来のWeb UI表現
clockmaker
5
5.8k
Simple Storage Service(S3) is not simple
iwatsukayura
0
330
コードレビューのボトルネックを"する側"と"される側"の両面から解消する
yub0n
2
1.7k
Seven New Principles of Software Engineering
yegor256
0
320
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
420
【加筆修正版】Laravel のアプリケーションをどこにデプロイするか #phpcon_ehime
akase244
0
160
自作Discord音声botをLambda MicroVMsに移行した話 / Migrating My Discord Voice Bot to Lambda MicroVMs
akihisaikeda
0
150
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
560
Making Projects Easy
brettharned
120
6.8k
Automating Front-end Workflow
addyosmani
1370
210k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
450
How STYLIGHT went responsive
nonsquared
100
6.3k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.5k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
330
Skip the Path - Find Your Career Trail
mkilby
1
260
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
330
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
300
Transcript
DATA: ONLINE AND OFF
Phil Nash @philnash http:/ /philna.sh
[email protected]
DATA: ONLINE AND OFF
OFFLINE FIRST
Offline first An application that treats the network as an
enhancement
Not offline first • Graceful failure to network requests •
Just saving data client side
None
None
THINGS TO CONSIDER
ASSETS
SERVICE WORKER
None
USER DATA
None
DATA: ONLINE AND OFF
Data: online and off • Traditional application data storage •
Traditional vs offline first • Browser based data storage • Offline first and data
TRADITIONAL APPLICATION DATA STORAGE
GET / POST
Traditional application data storage 1. POST data to a server
2. Server stores data in a database 1. GET request for data 2. Server interprets request and delivers
OFFLINE?
TRADITIONAL VS OFFLINE FIRST
INTERACT LOCALLY
Interact locally • Save data locally • Retrieve data from
local cache
Interact locally • Crazy fast! • The network doesn't matter
THEN SYNC
Sync • People have multiple devices • Good as a
backup
Sync • Can be asychronous • Can be intentional •
Requires network
DATA STORAGE IN THE FRONT END
LOCALSTORAGE
LocalStorage • Simple key value store • Synchronous (slow)
WEBSQL
WEBSQL
INDEXEDDB
IndexedDB • Asynchronous • o_O
MAKING DATA OFFLINE FIRST
Making data offline first We need something that is: •
Easily distributed • Eventually consistent • Resolves conflicts • Web friendly
None
CouchDB Apache CouchDB™ is a database that uses JSON for
documents, JavaScript for MapReduce indexes, and regular HTTP for its API
None
PouchDB • CouchDB for the browser/Node • Wraps IndexedDB or
WebSQL • LocalStorage adapter available as a plugin
DEMO
Offline first • The time for offline first is now
• Distributing data like this requires a change of mindset • Not all application data needs to be stored this way
Help me! On a scale of 0 to 10, how
likely is it that you would recommend this talk to a friend or colleague? 0203 322 5761
Thanks! @philnash http:/ /philna.sh
[email protected]
On a scale of 0
to 10, how likely is it that you would recommend this talk to a friend or colleague? 0203 322 5761