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
falcor-serverless
Search
Yosuke Kurami
August 11, 2016
Programming
250
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
falcor-serverless
Yosuke Kurami
August 11, 2016
More Decks by Yosuke Kurami
See All by Yosuke Kurami
TypeScript LSP の今までとこれから
quramy
1
2.2k
フロントエンドテストの育て方
quramy
12
3.9k
App Router 悲喜交々
quramy
8
760
上手に付き合うコンポーネントテスト
quramy
6
2.4k
Patched fetch did not work
quramy
6
810
GraphQL あるいは React における自律的なデータ取得について
quramy
18
6k
Next.js App Router
quramy
15
4k
Fragment Composition of GraphQL
quramy
17
4.9k
reg-viz VRT tools
quramy
4
1.8k
Other Decks in Programming
See All in Programming
新卒PdEのリアル
ryu1013
1
500
Building an Out-of-Order CPU
latte72
1
770
個人開発基盤をまるごとCloudflareに引っ越して爆速で総合的体験を向上させた話
tinykitten
0
180
自分的「カンファレンスの楽しみ方」
syumai
0
200
速く作れる。その次は、速く確かめられる開発へ 〜AIネイティブ開発を支える、Shift Down〜 / Can build fast. Next, moving to development where we can verify fast.
rkaga
2
1.3k
AIは賢い。でも実行環境は? CLIおじさんがAI時代に伝えたいこと ~ CLIおじさんがAI時代に伝えたいこと ~
curekoshimizu
1
240
The Good Stuff, Not the Slop: Engineering High-Quality Android Apps with Modern AI Tooling
danybony
1
250
WebRTC映像をAirPlayに対応させる挑戦.pdf
monolithic_adam
0
210
LoopHub - ローカルで動く GitHub で、AI と共同開発
jugyo
1
550
What We Talk About When We Talk About XP
m_seki
2
620
iOSDC Japan 2026 - Swiftで作って学ぼう!データベース自作入門
kaseken
2
160
モデルのリファクタリングが難しいと思ったら、そもそも複雑だったのはビジネス仕様だった ? / is-the-business-domain-the-real-complexity
hatsu38
0
220
Featured
See All Featured
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.7k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
990
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
250
Typedesign – Prime Four
hannesfritz
42
3.2k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.9k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Building Applications with DynamoDB
mza
96
7.2k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
Transcript
Falcor + serverless 2016.08.09 #microserve
About me • @Quramy (Yosuke Kurami) • Frontend Web Developer
at WACUL INC. • develop SPA with Angular(1 and 2) • झຯͰTypeScript༻ͷVimϓϥΪϯ։ൃ͠·͢ • http://vimawesome.com/plugin/tsuquyomi
Falcorͬͯ·͔͢ʁ
Falcorͬͯʁ Netflix͕։ൃͨ͠API IntegrationͷΈ FacebookͷGraphQL + RelayͱࣅͨϨΠϠ
None
ʮཉ͍͠ͷΛཉ͍͚ͩ͠ʯ ΫϥΠΞϯτʹฦ͢Έ (Demand Driven Architecture)
Falcor: Access as the JSON way import { Model }
from "falcor"; import { dataSource } from "./dataSource"; import assert from "assert"; new Model({ source: dataSource, }).get( "article['123']['id', 'title']", "article['123'].author['id', 'name']" ).subscribe(response => { assert.deepEqual(response.json, { article: { "123": { id: "123", title: "graph api", author: { id: "u0001", name: "quramy" } } } }); });
Backends For Frontends (BFF) The BFF is tightly coupled to
a specific user experience, and will typically be maintained by the same team as the user interface. http://samnewman.io/patterns/architectural/bff/#bff
ཁ͢Δʹ৽͍͠αʔό͕ඞཁ
FalcorͷͨΊʹ৽͘͠ج൫ ༻ҙ͢Μͷ໘ͤ͐͘
͜ΕɺLambdaͰΑ͘Ͷʁ
࡞ͬͨϒπ(એ) • https://github.com/Quramy/falcor-lambda • FalcorͷdataSourceΛLambdaͷhandlerʹ ͢Δ܅ • https://github.com/Quramy/serverless- falcor-starter •
Serverless Framework༻Project
ࢥ͍ͬͯΔ͜ͱ • FalcorʹݶΒͣɺDemand Driven Architecture ͕͋·Γྲྀߦͬͯͳ͍(Α͏ʹݟ͑Δ) • ཧ༝1:ඞͣ͠ඞཁͳΈͰͳ͍ • ཧը໘ܥͱ͔ͳΒશવཁΒͳ͍
• Ϟσϧͷ͕গͳ͍ͱ͖خ͘͠ͳ͍
• ཧ༝2:Client, ServerͦΕͧΕʹ৽͍͠Έ Λಋೖ͢Δඞཁ͕͋ΔͷͰɺෑډ͕ߴͦ͏ • ͦΕͰ៉ྷͳAPIઃܭޮతͳϦΫΤετ ͳͲɺಘΒΕΔϝϦοτ৭ʑ͋Δͣ • BaaSͱ͔ग़࢝ΊͯΔ͠ɺօා͕Βͣʹ৮ͬ ͯΈͨΒྑ͍ͱࢥ͏ʂ
݁ • Microservicesͱ͔API Integrationͱ͔࣮ફ͠ ͍ͯΔਓୡGraphQLFalcorΛੵۃతʹ ৮ͬͯਓபn ϊϋΛڞ༗ͯ͠ཉ͍͠ʂ