Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
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.1k
フロントエンドテストの育て方
quramy
12
3.8k
App Router 悲喜交々
quramy
8
740
上手に付き合うコンポーネントテスト
quramy
6
2.4k
Patched fetch did not work
quramy
6
790
GraphQL あるいは React における自律的なデータ取得について
quramy
18
5.9k
Next.js App Router
quramy
15
3.9k
Fragment Composition of GraphQL
quramy
17
4.8k
reg-viz VRT tools
quramy
4
1.7k
Other Decks in Programming
See All in Programming
【やさしく解説 設計編 #1】「ドメイン駆動」と「実装駆動」ってなに? 〜設計の考え方を、たとえ話で学ぼう〜
panda728
PRO
1
120
Welcome to the "Parametricity" 🏙️ − Generic だけど Specific な世界 −
guvalif
PRO
1
170
才能?センス?知らん、 続けたもん勝ちだ。-- 結婚・出産・癌を越えてなお、私がプロダクトを創り続ける理由
16bitidol
2
850
【やさしく解説 設計編・中級 #4】ルールの寿命と、システムの年輪
panda728
PRO
2
130
分散システム、なんですぐ死んでしまうん?耐障害性を高めたいあなたのためのレジリエンスパターン入門
mshibuya
7
5.9k
1年で人数1.5倍、PR数5.5倍増。 品質とアウトカムはどうなったか、 何が効いたか
ike002jp
0
130
型も通る、synthも通る、それでも危ない 〜AIのCDKの権限とコストを機械で検証する〜 / It Passes Type Checks, It Passes Synth Checks, but It’s Still Risky — Automatically Verifying Permissions and Costs in AI’s CDK —
seike460
PRO
1
210
霧の中の代数的エフェクト
funnyycat
1
370
Honoでのサプライチェーン侵害対策 〜 3つのライブラリに学ぶ
yusukebe
7
1.9k
AIキャラアプリkaiwaの低遅延音声通話基盤をどう作ったか - AWS Gravitonで支える低遅延・低コストAI Agent基盤
mogamit
0
170
「正の参照」と 「負の導出」で組む ハーネスエンジニアリング
cottpan
1
140
20260623_Loop Engineeringで自分の分身の問い合わせBotを作る
ryugen04
0
210
Featured
See All Featured
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.2k
Making the Leap to Tech Lead
cromwellryan
135
10k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
320
Google's AI Overviews - The New Search
badams
0
1.1k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.1k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
1
370
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
Context Engineering - Making Every Token Count
addyosmani
9
1k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.7k
How to build a perfect <img>
jonoalderson
1
5.8k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
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 ϊϋΛڞ༗ͯ͠ཉ͍͠ʂ