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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
CSC307 Lecture 05
javiergs
PRO
0
500
CSC307 Lecture 08
javiergs
PRO
0
670
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
150
AtCoder Conference 2025
shindannin
0
1k
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.8k
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
380
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
20
6.8k
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
1
230
Oxlint JS plugins
kazupon
1
770
[KNOTS 2026登壇資料]AIで拡張‧交差する プロダクト開発のプロセス および携わるメンバーの役割
hisatake
0
250
Kotlin Multiplatform Meetup - Compose Multiplatform 외부 의존성 아키텍처 설계부터 운영까지
wisemuji
0
190
開発者から情シスまで - 多様なユーザー層に届けるAPI提供戦略 / Postman API Night Okinawa 2026 Winter
tasshi
0
200
Featured
See All Featured
Docker and Python
trallard
47
3.7k
How STYLIGHT went responsive
nonsquared
100
6k
Navigating Team Friction
lara
192
16k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
820
Optimising Largest Contentful Paint
csswizardry
37
3.6k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
140
Rebuilding a faster, lazier Slack
samanthasiow
85
9.4k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6.1k
Designing for Performance
lara
610
70k
Bash Introduction
62gerente
615
210k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
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