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
0
62
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
31
Other Decks in Technology
See All in Technology
Zephyr(RTOS)にEdge AIを組み込んでみた話
iotengineer22
1
250
会社を支える Pythonという言語戦略 ~なぜPythonを主要言語にしているのか?~
curekoshimizu
1
270
フレームワークを意識させないワークショップづくり
keigosuda
0
240
混合雲環境整合異質工作流程工具運行關鍵業務 Job 的經驗分享
yaosiang
0
140
React19.2のuseEffectEventを追う
maguroalternative
2
590
映像エッジAIにおけるNode-RED活用事例
emirmatsui
0
130
それでも私が品質保証プロセスを作り続ける理由 #テストラジオ / Why I still continue to create QA process
pineapplecandy
0
150
エンタメとAIのための3Dパラレルワールド構築(GPU UNITE 2025 特別講演)
pfn
PRO
0
620
「改善」ってこれでいいんだっけ?
ukigmo_hiro
0
400
[VPoE Global Summit] サービスレベル目標による信頼性への投資最適化
satos
0
200
「REALITY」3Dアバターシステムの7年分の拡張の歴史について
gree_tech
PRO
0
120
「魔法少女まどか☆マギカ Magia Exedra」のIPのキャラクターを描くための3Dルック開発
gree_tech
PRO
0
140
Featured
See All Featured
A Tale of Four Properties
chriscoyier
161
23k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
Done Done
chrislema
185
16k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
132
19k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
22k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
130k
A Modern Web Designer's Workflow
chriscoyier
697
190k
Building a Scalable Design System with Sketch
lauravandoore
463
33k
[RailsConf 2023] Rails as a piece of cake
palkan
57
5.9k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.2k
Designing for humans not robots
tammielis
254
26k
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