Tag: Real-time
All the articles with the tag "Real-time".
-
用 Redis Backplane 解决 SignalR 多实例消息丢失问题
Published: at 02:00 AMSignalR 单实例没问题,一水平扩展消息就开始消失——这是几乎所有人都会踩的坑。本文介绍 Redis Backplane 模式:原理、接入方式、粘性会话要求,以及 Redis 宕机时的行为。配置只需一行代码,但有两件事必须提前搞清楚。
-
.NET 10 中的 Server-Sent Events:实时流式传输的简洁方案
Published: at 12:00 AM本文介绍 .NET 10 中新增的 Results.ServerSentEvents 功能,通过订单实时追踪案例,展示如何用 SSE 替代 WebSocket 实现更简洁的服务端推送,并探讨 Channel、生产环境注意事项及适用场景。
-
Server-Sent Events in ASP.NET Core and .NET 10
Published: at 12:00 AM探索 .NET 10 中新增的原生 Server-Sent Events (SSE) API,学习如何在 ASP.NET Core 中实现轻量级的单向实时数据推送,以及何时选择 SSE 而非 SignalR。