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
API Throwdown
Search
mateuscoelho2009
February 06, 2020
Programming
40
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
API Throwdown
Concepts and comparison between the following API styles: RPC, REST and GraphQL.
mateuscoelho2009
February 06, 2020
Other Decks in Programming
See All in Programming
sbt 2.0: takeoff
eed3si9n
0
160
Verilogで学ぶCPU自作入門
uyuki234
8
4.1k
Long Living Tokens, Die, Die, Die! (or: The One Ring is Banned in Modern)
sylph01
0
310
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
0
1.4k
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
500
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
480
Agents on Rails - Rails at Scale 2026
irinanazarova
0
560
Next.js: The final boss of Web Performance
guaca
0
260
R8 の設定見直しでアプリサイズ削減
andpad
0
220
Railsバージョンを4倍にした話
optim
0
400
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
270
Domain-Driven Transformation
hschwentner
2
2.3k
Featured
See All Featured
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.3k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
630
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
220
Utilizing Notion as your number one productivity tool
mfonobong
4
620
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
870
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
530
Crafting Experiences
bethany
1
380
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
570
The SEO identity crisis: Don't let AI make you average
varn
0
590
The Pragmatic Product Professional
lauravandoore
37
7.5k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
520
GraphQLとの向き合い方2022年版
quramy
50
15k
Transcript
API Throwdown: RPC vs REST vs GraphQL Mateus Coelho -
Software Engineer at Loft Uma nova experiência na compra e venda de imóveis 1
Loft — Junho.2019 Afinal, qual o melhor estilo de API?
Uma nova experiência na compra e venda de imóveis 2
Loft — Junho.2019 Tretas Uma nova experiência na compra e
venda de imóveis 3
Devemos Considerar Alguns Pontos de Design 4 1.Acoplamento 2.Chattiness +
verbosidade 3.Complexidade do Cliente 4.Complexidade de Desenvolvimento 5.Cacheamento 6.Facilidade de Descoberta 7.Versionamento
Devemos entender os tradeoffs 5
Sobre o que é essa talk? 6 Permuta Playbook 1.Levantar
conceitos sobre essas tecnologias 2.Prática 3.Framework simples
Loft — Junho.2019 RPC Unidade fundamental: Função Uma nova experiência
na compra e venda de imóveis 7 "Chame uma função em um servidor"
Vamos à Prática! 8 1.Lista de conversas 2.Lista de mensagens
3.Enviar mensagem para conversa
RPC 9 Direto e Simples Suas vantagens e desvantagens Alto
Acoplamento Pros Cons Fácil de Criar Funções Fácil de Criar Funções Alta Performance Difícil Descoberta
Loft — Junho.2019 REST Unidade fundamental: Recursos Uma nova experiência
na compra e venda de imóveis 10 "Aqui estão alguns recursos e o que você pode fazer com eles"
Minha API é RESTful? 11
Roy Fielding 12 "A REST API should be entered with
no prior knowledge beyond the initial URI (bookmark) and a set of standardized media types (...)"
REST 13 Baixo Acoplamento Suas vantagens e desvantagens Padrão Difícil
de Estabelecer Pros Cons Fácil Descoberta Under/Over-fetching Resistente à Modificações Muitos Roundtrips
Loft — Junho.2019 GraphQL Unidade fundamental: Query Uma nova experiência
na compra e venda de imóveis 14 "Peça exatamente o que você quer"
Schema 15
GraphQL 16 Baixo Overhead Suas vantagens e desvantagens Difícil Desenvolvimento
Pros Cons Fácil Descoberta Cacheamento Schemas Performance das Queries
Loft — Junho.2019 Afinal, qual o melhor estilo de API?
Uma nova experiência na compra e venda de imóveis 17
Loft — Junho.2019 Afinal, qual o melhor estilo de API
para determinada tarefa? Uma nova experiência na compra e venda de imóveis 18
Qual o melhor estilo de API para determinada aplicação? 19
REST RPC GraphQL 1.Clientes variados 2.Foco nos recursos 3.Facilidade de descoberta 1.Alta performance 2.Orientado à ações 3.Pouca conversação 1.Dados com “formato de grafo” 2.Otimizados para alta latência
Perguntas? 20 Essa é a hora de perguntar o que
quiser!
Obrigadx Uma nova experiência na compra e venda de imóveis
21 Source Code: https://github.com/mateuscoelho2009/nest-api-styles