<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>实时通信 - 标签 | 飞污熊小站</title><link>https://xiongneng.me/tags/%E5%AE%9E%E6%97%B6%E9%80%9A%E4%BF%A1/</link><description>飞污熊小站</description><generator>Hugo 0.166.0 &amp; FixIt v0.4.6-20260512073637-464c4659</generator><language>zh-CN</language><managingEditor>yidao620@163.com (XiongNeng)</managingEditor><webMaster>yidao620@163.com (XiongNeng)</webMaster><copyright>XiongNeng</copyright><lastBuildDate>Fri, 25 Sep 2026 02:16:47 +0000</lastBuildDate><atom:link href="https://xiongneng.me/tags/%E5%AE%9E%E6%97%B6%E9%80%9A%E4%BF%A1/index.xml" rel="self" type="application/rss+xml"/><item><title>SpringBoot4系列13 - 使用WebSocket实时通信</title><link>https://xiongneng.me/posts/java/springboot/sb4-websocket/</link><pubDate>Tue, 13 Oct 2026 20:00:00 +0800</pubDate><author>yidao620@163.com (XiongNeng)</author><guid>https://xiongneng.me/posts/java/springboot/sb4-websocket/</guid><category domain="https://xiongneng.me/categories/java/">Java</category><description>&lt;p&gt;运营后台的「新订单监控」页面是我先用轮询撑起来的：前端每 3 秒发一次 &lt;code&gt;GET /api/orders?since=…&lt;/code&gt;，几百个页面同时开着，一秒钟就是上百个请求，其中九成以上查回来的是空数组。高峰期轮询请求和正常下单请求挤在同一条队列里，接口响应从 40 毫秒涨到 1 秒开外，运营跑来找我反馈「页面刷新慢」，我打开数据库慢查询日志，里面躺着一排一模一样的查询，那一刻我就知道该换方案了。&lt;/p&gt;</description></item></channel></rss>