<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Node.js on 编程心语</title>
		<link>https://www.ithome.me/tags/node.js/</link>
		<description>Recent content in Node.js on 编程心语</description>
		<generator>Hugo</generator>
		<language>zh-CN</language>
		
		
		
		
			<lastBuildDate>Tue, 04 Aug 2026 14:59:27 +0800</lastBuildDate>
		
			<atom:link href="https://www.ithome.me/tags/node.js/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>SSE 实战：用 Server-Sent Events 实现实时推送，比 WebSocket 更轻量的服务端推送方案</title>
				<link>https://www.ithome.me/post/2026/06/27/sse-server-sent-events-realtime-push/</link>
				<pubDate>Sat, 27 Jun 2026 09:00:00 +0800</pubDate>
				<guid>https://www.ithome.me/post/2026/06/27/sse-server-sent-events-realtime-push/</guid>
				<description>&lt;h2 id=&#34;大多数开发者选错了实时通信方案&#34;&gt;大多数开发者选错了实时通信方案&lt;/h2&gt;&#xA;&lt;p&gt;提到&amp;quot;服务端主动推送&amp;quot;，绝大多数开发者第一反应是 WebSocket。但在实际项目中，&lt;strong&gt;80% 的实时场景根本不需要双向通信&lt;/strong&gt;——股票行情、通知推送、日志流、AI 流式输出，这些场景数据都是从服务端单向流向客户端。&lt;/p&gt;</description>
			</item>
			<item>
				<title>Node.js Worker Threads 实战：用多线程突破单线程瓶颈，处理CPU密集型任务</title>
				<link>https://www.ithome.me/post/2026/06/26/nodejs-worker-threads-cpu-intensive/</link>
				<pubDate>Fri, 26 Jun 2026 09:00:00 +0800</pubDate>
				<guid>https://www.ithome.me/post/2026/06/26/nodejs-worker-threads-cpu-intensive/</guid>
				<description>&lt;h2 id=&#34;为什么-nodejs-需要多线程&#34;&gt;为什么 Node.js 需要多线程？&lt;/h2&gt;&#xA;&lt;p&gt;Node.js 的核心优势在于事件驱动的非阻塞 I/O 模型，这让它在处理 HTTP 请求、文件读写、数据库查询等 I/O 密集型任务时表现出色。但这种模型有一个天然的短板：&lt;strong&gt;单线程无法充分利用多核 CPU&lt;/strong&gt;。&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
