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
Endpoints_Phoenix.pdf
Search
Moroni
April 07, 2021
Technology
77
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Endpoints_Phoenix.pdf
Moroni
April 07, 2021
More Decks by Moroni
See All by Moroni
Inicialização de Aplicações Elixir
moronisauner
0
41
Other Decks in Technology
See All in Technology
全員がプロダクトへ向き合う組織を持続成長させるために——組織づくりのフライホイールと4象限 / The Flywheel Model and Four Quadrants for Organizational Design
hiro_torii
1
350
AI駆動開発を組織で促すために
lycorptech_jp
PRO
7
9.2k
Nav2、Nav3 ... はたまた自作?〜 作って理解する Nav3 の設計意図 〜 / Nav2, Nav3 ... or Build Your Own? — Understanding Nav3's design intent by building it from scratch
yanzm
0
180
DMMブックスのNext.js化を加速させるAI活用 / Migrating DMM Books to Next.js with AI
kentarom
1
310
魔法少女がClaude Codeを監視する / ccportal-deck
noriyukitakei
3
120
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
55k
Guerilla InnerSource in enterprises, during the AI hype
onenashev
PRO
0
140
プロダクトエンジニアに必要な「いい感じ」に作る能力 〜たくさん作れる時代に、どこまで作るかの決め方〜
jnishime_dresscode
2
870
Claude Codeの体系的な理解と知識のフック
oikon48
10
6.6k
When Does a Local Qwen Start to Break
morshoto
0
130
Backstageでつくるセルフサービスな社内開発基盤
kikunosuke75
1
210
Genie Code ワークショップ 基礎編 / Genie-Code-Workshop-fundamental
databricksjapan
PRO
0
300
Featured
See All Featured
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
Accessibility Awareness
sabderemane
1
190
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
570
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
220
Chasing Engaging Ingredients in Design
codingconduct
0
290
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
840
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.1k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
310
Transcript
Endpoints Phoenix O caminho por onde todas requisições passam
github.com/moronisauner
Vamos ao que interessa
Phoenix e Plug • O Phoenix foi construído em cima
do Plug • Inclusive o Plug está presente em toda a parte • O Phoenix fornece ferramentas excelentes para trabalhar com o Plug ◦ Endpoint ◦ Router ◦ Controllers • Só os Channels e Sockets que são um pouco diferentes
Como que funciona?
Plug
Plug.Conn
Endpoint
Router
Controller
Deveres do Endpoint • Coloca toda manipulação do Plug.Conn numa
árvore de supervisão • Define um pipeline inicial para todas as requests • Guarda algumas configurações • Qualquer coisa além são os plugs que fazem
O que é comum encontrar no Endpoint • CORS e
CSRF • Autenticação • Validação de Token (ex: Guardian) • Coleta de Métricas • Plugs de plataformas de monitoramento (ex: DataDog e NewRelic)
Vale comentar
None
None