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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Moroni
April 07, 2021
Technology
0
66
Endpoints_Phoenix.pdf
Moroni
April 07, 2021
Tweet
Share
More Decks by Moroni
See All by Moroni
Inicialização de Aplicações Elixir
moronisauner
0
34
Other Decks in Technology
See All in Technology
Oracle Cloud Infrastructure:2026年3月度サービス・アップデート
oracle4engineer
PRO
0
210
Network Firewall Proxyで 自前プロキシを消し去ることができるのか
gusandayo
0
130
「活動」は激変する。「ベース」は変わらない ~ 4つの軸で捉える_AI時代ソフトウェア開発マネジメント
sentokun
0
130
スケーリングを封じられたEC2を救いたい
senseofunity129
0
130
「できない」のアウトプット 同人誌『精神を壊してからの』シリーズ出版を 通して得られたこと
comi190327
3
130
LLMに何を任せ、何を任せないか
cap120
10
6.4k
Kubernetesの「隠れメモリ消費」によるNode共倒れと、Request適正化という処方箋
g0xu
0
160
「AIエージェントで変わる開発プロセス―レビューボトルネックからの脱却」
lycorptech_jp
PRO
0
200
来期の評価で変えようと思っていること 〜AI時代に変わること・変わらないこと〜
estie
0
120
互換性のある(らしい)DBへの移行など考えるにあたってたいへんざっくり
sejima
PRO
0
380
Bill One 開発エンジニア 紹介資料
sansan33
PRO
5
18k
契約書からの情報抽出を行うLLMのスループットを、バッチ処理を用いて最大40%改善した話
sansantech
PRO
3
330
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
The browser strikes back
jonoalderson
0
860
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
420
Speed Design
sergeychernyshev
33
1.6k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
690
Utilizing Notion as your number one productivity tool
mfonobong
4
280
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.1k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
190
Faster Mobile Websites
deanohume
310
31k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.4k
Color Theory Basics | Prateek | Gurzu
gurzu
0
270
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