> Markdown version of [/events/world-congress-2025/sessions/782-streaming-ai](https://www.wearedevelopers.com/events/world-congress-2025/sessions/782-streaming-ai). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # Streaming AI Responses in Real-Time with SSE in Next.js & NestJS - **Date:** Friday, Jul 11, 2025 - **Time:** 11:00–11:30 (30 min) - **Room:** Stage 7 - **Event:** World Congress 2025 - **Tags:** ai, javascript, llms, performance ## Recording [Watch recording](https://www.wearedevelopers.com/videos/1630-streaming-ai-responses-in-real-time-with-sse-in-next-js-nestjs) ## Description Instant AI responses are crucial for modern applications, but traditional real-time data streaming methods like WebSockets and polling can introduce unnecessary complexity and overhead. What if there was a more efficient way? This session dives into Server-Sent Events (SSE) with Next.js & NestJS as a lightweight, scalable alternative for real-time AI interactions. We’ll compare SSE vs WebSockets vs Polling, explore performance trade-offs, and implement a real-time AI-powered app that streams responses dynamically. What You’ll Learn: - Why SSE? How it compares to WebSockets & Polling. - Hands-on Demo: Building an AI-powered app that streams responses in real-time. - Performance Optimization: Reducing API overhead and improving response times. ## Speaker ### [Ahmed Megahd](https://www.wearedevelopers.com/@ahmed-megahd) Ahmed Megahd, Software Development Head at Soki AG ## Related talks at this congress - [Prompt API & WebNN: The AI Revolution Right in Your Browser](https://www.wearedevelopers.com/events/world-congress-2025/sessions/888-prompt-api-webnn-the) — Christian Liebel - [Privacy-first in-browser Generative AI web apps: offline-ready, future-proof, standards-based](https://www.wearedevelopers.com/events/world-congress-2025/sessions/551-privacy-first-in) — Maxim Salnikov - [Building Interactive Async UI with React 19 and Ariakit](https://www.wearedevelopers.com/events/world-congress-2025/sessions/640-building-interactive) — Aurora Scharff - [Lessons learned from building a thriving Vue.js SaaS application](https://www.wearedevelopers.com/events/world-congress-2025/sessions/923-lessons-learned-from) — Abdelrahman Awad