

Arama Sonuçları: "#ASPDotNET"
20 sonuç





























The coolest feature in ASP .NET Core 10 yet! 𝗦𝗲𝗿𝘃𝗲𝗿-𝗦𝗲𝗻𝘁 𝗘𝘃𝗲𝗻𝘁𝘀 It's a simpler alternative to SignalR 👇 You may need to integrate real-time updates in your .NET application from the backend to the frontend. You have a few options to implement this: • Polling — frontend continuously checks the server for new data • SignalR — frontend subscribes to an event, and the server sends this event using WebSockets • Server-Sent Events (already available in .NET 10 preview) Polling endpoints every few seconds can overload your server and waste bandwidth, while full-duplex WebSockets may be overkill for simple, one-way updates. Server-Sent Events (SSE) provide a lightweight, reliable way for ASP .NET Core apps to push continuous streams of data without the complexity of bidirectional protocols. Today, I shared with 11,267+ people: ➡️ How SSE works and why it matters ➡️ Implementing an SSE endpoint with Minimal APIs ➡️ Testing your SSE stream using an HTTP Request file in the IDE ➡️ Building a simple Frontend Application to test SSE ➡️ Key differences between SSE and SignalR (WebSockets) I will show you how to create "Live Stock Market" updates both on the backend and the frontend. If you missed the issue, here it is (make sure to subscribe): ↳ antondevtips.com/blog/real-time… — ♻️ Repost to help your network learn about Server-Sent Events in .NET 10 ➕ Follow me ( @AntonMartyniuk ) for more #dotnet #API

