<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>TechnoloZhu on RANDX</title>
		<link>https://randx.tokyo/tags/technolozhu/</link>
		<description>Recent content in TechnoloZhu on RANDX</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
		
			<lastBuildDate>Sun, 24 May 2026 12:00:00 +0900</lastBuildDate>
		
			<atom:link href="https://randx.tokyo/tags/technolozhu/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>SSE - Server-Sent Events</title>
				<link>https://randx.tokyo/posts/sse-server-sent-events/</link>
				<pubDate>Sun, 24 May 2026 12:00:00 +0900</pubDate>
				<guid>https://randx.tokyo/posts/sse-server-sent-events/</guid>
				<description>&lt;p&gt;&lt;strong&gt;SSE&lt;/strong&gt; stands for &lt;strong&gt;Server-Sent Events&lt;/strong&gt;. It is a web standard technology that enables a server to push real-time updates to clients over a single, long-lived HTTP connection.&lt;/p&gt;&#xA;&lt;h2 id=&#34;key-features&#34;&gt;&#xA;  Key Features&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#key-features&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Server Push&lt;/strong&gt;: The server can send messages at any time without the client needing to request them.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Automatic Reconnection&lt;/strong&gt;: If the connection drops, the browser automatically reconnects and can resume from the last received event using &lt;code&gt;last-event-id&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Simple Implementation&lt;/strong&gt;: Requires minimal code on both client and server sides.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Built on HTTP&lt;/strong&gt;: Works well with proxies, firewalls, and existing web infrastructure.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Event Support&lt;/strong&gt;: You can send named events, data, IDs, and retry instructions.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Lightweight&lt;/strong&gt;: Lower overhead compared to WebSocket for one-way streaming.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;use-cases&#34;&gt;&#xA;  Use Cases&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#use-cases&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Real-time notifications and alerts&lt;/li&gt;&#xA;&lt;li&gt;Live dashboards and monitoring systems&lt;/li&gt;&#xA;&lt;li&gt;Stock prices, cryptocurrency tickers, or sports scores&lt;/li&gt;&#xA;&lt;li&gt;Progress tracking for long-running tasks (file uploads, exports, AI processing)&lt;/li&gt;&#xA;&lt;li&gt;News feeds and social media updates&lt;/li&gt;&#xA;&lt;li&gt;Live chat applications (for the server-to-client message stream)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;limitations&#34;&gt;&#xA;  Limitations&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#limitations&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Unidirectional Only&lt;/strong&gt;: Data flows only from server to client. For client-to-server communication, you still need Fetch, AJAX, or WebSocket.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Text-Only&lt;/strong&gt;: Does not support binary data natively (images, videos, etc.). You must convert them using Base64, which increases payload size.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Browser Connection Limits&lt;/strong&gt;: Most browsers limit concurrent SSE connections per domain (typically 6). Too many open streams can cause issues.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Not Ideal for High-Frequency Bidirectional Apps&lt;/strong&gt;: For real-time multiplayer games or complex chat systems, WebSocket is usually better.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Server Timeouts&lt;/strong&gt;: Some servers and proxies have default connection timeouts. You may need to configure keep-alive settings.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;CORS Considerations&lt;/strong&gt;: Cross-origin requests require proper server headers.&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
			</item>
	</channel>
</rss>
