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
21
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
22
Other Decks in Technology
See All in Technology
DevOpsメトリクスとアウトカムの接続にトライ!開発プロセスを通して計測できるメトリクスの活用方法
ham0215
2
230
AOAI をきっかけに 社内の Azure 管理を見直した話
recruitengineers
PRO
1
170
Google Cloud Next '24でブログを10本書いた方法と勉強会を沸かせた方法
yasumuusan
0
230
Azure Container Apps + Bicep 〜 こんな感じで運用しています
kaz29
2
370
アクセシビリティを考慮したUI/CSSフレームワーク・ライブラリ選定
yajihum
2
980
「手動オペレーションに定評がある」と言われた私が心がけていること / phpcon_odawara2024
blue_goheimochi
2
360
20240416_devopsdaystokyo
kzkmaeda
1
200
Postman v10リリース後を振り返る
nagix
0
170
Vertex AI を中心に 生成AIのアップデートを共有します
kaz1437
0
270
MapLibreとAmazon Location Service
dayjournal
1
130
ユーザーストーリーのレビューを自動化したみたの
bun913
1
380
自動生成を活用した、運用保守コストを抑える Error/Alert/Runbook の一元集約管理 / Centralized management of Error/Alert/Runbook to minimize operational costs using automated code generation
biwashi
12
2.3k
Featured
See All Featured
What's new in Ruby 2.0
geeforr
337
31k
Learning to Love Humans: Emotional Interface Design
aarron
266
39k
The Invisible Customer
myddelton
114
12k
The Illustrated Children's Guide to Kubernetes
chrisshort
30
46k
A designer walks into a library…
pauljervisheath
199
23k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
220
21k
Docker and Python
trallard
33
2.7k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
19
1.9k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
1
3.4k
The Mythical Team-Month
searls
215
42k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
39
4.4k
Pencils Down: Stop Designing & Start Developing
hursman
117
11k
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