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
REST_vs_GraphQL_今夜はご注文はどっち.pdf
Search
CypressKuo
February 23, 2021
Technology
25
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
REST_vs_GraphQL_今夜はご注文はどっち.pdf
CypressKuo
February 23, 2021
More Decks by CypressKuo
See All by CypressKuo
Deep-copying.pdf
cypresskuo
0
38
CSS_for_Web_Vitals.pdf
cypresskuo
0
42
談談_Code_review.pdf
cypresskuo
0
50
CSS_重構.pdf
cypresskuo
0
29
跟上_JS_的腳步-ES2020.pdf
cypresskuo
0
32
Core_Web_Vitals.pdf
cypresskuo
0
57
這個時代人人都知道的敏捷開發.pdf
cypresskuo
0
63
Webassembly.pdf
cypresskuo
0
14
談談_Functional_Programming.pdf
cypresskuo
0
32
Other Decks in Technology
See All in Technology
Rancherの紹介&Update情報(RancherJP Online Meetup #09)
yoshiyuki_kono
0
120
Oracle Cloud Infrastructure IaaS 新機能アップデート 2026/3 - 2026/5
oracle4engineer
PRO
1
200
AI駆動開発が変える、大規模開発の前提 ーHuman in the Loop から Human on the Loop へ / AIE2026
visional_engineering_and_design
24
13k
正解のないAIプロダクトをどう導くか?dodaが挑む、ユーザーの『本音』を構造化する評価設計と検証のリアル
techtekt
PRO
0
190
タクシーアプリ『GO』の実践的データ活用
mot_techtalk
3
160
地元にいないローカルオーガナイザーの立ち回り
uvb_76
1
960
Oracle AI Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
6
1.9k
ルールやカスタム機能、どう使う?理想の出力を引き出すために今知りたいIBM Bob 5つの機能
muehara
1
340
AI-DLCを活用した高品質・安全なAI駆動開発実践 / AI Driven Development
yoshidashingo
1
380
Sony_KMP_Journey_KotlinConf2026
sony
2
210
Mastering Ruby Box
tagomoris
3
150
GoとSIMDとWasmの今。
askua
3
510
Featured
See All Featured
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
65
56k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
390
Darren the Foodie - Storyboard
khoart
PRO
3
3.4k
Context Engineering - Making Every Token Count
addyosmani
9
940
Abbi's Birthday
coloredviolet
2
7.9k
エンジニアに許された特別な時間の終わり
watany
107
250k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
The untapped power of vector embeddings
frankvandijk
2
1.7k
Heart Work Chapter 1 - Part 1
lfama
PRO
7
36k
Six Lessons from altMBA
skipperchong
29
4.3k
Typedesign – Prime Four
hannesfritz
42
3.1k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
240
Transcript
The material contained in this documentation is proprietary and confidential
to PIXNET. Copies are made available on the basis that use is limited to the sole purpose of evaluating PIXNET’s capabilities. It is not permissible to use, modify, copy or disclose any information contained in this presentation document for any other purpose without the express written permission of PIXNET. If you are not the intended recipient of this material you are requested to take immediate steps to destroy it. Copyright © 2018 PIXNET. All rights reserved. REST vs GraphQL 今夜はご注文はどっち cypresskuo @JAAD例會 2020/10/06
RESTful API 特性 • 動詞 + 受詞 • 冪等性(Idempotent) •
回傳狀態碼 • 無狀態
RESTful API 優點 • 簡單且統一的 API 接口 • 降低系統資料之間的耦合性 •
好維護、除錯(搭配 Status Code) • 實做 Cache 較簡單(冪等性)
RESTful API 缺點 • 低耦合性 -> 高鬆散 • 資料重覆 •
資料溢出
GraphQL • 2012 年 Facebook 發明了 GraphQL • 2015 年開源
• 2018 年 Facebook 將 GraphQL 項目轉移到新成立的 GraphQL 基金會(隸 屬於非營利性的 Linux 基金會)
GraphQL 特性 • 單一個 API 接口 • 始終使用 POST 請求
• 資料需求驅動設計(Driven by data requirement) • 強型別
GraphQL 特性 https://www.example.com/api/graphql
GraphQL 特性
GraphQL 優點 • 減少 Request 的次數 • 精準資料 • 無需為了多平台而設計多個
API 系統 • 前端控制權提升
GraphQL 架構
GraphQL 架構
GraphQL 架構
GraphQL 架構
GraphQL 缺點 • 規範少(易出現 Anti Pattern) • 學習成本高 • Cache
實作較難
REST vs GraphQL どっち
Q & A
Thanks for listening