Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Aplicações Real-time com Phoenix LiveView
Search
Alessandro Dias Batista
September 23, 2025
Programming
37
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
Usando agentes de IA no ambiente de desenvolvimento
adbatista
0
31
Aprenda http criando seu server
adbatista
0
33
GURUPI - Conhecendo Phoenix Liveview
adbatista
0
30
Ciclo de trabalho Ágil
adbatista
1
66
Ruby e o Mercado de trabalho
adbatista
0
220
Turbolinks 101
adbatista
0
130
Other Decks in Programming
See All in Programming
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.8k
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.2k
技術的負債を組織課題として解く-増えすぎたマイクロサービスとの戦い-
reimaru
1
3k
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
180
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
480
[ハンズオン]AIへの指示だけで「五目並べ」を作ってみよう
satoshi256kbyte
1
370
すこし踏み込む CancellationToken
htkym
2
1.7k
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
380
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
110
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
220
RAG の “R” を Swift で覗いてみる 〜「意味から探す」検索の仕組み〜
nao_randd
0
140
速習iPhone Duo対応
yuukiw00w
2
980
Featured
See All Featured
How to make the Groovebox
asonas
2
2.5k
Producing Creativity
orderedlist
PRO
348
41k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
450
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
570
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
700
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
The browser strikes back
jonoalderson
0
1.8k
Docker and Python
trallard
47
4.2k
Typedesign – Prime Four
hannesfritz
42
3.2k
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