<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Net 9 on Strathweb. A free flowing tech monologue.</title>
    <link>https://www.strathweb.com/categories/net-9/</link>
    <description>Recent content in Net 9 on Strathweb. A free flowing tech monologue.</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 12 Jul 2024 04:06:14 +0000</lastBuildDate><atom:link href="https://www.strathweb.com/categories/net-9/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Built-in support for Server Sent Events in .NET 9</title>
      <link>https://www.strathweb.com/2024/07/built-in-support-for-server-sent-events-in-net-9/</link>
      <pubDate>Fri, 12 Jul 2024 04:06:14 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2024/07/built-in-support-for-server-sent-events-in-net-9/</guid>
      <description>&lt;p&gt;Many years ago I wrote &lt;a href=&#34;https://link.springer.com/book/10.1007/978-1-4302-5981-7&#34;&gt;a book&lt;/a&gt; about ASP.NET Web API. One of the &lt;a href=&#34;https://link.springer.com/chapter/10.1007/978-1-4302-5981-7_8&#34;&gt;chapters&lt;/a&gt; in that book was dedicated to supporting push communication between the server and the client, and one of the covered techniques was the niche technology called Server-Sent Events (&lt;a href=&#34;https://html.spec.whatwg.org/multipage/server-sent-events.html&#34;&gt;SSE&lt;/a&gt;). At the time, SSE was not widely supported by browsers, however, it was super simple and effective way to push data from the server to the client, and it was a great fit for scenarios where you needed to push data from the server to the client in a one-way fashion without much ceremony.&lt;/p&gt;
&lt;p&gt;Over the years, SSE has not really gained much traction, and WebSockets have become the de-facto standard for push communication. However, in recent years a certain OpenAI came out with their API that uses SSE for streaming responses from their Large Language Model, and, pretty much overnight, SSE became cool again.&lt;/p&gt;
&lt;p&gt;In .NET 9, SSE finally is getting first-class client-side support and the first preview was released this week with .NET Preview 9.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
