$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
The Future of Data in Ember
Search
Dan Gebhardt
March 14, 2018
Programming
0
450
The Future of Data in Ember
Presented at EmberConf 2018.
Dan Gebhardt
March 14, 2018
Tweet
Share
More Decks by Dan Gebhardt
See All by Dan Gebhardt
An Introduction to the JSON:API Specification
dgeb
5
800
Worker power!
dgeb
0
490
Modern Ember
dgeb
0
150
Give Apps Online Superpowers by Optimizing them for Offline
dgeb
2
220
Overview of Orbit.js
dgeb
0
110
Introducing Ember Engines
dgeb
4
3.6k
Introducing JSON API
dgeb
5
720
Fault Tolerant UX
dgeb
4
950
Ambitious Data Flows with Ember.js and Orbit.js
dgeb
10
1.6k
Other Decks in Programming
See All in Programming
All(?) About Point Sets
hole
0
260
Socio-Technical Evolution: Growing an Architecture and Its Organization for Fast Flow
cer
PRO
0
250
251126 TestState APIってなんだっけ?Step Functionsテストどう変わる?
east_takumi
0
300
【CA.ai #3】Google ADKを活用したAI Agent開発と運用知見
harappa80
0
260
UIデザインに役立つ 2025年の最新CSS / The Latest CSS for UI Design 2025
clockmaker
17
6.6k
ViewファーストなRailsアプリ開発のたのしさ
sugiwe
0
390
無秩序からの脱却 / Emergence from chaos
nrslib
2
12k
tsgolintはいかにしてtypescript-goの非公開APIを呼び出しているのか
syumai
3
930
堅牢なフロントエンドテスト基盤を構築するために行った取り組み
shogo4131
6
1.9k
ID管理機能開発の裏側 高速にSaaS連携を実現したチームのAI活用編
atzzcokek
0
180
React Native New Architecture 移行実践報告
taminif
1
130
なあ兄弟、 余白の意味を考えてから UI実装してくれ!
ktcryomm
10
11k
Featured
See All Featured
Six Lessons from altMBA
skipperchong
29
4.1k
Visualization
eitanlees
150
16k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.5k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
120
20k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.8k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Embracing the Ebb and Flow
colly
88
4.9k
Fireside Chat
paigeccino
41
3.7k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.1k
A Modern Web Designer's Workflow
chriscoyier
697
190k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.8k
Transcript
the future of data in ember dan gebhardt @dgeb
the future of data in ember is __________________________
the future of data in ember is __________________________ web standards
the future of data in ember is __________________________ ahead of
web standards
the future of data in ember is __________________________ realtime
RESTful the future of data in ember is __________________________
the future of data in ember is __________________________ graph-based
operations the future of data in ember is __________________________
offline the future of data in ember is __________________________
what you need it to be the future of data
in ember is __________________________
ember needs to meet you where you are and help
you get where you want to be
Orbit Fetch + JSON Ember Data ember-apollo-client emberfire ember-redux
None
requirement fetch and display data about some of your favorite
emberistas
server-side solution GET /api/v1/contacts GET /api/v1/contacts/:contact_id
client-side solution Fetch + JSON
None
None
requirement work offline
None
solution service workers
None
None
$ ember install ember-service-worker $ ember install ember-service-worker-index $ ember
install ember-service-worker-asset-cache $ ember install ember-service-worker-cache-fallback
None
None
None
None
requirement admin pages to edit emberistas (does not need to
work offline)
server-side solution GET /api/v2/contacts GET /api/v2/contacts/:contact_id POST /api/v2/contacts PATCH /api/v2/contacts/:contact_id
DELETE /api/v2/contacts/:contact_id
client-side solution Ember Data
None
None
None
requirement everything needs to work offline
server-side solution GET /api/v2/contacts GET /api/v2/contacts/:contact_id POST /api/v2/contacts PATCH /api/v2/contacts/:contact_id
DELETE /api/v2/contacts/:contact_id
client-side solution Orbit
None
None
Orbit Fetch + JSON Ember Data
how do we allow apps to evolve with the least
friction?
None
None
Capabilities Complexity
None
None
None
Config
None
None
None
February 2013
February 2013
None
None
ActiveModel Serializers (Rails) Ember Data + RestAdapter
ActiveModel Serializers (Rails) Ember Data + RestAdapter
May 2013 Initial draft May 2015 v1.0
ActiveModel Serializers (Rails) Ember Data + JSONAPIAdapter
JSONAPI Resources (Rails) Ember Data + JSONAPIAdapter
JSONAPI Resources (Rails) Orbit + JSONAPISource
fast_jsonapi (Ruby) Orbit + JSONAPISource
50+ server libs 14 languages 50+ client libs 14 languages
None
composable, well-defined interfaces Document Structure Protocol Usage +
monolithic full-stack solution back end front end
back end front end single point of connection
back end front end new degree of freedom
back end front end interchangeable components
None
HTTP compliant Basic CRUD
compound documents hypermedia links filtering sparse fieldsets etc.
v1.1 operations local identities profiles
None
Ember Applications Ember Data
composability + extensibility
store adapter serializer
None
tight coupling store model
store model addons
None
store model addons RecordData interface
new interfaces unlock experimentation
unlocked by RecordData: POJO models schemaless models immutable data structures
static analysis
None
store models basic CRUD
store
partial records embedded records changesets
???????????????
None
data access and synchronization
universal data layer
None
None
u s e c a s e s
OFFLINE
CLIENT-FIRST DEVELOPMENT
PLUGGABLE SOURCES
DATA SYNCHRONIZATION
EDITING CONTEXTS
UNDO / REDO
OPTIMISTIC UI
b a s i c s
SOURCES
SYNCHRONIZES DATA BETWEEN SOURCES
FLOW CONTROL
s t o re
CHANGE TRACKING
IMMUTABLE DATA
None
single source schema
multiple sources coordination strategies state buckets
custom sources new query ops new update ops
how does orbit fit with ember data?
store models basic CRUD
partial records embedded records changesets
???????????????
offline store forking optimistic UIs undo / redo
offline store forking optimistic UIs undo / redo
Orbit : Ember Data :: Glimmer : Ember
Orbit : Ember Dat :: Glim :
ember data can provide orbit's capabilites in a convention-driven package
orbit and its ecosystem can provide a laboratory for experimentation
"The Future"
GraphQL usage will continue to grow. Apollo will continue to
innovate.
REST+ solutions, like JSON:API 1.1, will also grow.
The operations primitive will be adopted across the stack.
Static analysis will improve runtime efficiency.
Immutable data structures will see increased internal usage.
Demand for offline PWAs will grow in order to compete
with native apps.
Orbit will see continued growth across the frontend and in
Node.
You will be able to incrementally adopt new capabilities in
your application as you need them.
None
None
None
Config
None
None
None
None
None
let's build great things together!