In this video, we conduct an experiment to see whether modern AI can handle the new Server-Sent Events (SSE) components in Delphi.
Implementing SSE manually used to be a headache (I've had a "horrible" experience with Indy getting this to work), but RAD Studio 13.1 introduces the new THTTPEventSource, making real-time, server-to-client streaming much more efficient than traditional polling.
What’s inside:
- The Problem: Why manual SSE code is often buggy and complex.
- The Tool: A look at the new THTTPEventSource component.
- The AI Experiment: Watch as Alister uses Claude to generate a fully functional real-time story-streaming application in under five minutes.
- The Comparison: A quick test to see how Gemini handles the same Delphi coding prompt.
- Real-time UI Updates: See how the memo updates word-by-word as data flows from the server.
- Whether you are looking to replace inefficient polling loops or want to see how AI can act as a massive time-saver for Delphi development, this video shows you how to get up and running with the latest streaming tech.
Resources:
- SSE Demo Repository: https://github.com/Embarcadero/SSE-Demo
- Official Blog Post: Server-Sent Events (SSE): Getting Real-Time Updates in Your Apps: https://blogs.embarcadero.com/server-sent-events-sse-getting-real-time-updates-in-your-apps/
- API Test Endpoint: https://sse.tools.typinks.com/api/story https://tools.typinks.com/sse/




