~/talk

How not(!) to build real-time apps

Talkat CityJS Berlin 2024 · 2024-01-05..02-02· [databases, frontend-architecture]
slides:none on file

Compares three backend event sources and claims Change Data Capture is the most elegant and robust because it removes the dual-write problem: app-level updates fail to scale across instances, polling becomes CPU/DB intensive per user, and naive pub/sub still faces transactional gaps. Shows a demo stack using Debezium + Kafka + Zookeeper + MySQL as the classic CDC path, then a working demo using Prisma Pulse (runs Debezium for you) with a Prisma Pulse async iterator subscribing to a table; it reliably emits DB-created chat events, costs money and is in private beta.

AI-written summary · about

  1. 0:00Introduction to real-time apps
  2. 1:47Application-level updates approach
  3. 4:19Problems with application-level updates
  4. 5:21Polling as an alternative
  5. 7:52Drawbacks of polling
  6. 8:36Adding message queue infrastructure
  7. 9:39Dual write problem persists
  8. 10:22Change data capture solution
  9. 12:50Prisma Pulse demo
  10. 13:32Recap and takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.