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
Aplicações Real-time com Phoenix LiveView
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Alessandro Dias Batista
September 23, 2025
Programming
0
19
Aplicações Real-time com Phoenix LiveView
Slides usados no minicurso da Softweek 2025 na faculdade Campo real
Alessandro Dias Batista
September 23, 2025
Tweet
Share
More Decks by Alessandro Dias Batista
See All by Alessandro Dias Batista
Aprenda http criando seu server
adbatista
0
21
GURUPI - Conhecendo Phoenix Liveview
adbatista
0
18
Ciclo de trabalho Ágil
adbatista
1
61
Ruby e o Mercado de trabalho
adbatista
0
200
Turbolinks 101
adbatista
0
120
Other Decks in Programming
See All in Programming
ベクトル検索のフィルタを用いた機械学習モデルとの統合 / python-meetup-fukuoka-06-vector-attr
monochromegane
2
520
Rで始めるML・LLM活用入門
wakamatsu_takumu
0
200
エンジニアの「手元の自動化」を加速するn8n 2026.02.27
symy2co
0
180
KagglerがMixSeekを触ってみた
morim
0
210
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
970
Codex CLIのSubagentsによる並列API実装 / Parallel API Implementation with Codex CLI Subagents
takatty
2
360
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
590
ポーリング処理廃止によるイベント駆動アーキテクチャへの移行
seitarof
3
1.3k
Everything Claude Code OSS詳細 — 5層構造の中身と導入方法
targe
0
150
CS教育のDX AIによる育成の効率化
niftycorp
PRO
0
160
モダンOBSプラグイン開発
umireon
0
180
new(1.26) ← これすき / kamakura.go #8
utgwkk
0
2.7k
Featured
See All Featured
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.8k
Accessibility Awareness
sabderemane
0
84
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
77
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
Become a Pro
speakerdeck
PRO
31
5.9k
The Language of Interfaces
destraynor
162
26k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
91
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.5k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.2k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.1k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
250
Transcript
Aplicações real-time com Phoenix LiveView
Alessandro Dias 12 anos trabalhando com desenvolvimento web Trabalhei na
Codeminer de 2014 até 2024
Anos 90 • Era tudo mato • A internet estava
começando • Sites estáticos • Conexões HTTP não eram persistentes • Navegar entre páginas em sites era lento • One piece começa • Ajax é proposto
None
Anos 2000 • Server-sent events • Surge o HTML5 •
Surge Websockets • Surge o HTTP2 • Elixir é criado (2012) • Phoenix é criado (2014) • Phoenix LiveView é criado (2019)
O que é uma aplicação real time? É uma aplicação
em que as informações são entregues da maneira mais rápida possível. Exemplo: • WhatsApp • Notificações do Ifood • Google docs • Twitch
Técnicas para replicar comportamento realtime
Pooling Long Pooling Server-Sent Events (SSE) Websockets
None
None
Phoenix LiveView é uma biblioteca que fornece experiência de usuário
realtime com renderização do lado do servidor, através de comunicação via WebSocket, necessitando de mínima escrita de Javascript e nenhuma em alguns casos.
message: search params: "text to search"
message: search params: "text to search" json {.....}
Vamos ao código
https://github.com/adbatista/Sofweek2025
Rode os comandos mix setup mix phx.server
Abra o navegador http://localhost:4000/
Tela do Chat
Template do chat
None
Tratando os eventos
None
None
Atualizando as janelas de todos usuários ativos no chat
None
None
None
None
None
Obrigado LinkedIn adbatista.github.io