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
19
0
Share
Aplicações Real-time com Phoenix LiveView
Slides usados no minicurso da Softweek 2025 na faculdade Campo real
Alessandro Dias Batista
September 23, 2025
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
19
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
へんな働き方
yusukebe
6
2.9k
Going Multiplatform with Your Android App (Android Makers 2026)
zsmb
2
360
「接続」—パフォーマンスチューニングの最後の一手 〜点と点を結ぶ、その一瞬のために〜
kentaroutakeda
5
2.5k
Java 21/25 Virtual Threads 소개
debop
0
340
PHPで TLSのプロトコルを実装してみるをもう一度しゃべりたい
higaki_program
0
180
アーキテクチャモダナイゼーションとは何か
nwiizo
17
4.6k
Feature Toggle は捨てやすく使おう
gennei
0
490
Nuxt Server Components
wattanx
0
260
Coding as Prompting Since 2025
ragingwind
0
770
3分でわかるatama plusのQA/about atama plus QA
atamaplus
0
130
Codex CLI でつくる、Issue から merge までの開発フロー
amata1219
0
330
forteeの改修から振り返るPHPerKaigi 2026
muno92
PRO
3
250
Featured
See All Featured
WENDY [Excerpt]
tessaabrams
9
37k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
250
Measuring & Analyzing Core Web Vitals
bluesmoon
9
810
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.2k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9k
How Software Deployment tools have changed in the past 20 years
geshan
0
33k
Producing Creativity
orderedlist
PRO
348
40k
How to train your dragon (web standard)
notwaldorf
97
6.6k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
330
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.8k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
430
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
790
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