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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Alessandro Dias Batista
September 23, 2025
Programming
0
12
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
15
GURUPI - Conhecendo Phoenix Liveview
adbatista
0
14
Ciclo de trabalho Ágil
adbatista
1
58
Ruby e o Mercado de trabalho
adbatista
0
200
Turbolinks 101
adbatista
0
120
Other Decks in Programming
See All in Programming
Patterns of Patterns
denyspoltorak
0
1.4k
AIで開発はどれくらい加速したのか?AIエージェントによるコード生成を、現場の評価と研究開発の評価の両面からdeep diveしてみる
daisuketakeda
1
2.5k
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
380
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
250
「ブロックテーマでは再現できない」は本当か?
inc2734
0
1k
Raku Raku Notion 20260128
hareyakayuruyaka
0
340
QAフローを最適化し、品質水準を満たしながらリリースまでの期間を最短化する #RSGT2026
shibayu36
2
4.4k
Claude Codeと2つの巻き戻し戦略 / Two Rewind Strategies with Claude Code
fruitriin
0
140
高速開発のためのコード整理術
sutetotanuki
1
400
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
7.4k
Grafana:建立系統全知視角的捷徑
blueswen
0
330
AI によるインシデント初動調査の自動化を行う AI インシデントコマンダーを作った話
azukiazusa1
1
740
Featured
See All Featured
Faster Mobile Websites
deanohume
310
31k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
240
The SEO identity crisis: Don't let AI make you average
varn
0
290
Balancing Empowerment & Direction
lara
5
890
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.8k
Abbi's Birthday
coloredviolet
1
4.8k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
350
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.1k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
330
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
61
52k
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