<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[WebSocket 长轮询回退，把 Postgres 拖慢了]]></title><description><![CDATA[<p dir="auto">我们修 WebSocket 前，<a href="http://socket.io" rel="nofollow ugc">socket.io</a> 一直回退到 polling。站没完全坏，但数据库查询变多。</p>
]]></description><link>https://localaihub.com/topic/179/websocket-长轮询回退-把-postgres-拖慢了</link><generator>RSS for Node</generator><lastBuildDate>Wed, 03 Jun 2026 19:44:58 GMT</lastBuildDate><atom:link href="https://localaihub.com/topic/179.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 May 2026 23:34:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WebSocket 长轮询回退，把 Postgres 拖慢了 on Wed, 13 May 2026 20:07:00 GMT]]></title><description><![CDATA[<p dir="auto">复盘里要把“代理小配置”写成生产风险，不是附录。</p>
]]></description><link>https://localaihub.com/post/1926</link><guid isPermaLink="true">https://localaihub.com/post/1926</guid><dc:creator><![CDATA[阿航]]></dc:creator><pubDate>Wed, 13 May 2026 20:07:00 GMT</pubDate></item><item><title><![CDATA[Reply to WebSocket 长轮询回退，把 Postgres 拖慢了 on Wed, 13 May 2026 18:34:00 GMT]]></title><description><![CDATA[<p dir="auto">这说明数据库慢是放大结果，不是最初根因。</p>
]]></description><link>https://localaihub.com/post/1925</link><guid isPermaLink="true">https://localaihub.com/post/1925</guid><dc:creator><![CDATA[陈一]]></dc:creator><pubDate>Wed, 13 May 2026 18:34:00 GMT</pubDate></item><item><title><![CDATA[Reply to WebSocket 长轮询回退，把 Postgres 拖慢了 on Wed, 13 May 2026 15:41:00 GMT]]></title><description><![CDATA[<p dir="auto">修 Nginx 后 polling 请求下降了 80%，Postgres 活跃连接也稳了。</p>
]]></description><link>https://localaihub.com/post/1924</link><guid isPermaLink="true">https://localaihub.com/post/1924</guid><dc:creator><![CDATA[oneMoreTry]]></dc:creator><pubDate>Wed, 13 May 2026 15:41:00 GMT</pubDate></item><item><title><![CDATA[Reply to WebSocket 长轮询回退，把 Postgres 拖慢了 on Wed, 13 May 2026 12:47:00 GMT]]></title><description><![CDATA[<p dir="auto">如果前面有 CDN 或安全网关，也可能影响 WebSocket。链路图要画完整。</p>
]]></description><link>https://localaihub.com/post/1923</link><guid isPermaLink="true">https://localaihub.com/post/1923</guid><dc:creator><![CDATA[半糖]]></dc:creator><pubDate>Wed, 13 May 2026 12:47:00 GMT</pubDate></item><item><title><![CDATA[Reply to WebSocket 长轮询回退，把 Postgres 拖慢了 on Wed, 13 May 2026 11:39:00 GMT]]></title><description><![CDATA[<p dir="auto">在线人数还能正常显示时，更容易误判。用户实际会收到延迟通知。</p>
]]></description><link>https://localaihub.com/post/1922</link><guid isPermaLink="true">https://localaihub.com/post/1922</guid><dc:creator><![CDATA[Grace]]></dc:creator><pubDate>Wed, 13 May 2026 11:39:00 GMT</pubDate></item><item><title><![CDATA[Reply to WebSocket 长轮询回退，把 Postgres 拖慢了 on Wed, 13 May 2026 10:56:00 GMT]]></title><description><![CDATA[<p dir="auto">我们之前只有在线人数，没有连接方式。</p>
]]></description><link>https://localaihub.com/post/1921</link><guid isPermaLink="true">https://localaihub.com/post/1921</guid><dc:creator><![CDATA[oneMoreTry]]></dc:creator><pubDate>Wed, 13 May 2026 10:56:00 GMT</pubDate></item><item><title><![CDATA[Reply to WebSocket 长轮询回退，把 Postgres 拖慢了 on Wed, 13 May 2026 09:16:00 GMT]]></title><description><![CDATA[<p dir="auto">指标上要分 WebSocket connected、polling fallback、reconnect rate。</p>
]]></description><link>https://localaihub.com/post/1920</link><guid isPermaLink="true">https://localaihub.com/post/1920</guid><dc:creator><![CDATA[melo]]></dc:creator><pubDate>Wed, 13 May 2026 09:16:00 GMT</pubDate></item><item><title><![CDATA[Reply to WebSocket 长轮询回退，把 Postgres 拖慢了 on Wed, 13 May 2026 08:00:00 GMT]]></title><description><![CDATA[<p dir="auto">对，所以服务要能承受部分回退，但不能因为代理配置错误让全部用户回退。</p>
]]></description><link>https://localaihub.com/post/1919</link><guid isPermaLink="true">https://localaihub.com/post/1919</guid><dc:creator><![CDATA[nora]]></dc:creator><pubDate>Wed, 13 May 2026 08:00:00 GMT</pubDate></item><item><title><![CDATA[Reply to WebSocket 长轮询回退，把 Postgres 拖慢了 on Wed, 13 May 2026 05:05:00 GMT]]></title><description><![CDATA[<p dir="auto">移动端弱网下也可能回退，不要假设所有用户都能稳定 WebSocket。</p>
]]></description><link>https://localaihub.com/post/1918</link><guid isPermaLink="true">https://localaihub.com/post/1918</guid><dc:creator><![CDATA[小蓝]]></dc:creator><pubDate>Wed, 13 May 2026 05:05:00 GMT</pubDate></item><item><title><![CDATA[Reply to WebSocket 长轮询回退，把 Postgres 拖慢了 on Wed, 13 May 2026 04:30:00 GMT]]></title><description><![CDATA[<p dir="auto">先修升级头和超时，再看请求量是否下降。别先优化数据库。</p>
]]></description><link>https://localaihub.com/post/1917</link><guid isPermaLink="true">https://localaihub.com/post/1917</guid><dc:creator><![CDATA[林小北]]></dc:creator><pubDate>Wed, 13 May 2026 04:30:00 GMT</pubDate></item><item><title><![CDATA[Reply to WebSocket 长轮询回退，把 Postgres 拖慢了 on Wed, 13 May 2026 02:40:00 GMT]]></title><description><![CDATA[<p dir="auto">Nginx 访问日志里 <code>/socket.io/</code> 很多，200 和 400 混着来。</p>
]]></description><link>https://localaihub.com/post/1916</link><guid isPermaLink="true">https://localaihub.com/post/1916</guid><dc:creator><![CDATA[oneMoreTry]]></dc:creator><pubDate>Wed, 13 May 2026 02:40:00 GMT</pubDate></item><item><title><![CDATA[Reply to WebSocket 长轮询回退，把 Postgres 拖慢了 on Wed, 13 May 2026 00:03:00 GMT]]></title><description><![CDATA[<p dir="auto">长轮询会增加请求数，虽然不一定直接打 Postgres，但会放大应用层负载。</p>
]]></description><link>https://localaihub.com/post/1915</link><guid isPermaLink="true">https://localaihub.com/post/1915</guid><dc:creator><![CDATA[阿航]]></dc:creator><pubDate>Wed, 13 May 2026 00:03:00 GMT</pubDate></item></channel></rss>