<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: seoulsmith</title>
    <description>The latest articles on DEV Community by seoulsmith (@seoulsmith).</description>
    <link>https://dev.to/seoulsmith</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4230051%2Fc3f4a6a4-80c8-4b75-963a-65169f59e6d3.png</url>
      <title>DEV Community: seoulsmith</title>
      <link>https://dev.to/seoulsmith</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/seoulsmith"/>
    <language>en</language>
    <item>
      <title>One haystack shared by every Roblox server</title>
      <dc:creator>seoulsmith</dc:creator>
      <pubDate>Sat, 05 Dec 2026 00:24:42 +0000</pubDate>
      <link>https://dev.to/seoulsmith/one-haystack-shared-by-every-roblox-server-glj</link>
      <guid>https://dev.to/seoulsmith/one-haystack-shared-by-every-roblox-server-glj</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://seoulsmith.com/blog/games/one-haystack-shared-by-every-server/" rel="noopener noreferrer"&gt;seoulsmith.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.roblox.com/join/fjivi" rel="noopener noreferrer"&gt;One Haystack&lt;/a&gt; is a Roblox game with a single premise: every server digs the same pile of hay, and there is exactly one needle in it. When someone finds it, the season ends everywhere and a new pile starts.&lt;/p&gt;

&lt;p&gt;That premise turns a simple digging game into a small distributed-systems problem. Roblox servers do not share memory. A server holds up to 20 players, lives for as long as people are in it, and can vanish without warning. This post is about how those servers agree on how much of the pile is left, without melting a shared key and without counting the same hay twice.&lt;/p&gt;

&lt;p&gt;I'll leave out one part on purpose: how the needle's location is stored and decided. That is the one thing in the design that players would benefit from knowing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem
&lt;/h2&gt;

&lt;p&gt;Roblox gives you two cross-server stores. DataStore is durable and slow-ish. MemoryStore is fast, expires, and has a request budget. The limits I designed against (Creator Docs, checked 2026-11-10):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Request units: &lt;code&gt;1000 + 120 × concurrent players&lt;/code&gt; per minute, for the whole game&lt;/li&gt;
&lt;li&gt;Per HashMap key: roughly 5,000 write and 15,000 read units per minute, and &lt;code&gt;UpdateAsync&lt;/code&gt; costs at least 2 units and counts against both&lt;/li&gt;
&lt;li&gt;Queues and sorted maps: 1,000,000 items per structure&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The naive design is one key, &lt;code&gt;strawsLeft&lt;/code&gt;, decremented on every swing. A swing happens once per second per player. That is a single hot key written by every player in the game, which is exactly the shape the per-key limit exists to stop.&lt;/p&gt;

&lt;p&gt;There is a second problem that only showed up once I ran the economy simulation. A new player with bare hands and a maxed player on the last tool differ by about 60× in straws per minute. Any fixed pile size is wrong for someone: with a fixed 5 million straws, my budget script put a 20-player game of new players at 1.7–3.8 hours to the needle, and a game of veterans at 3–8 minutes. I wanted a season to last days.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I tried
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A queue of chunks.&lt;/strong&gt; Split the pile into chunks, put them in a MemoryStore queue, let each server pop one. Queues have an invisibility timeout, so a crashed server's chunk would reappear on its own. I dropped it for two reasons. At 10,000 concurrent players the chunk count goes past 1.3 million, over the 1,000,000 item limit. And I could not find a documented maximum for the invisibility timeout, so I did not want the design to depend on it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Chunks sized in straws.&lt;/strong&gt; My first chunk definition was "N straws". Because of the 60× speed gap, that makes the number of store requests proportional to how fast the players in a server happen to dig. A server of veterans would allocate and complete chunks 60 times as often as a server of beginners.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision
&lt;/h2&gt;

&lt;p&gt;Three pieces.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. A chunk is time, not hay.&lt;/strong&gt; A chunk is "what one server digs in 7 minutes". The straw count per chunk is computed per season from measured speed. The request rate then depends only on the number of servers. In the budget table the total stays at about 1.4% of quota from 5 players to 50,000 (for 50,000 players: 85,725 units per minute against a quota of 6,001,000), and most of that is polling, not writes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. K counters instead of one.&lt;/strong&gt; Allocation and completion each use K = 8 HashMap keys (&lt;code&gt;alloc:0..7&lt;/code&gt;, &lt;code&gt;done:0..7&lt;/code&gt;). Chunk ids interleave across shards, so chunk &lt;code&gt;id = k + K·i&lt;/code&gt; is the i-th chunk of shard k. A server asking for work increments one shard's counter with &lt;code&gt;UpdateAsync&lt;/code&gt; and gets a chunk id nobody else has. At 50,000 players that is about 149 write units per minute per shard key, against a limit of roughly 5,000.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Aggregate per chunk, idempotently.&lt;/strong&gt; Servers never report straws. They report "chunk finished", once. Each server keeps the set of chunk ids it has already reported, and marks a chunk as reported before the write, so a write whose outcome is unknown is not retried into a double count. The global progress bar is the sum of the K &lt;code&gt;done&lt;/code&gt; counters, polled every 30 seconds.&lt;/p&gt;

&lt;p&gt;The trade-off is precision. Progress moves in chunk-sized steps, and a chunk held by a server that shuts down is simply lost: the bar may never reach 100%. I accepted that, because the season does not end at 100%. It ends when the needle is found.&lt;/p&gt;

&lt;p&gt;DataStore holds the season definition (the source of truth). MemoryStore holds progress (a cache). A checkpoint every 10 minutes copies counters back, so if MemoryStore is wiped, at most 10 minutes of progress is lost.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;Shard choice. The first version picked the least-advanced shard, and in the spike all three virtual servers read the same counters and took chunks 0, 4 and 8, which are all shard 0. Ties are now broken randomly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;shardOrder&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;alloc&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;readonly&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;perShard&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;shards&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;randomInt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;RandomInt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;open&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;shards&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;alloc&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;perShard&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;open&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;order&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;open&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;size&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;least&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;huge&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;open&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;least&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;least&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;alloc&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;ties&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;open&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;alloc&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="n"&gt;least&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;chosen&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ties&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nf"&gt;randomInt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ties&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;size&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="n"&gt;order&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;chosen&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="n"&gt;open&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;remove&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;open&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;indexOf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;chosen&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;order&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Completion, counted once per chunk:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;complete&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;seasonId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;chunk&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;minutes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;rec&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;record&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;rec&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;rec&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="n"&gt;seasonId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`${seasonId}:${chunk}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;completed&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;has&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;completed&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// the write may have landed even if it reports failure&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;shardOf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;chunk&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;shards&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;liveUpdate&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;DoneCount&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;doneKey&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;old&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;old&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;baseDone&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;minutes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;minutes&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;minutes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;done&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note &lt;code&gt;minutes&lt;/code&gt;: each completion also adds the server-minutes spent. That feeds the next piece.&lt;/p&gt;

&lt;p&gt;Season size. No assumed average speed, only what was actually dug (one tunable value is left out):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;seasonSize&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dailyStraws&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;undefined&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;SeasonSizing&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;SEASON&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dailyStraws&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="kc"&gt;undefined&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;dailyStraws&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;minStraws&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;midDays&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;targetDaysMin&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;targetDaysMax&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;midBand&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="cm"&gt;/* expected progress when a season ends (tunable, left out) */&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;minStraws&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;floor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dailyStraws&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;midDays&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;midBand&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;dailyStraws&lt;/code&gt; is the average of the last 7 days of real digging. &lt;code&gt;midDays&lt;/code&gt; is the middle of the target season length (3 to 7 days). &lt;code&gt;midBand&lt;/code&gt; is the expected progress at which a season ends. The floor is 5 million straws, which is also what the first season uses because there is no history yet. Chunk size comes from the same record: straws dug divided by server-minutes, times 7.&lt;/p&gt;

&lt;p&gt;Because the size follows history, it lags. If the player count jumps mid-season, the pile would be gone in hours. At each checkpoint the server projects the current allocation rate forward, and if the season is on track to end in under 3 days, it adds chunks. It only ever grows the pile, never shrinks it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Result
&lt;/h2&gt;

&lt;p&gt;What I have actually measured:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A spike with three virtual servers against the real MemoryStore and DataStore APIs: 32 and 33 allocations in two runs with no duplicate chunk id, no quota warnings.&lt;/li&gt;
&lt;li&gt;The same spike showed servers only noticed the end of a season at a chunk boundary, which with 7-minute chunks means up to 7 minutes late. After moving that check to the polling loop, a 420-second chunk was abandoned 8–9 seconds after the season ended (with a 5-second poll in the spike).&lt;/li&gt;
&lt;li&gt;Two real game servers on the same season: they received different chunks, and one server's progress display followed the other's completed chunks at each poll (90 → 117 → 196 → 276).&lt;/li&gt;
&lt;li&gt;The whole module takes its clock and its stores as injected dependencies, so the allocation, completion and recovery paths run under TestEZ against a fake MemoryStore. The suite was at 279 passing at the last change to this module.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What I have not measured: anything above a handful of servers. The load numbers are from a budget script, not production. The first public season will be the first real test of the sizing formula, and it starts from the 5 million floor with no history, so I expect the grow-the-pile path to run.&lt;/p&gt;

&lt;p&gt;One Haystack is on Roblox: &lt;a href="https://www.roblox.com/join/fjivi" rel="noopener noreferrer"&gt;https://www.roblox.com/join/fjivi&lt;/a&gt;&lt;/p&gt;

</description>
      <category>roblox</category>
      <category>gamedev</category>
      <category>typescript</category>
      <category>architecture</category>
    </item>
    <item>
      <title>I read robots.txt and the terms before I write a scraper. Most of my ideas die there.</title>
      <dc:creator>seoulsmith</dc:creator>
      <pubDate>Sun, 29 Nov 2026 12:46:07 +0000</pubDate>
      <link>https://dev.to/seoulsmith/i-read-robotstxt-and-the-terms-before-i-write-a-scraper-most-of-my-ideas-die-there-mb4</link>
      <guid>https://dev.to/seoulsmith/i-read-robotstxt-and-the-terms-before-i-write-a-scraper-most-of-my-ideas-die-there-mb4</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://seoulsmith.com/blog/read-the-terms-first/" rel="noopener noreferrer"&gt;seoulsmith.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu3mlimxjoq3v5jzbljif.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu3mlimxjoq3v5jzbljif.png" alt="Table of data sources checked from November 6 to 20, 2026. Dropped: beauty product rankings (bots or ranking path blocked, resale banned), Korean shopping search (general bots blocked), hotel prices (no allowed path to the data), app store top charts (chart data under Disallow: /_), event listings (terms forbid scraping), newsletter posts (terms forbid crawling and scraping), online store prices (7 of 8 store terms prohibit automated collection). Built: job postings from ATS APIs (docs say the jobs may be scraped by third parties), apartment prices from MOLIT and business licences from LOCALDATA (data.go.kr, no restriction on scope of use)." width="799" height="420"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Every idea I looked at between November 6 and 20, 2026, and what robots.txt or the terms said. Three survived.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In the last two weeks I shipped three Apify Actors. In the same two weeks I dropped more ideas than I built, and almost none of them died because the code was hard. They died when I read two files that most scraping tutorials skip: &lt;code&gt;robots.txt&lt;/code&gt; and the terms of service.&lt;/p&gt;

&lt;p&gt;This post is about that filter: what I check, what I found, and what it costs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I check first
&lt;/h2&gt;

&lt;p&gt;I have a day job. My rule for this side project is that any legal risk has to be something I could explain calmly to my employer. "The site's robots.txt allowed it and the terms didn't forbid it" is an easy sentence. "The terms said no, but everyone does it" is not.&lt;/p&gt;

&lt;p&gt;So before writing code, every idea goes through the same questions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Does &lt;code&gt;robots.txt&lt;/code&gt; allow the pages or API the data comes from?&lt;/li&gt;
&lt;li&gt;Do the terms say anything about scraping, crawling, automated access, or commercial reuse?&lt;/li&gt;
&lt;li&gt;If there is an official API or a public data licence, what does it allow?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If the answer to 1 is no, the idea is dropped. If 1 is yes but 2 says no, it is also dropped for now. Only ideas that pass both get built.&lt;/p&gt;

&lt;h2&gt;
  
  
  What robots.txt said
&lt;/h2&gt;

&lt;p&gt;These were the quick ones.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Beauty product rankings.&lt;/strong&gt; A big Korean beauty retailer's &lt;code&gt;robots.txt&lt;/code&gt; blocks every user agent. A ranking app blocks its ranking path. The retailer's global site forbids commercial redistribution in its terms.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A Korean shopping search.&lt;/strong&gt; General bots are blocked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hotel prices.&lt;/strong&gt; When I followed the rules, there was no allowed path that actually returned prices.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;App store top charts.&lt;/strong&gt; Individual app pages on Google Play are allowed, and the first HTML has the name, rating, installs and developer. The top charts are a different story: the chart data comes from a path under &lt;code&gt;Disallow: /_&lt;/code&gt;. Another Actor on the Store had stopped its charts for the same reason.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What the terms said
&lt;/h2&gt;

&lt;p&gt;These took longer, because you have to actually read them. The useful trick is to search the page for "scrape", "crawl", "robot", "automated" and "commercial".&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Event listings.&lt;/strong&gt; One large event platform: "You have no right to, and you agree not to, scrape, crawl, or employ any automated means to extract data from the Sites."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Newsletter posts.&lt;/strong&gt; A newsletter platform lists "Crawls," "scrapes," or "spiders" any page among the things you may not do.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Online store prices.&lt;/strong&gt; This one was technically the easiest. Seven of the stores I tested returned clean product data from a public JSON endpoint, with no blocks. Then I read the terms of eight stores, and seven of them prohibit automated collection. Several use the same sentence, which looks like a default template.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A Korean app store.&lt;/strong&gt; No direct "no scraping" sentence, but it forbids using information from the service for commercial purposes. That clause is written for members and needs interpretation, so I treated it as a no.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Some of these sites don't block a polite scraper at all. The online stores answered every request. That is the trap. "It works" and "it's allowed" are different questions, and only the second one matters if you plan to charge for it someday.&lt;/p&gt;

&lt;h2&gt;
  
  
  What said yes
&lt;/h2&gt;

&lt;p&gt;Three sources passed, and each became an Actor.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Apartment prices&lt;/strong&gt; from Korea's Ministry of Land (MOLIT) on data.go.kr. The licence says there is no restriction on the scope of use, as long as you credit the source. That became my &lt;a href="https://seoulsmith.com/blog/first-apify-actor-korea-apartment-prices/" rel="noopener noreferrer"&gt;first Actor&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Job postings&lt;/strong&gt; from the public APIs of applicant tracking systems. Lever's documentation says it in one line: "These jobs may be scraped by third parties." Ashby's API even has a field called &lt;code&gt;scrapeableCompensationSalarySummary&lt;/code&gt;. That became &lt;a href="https://seoulsmith.com/blog/korea-tech-jobs-in-english/" rel="noopener noreferrer"&gt;Korea Tech Jobs in English&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Business licence records&lt;/strong&gt; (LOCALDATA), also on data.go.kr. Every per-industry API I checked has no restriction on the scope of use, approves keys automatically and updates daily. That became my third Actor, a feed of new and closed businesses in Seoul.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The third one also had a near miss. The same data is published as large daily files on an official file server, which would have been faster than the API. From the cloud server I run Actors on, every request to it was redirected to an error page. It looks like the server turns away foreign or automated traffic. I didn't try to get around that. I used the API instead, which brought its own problems. More on that in another post.&lt;/p&gt;

&lt;p&gt;For one week of data (November 15 to 21, 2026), the new Actor counted 394 business openings and 309 closures in Seoul across nine industries. Restaurants closed faster than they opened: 184 closures against 167 openings.&lt;/p&gt;

&lt;p&gt;Data: local business licence records via data.go.kr.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this costs
&lt;/h2&gt;

&lt;p&gt;I want to be honest about the downside. Inside these rules, demand on Apify is small.&lt;/p&gt;

&lt;p&gt;When I looked through the Store on November 20, the Korean data people actually use was mostly scraped from map and review platforms. The map and place Actors together had roughly 200 monthly users. Most Actors built on Korean government data had 1 to 4 users each.&lt;/p&gt;

&lt;p&gt;So far my numbers match that. As of November 22, my three Actors have zero external users I can confirm, and revenue is $0.&lt;/p&gt;

&lt;p&gt;I still think the filter is right for me. A tool built on data that says yes can grow slowly without a takedown email ending it. A tool built on data that says no is fast to build and stressful to own.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Read &lt;code&gt;robots.txt&lt;/code&gt; before the first request, and the terms before the first line of code.&lt;/li&gt;
&lt;li&gt;Search the terms for "scrape", "crawl", "automated" and "commercial". It takes five minutes.&lt;/li&gt;
&lt;li&gt;Official APIs and public data licences are boring, and boring is what you want under a side project.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Have you dropped a project after reading the terms? I'm curious what made you decide. You can find me on X at &lt;a href="https://x.com/seoulsmith_dev" rel="noopener noreferrer"&gt;@seoulsmith_dev&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>apify</category>
      <category>webscraping</category>
      <category>sideprojects</category>
      <category>opendata</category>
    </item>
    <item>
      <title>715 tech jobs in Korea, straight from company job boards</title>
      <dc:creator>seoulsmith</dc:creator>
      <pubDate>Mon, 16 Nov 2026 05:58:25 +0000</pubDate>
      <link>https://dev.to/seoulsmith/715-tech-jobs-in-korea-straight-from-company-job-boards-4ph7</link>
      <guid>https://dev.to/seoulsmith/715-tech-jobs-in-korea-straight-from-company-job-boards-4ph7</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://seoulsmith.com/blog/korea-tech-jobs-in-english/" rel="noopener noreferrer"&gt;seoulsmith.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhnrrfy5ceoihgulzexaf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhnrrfy5ceoihgulzexaf.png" alt="Horizontal bar chart of 715 tech job postings located in Korea on November 9, 2026, by company: Coupang 350, 42dot 78, Krafton 67, FuriosaAI 53, Daangn (Karrot) 48, Databricks 18, Anthropic 14, Datadog 14, Moloco 10, OpenAI 9, Riot Games 8, Binance 5, and 41 at 16 other companies." width="799" height="447"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Collected on November 9, 2026 from the public job board APIs of Greenhouse, Lever and Ashby. Coupang alone has almost half of the postings.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A week ago I launched my first Apify Actor, a tool for Korean apartment prices. Right before launch I found at least seven other Actors built on the same government dataset, most with about one monthly user. The niche was crowded with builders, not customers.&lt;/p&gt;

&lt;p&gt;So for the second one, I changed the order. I looked for demand first and wrote code last. This post is about what I found, what I left out, and one bug that would have quietly ruined the data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Starting from demand this time
&lt;/h2&gt;

&lt;p&gt;Job data is one of the few categories on Apify Store with clear, repeat demand. When I checked on November 9, the most popular Actor that reads company job boards had more than 1,600 users. Four newer Actors in the same category, all launched this year, had reached 48 to 137 users within three or four months.&lt;/p&gt;

&lt;p&gt;Then I searched the Store for Korean jobs. There were already about 30 Actors for Korean job sites, the big local platforms where most Korean postings live. Most had between 1 and 36 users.&lt;/p&gt;

&lt;p&gt;None of them used the companies' own job boards. That was the gap I could see.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I left out, and why
&lt;/h2&gt;

&lt;p&gt;The obvious move would have been another scraper for a big Korean job site. I didn't build one, for two reasons.&lt;/p&gt;

&lt;p&gt;First, it's the crowded part. Thirty Actors on the same few sites is the same situation I had just walked into with apartment prices.&lt;/p&gt;

&lt;p&gt;Second, the terms. One Korean hiring platform's terms strictly prohibit large-scale use such as crawling and mirroring. Another one's terms forbid using the service for commercial purposes without consent. That clause is written for members and needs interpretation, so I left it out until I can ask them directly. I have a day job, and my rule for this side project is simple: the legal risk has to be something I could explain calmly to my employer.&lt;/p&gt;

&lt;p&gt;Company job boards are different. Many companies post jobs through an applicant tracking system (ATS) like Greenhouse, Lever or Ashby, and these systems offer public, unauthenticated APIs for exactly this purpose: showing a company's open jobs on other sites. Lever's documentation says it plainly: "These jobs may be scraped by third parties." I also checked each host's robots.txt before sending a single request.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finding the companies
&lt;/h2&gt;

&lt;p&gt;The hard part wasn't calling the APIs. It was knowing which companies to call. A Greenhouse board lives at a name like &lt;code&gt;coupang&lt;/code&gt; or &lt;code&gt;krafton&lt;/code&gt;, and there is no public list.&lt;/p&gt;

&lt;p&gt;So I built a small discovery script. It started from 104 candidate companies (54 Korean, 50 global companies likely to hire in Korea), tried 138 possible board names on all three systems, and checked whether each board had any postings located in Korea:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;414 name-and-system combinations, 454 requests in total&lt;/li&gt;
&lt;li&gt;At most one request per host every 1.1 seconds&lt;/li&gt;
&lt;li&gt;Zero blocks or errors&lt;/li&gt;
&lt;li&gt;54 boards found, and 28 of them had postings in Korea&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The miss list was interesting too. I couldn't find boards on these three systems for several of the best-known Korean tech companies, including Toss, Baemin, Kakao, Naver and Nexon. My guess is that they run their own hiring systems, but I haven't confirmed that.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bug that put Singapore jobs in Seoul
&lt;/h2&gt;

&lt;p&gt;My first full run returned 731 postings "in Korea." Some of them were not.&lt;/p&gt;

&lt;p&gt;Greenhouse can return a list of &lt;code&gt;offices&lt;/code&gt; for each posting. For global companies, that list often includes every office in the region. A job in Singapore or Hong Kong would list Seoul as one of many offices, and my filter happily counted it as a Korean job. I found real cases at Roblox and Binance.&lt;/p&gt;

&lt;p&gt;The fix was to trust the location shown on the posting itself, and to use the office list only when that location is empty. I also excluded two false friends that a naive "Korea" match catches: Koreatown and North Korea. After the fix, the count matched what the discovery script had found, plus one posting that went up that day.&lt;/p&gt;

&lt;p&gt;Nothing crashed, and every row looked fine on its own. It was only wrong in aggregate, which is the most dangerous kind of wrong for a dataset.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the data shows
&lt;/h2&gt;

&lt;p&gt;The first public run, on November 9:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;715 postings located in Korea, at 28 companies&lt;/li&gt;
&lt;li&gt;27.6 seconds, 31 API requests, no warnings&lt;/li&gt;
&lt;li&gt;Platform cost: $0.0044, with a peak of 133 MB of memory (so I set the default to 256 MB)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Coupang dominates, with 350 of the 715 postings. The rest are spread across Korean companies like 42dot, Krafton, FuriosaAI and Daangn, and global companies with teams in Korea like Databricks, Anthropic and Datadog. Seoul has 585 postings and Pangyo 81. The other 49 don't name a city.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fykbu2x6uk6emouh8q7ku.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fykbu2x6uk6emouh8q7ku.png" alt="Horizontal bar chart of the 715 postings grouped by job title keywords on November 9, 2026: software engineering 231, product or program 91, AI or ML 74, sales or business 54, data 35, design 19. A posting can match more than one group." width="800" height="353"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Postings grouped by keywords in the job title, November 9, 2026&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A few things surprised me:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Half the postings have Korean titles: 357 of 715. If you search only in English, you miss about half of them.&lt;/li&gt;
&lt;li&gt;Only 1 of the 715 postings has a salary in the official salary field.&lt;/li&gt;
&lt;li&gt;77 postings were new in the last 7 days. Coupang added 46 and Krafton 11.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every row links to the original posting, so you apply on the company's own page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it stands
&lt;/h2&gt;

&lt;p&gt;The Actor is live and free: &lt;a href="https://apify.com/seoulsmith/korea-tech-jobs" rel="noopener noreferrer"&gt;Korea Tech Jobs in English&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Honest numbers: revenue $0. The Store shows a couple of runs from other accounts, but Apify runs automated daily tests on every public Actor, and the timing matches those tests, so I count real external users as zero for now.&lt;/p&gt;

&lt;p&gt;That's why the distribution plan matters more than the code this time. The Actor runs every Monday morning and saves a weekly snapshot, and every Tuesday I'll post one number from it on X. Once a month I'll write a short report here.&lt;/p&gt;

&lt;p&gt;If you're hiring in Korea, or looking for a job here and can't read every Korean posting: what would you want from this data first? Salary is clearly missing. What else? You can find me on X at @seoulsmith_dev.&lt;/p&gt;

</description>
      <category>apify</category>
      <category>webscraping</category>
      <category>sideprojects</category>
      <category>opendata</category>
    </item>
    <item>
      <title>I built a Korean real-estate data tool in 2 days. Then I found 7 others just like it.</title>
      <dc:creator>seoulsmith</dc:creator>
      <pubDate>Sun, 08 Nov 2026 05:50:18 +0000</pubDate>
      <link>https://dev.to/seoulsmith/i-built-a-korean-real-estate-data-tool-in-2-days-then-i-found-7-others-just-like-it-4kei</link>
      <guid>https://dev.to/seoulsmith/i-built-a-korean-real-estate-data-tool-in-2-days-then-i-found-7-others-just-like-it-4kei</guid>
      <description>&lt;p&gt;&lt;em&gt;Cover: From the Actor's output, queried on November 7, 2026. The latest month always looks nearly empty because sales can be reported up to 30 days after the contract.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I'm a software engineer in Seoul. I have a day job, and I wanted a side project that could make a little money while I sleep. Not a course, not a newsletter about making money. A small tool that does one useful thing.&lt;/p&gt;

&lt;p&gt;What changed for me this year is AI coding agents. For the first time, shipping a small product alone, in the evenings, without a team, felt realistic. I wanted to find out if that was actually true.&lt;/p&gt;

&lt;p&gt;Two days later I had a public Apify Actor that returns official Korean apartment sale and rent prices in English. Along the way, my plan changed three times. This post is about those three changes, because they taught me more than the code did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the demand actually is
&lt;/h2&gt;

&lt;p&gt;Apify Store lets developers publish scrapers and data tools ("Actors") and get paid per result. My first assumption was simple: I can read Korean and most Apify developers can't, so Korean websites should be an easy niche.&lt;/p&gt;

&lt;p&gt;I queried the Store's public API for Korean sites. The assumption was wrong. There were already more than 200 Actors for Korean sites. Demand was heavily concentrated: shopping data alone had thousands of monthly users, while most other Korean sites had Actors with single-digit monthly users. Some popular Korean services had no Actors at all, but they also had no visible demand.&lt;/p&gt;

&lt;p&gt;Lesson one: an empty category is not an opportunity. Usually it's empty because nobody needs it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The idea I dropped
&lt;/h2&gt;

&lt;p&gt;The easiest thing to build was a wrapper around a Korean search-trends API. It was clean, official, and had a few paying users on similar Actors.&lt;/p&gt;

&lt;p&gt;Then I read the API's terms. Reselling results from an API key issued to you is the kind of thing these terms are written to prevent. Plenty of people seem to do it anyway. But I have a day job, and a legal dispute would cost me far more than the side project could ever earn. So I set myself a rule: legal risk doesn't have to be zero, but it has to be something I'd be comfortable explaining to my employer.&lt;/p&gt;

&lt;p&gt;That rule killed my best idea and pushed me toward public data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choosing public data
&lt;/h2&gt;

&lt;p&gt;Korea publishes a lot of government data through its Public Data Portal (data.go.kr), and Korean law explicitly allows commercial reuse of public data as long as third-party rights aren't involved. The apartment transaction dataset from the Ministry of Land, Infrastructure and Transport (MOLIT) is one of them: every reported apartment sale and rental contract, updated continuously, with no usage restriction beyond attribution.&lt;/p&gt;

&lt;p&gt;The catch for foreign users is access. You need a Korean-language portal account and an application per dataset. That friction looked like a product: run the official API on my side and give people clean English output.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building it
&lt;/h2&gt;

&lt;p&gt;I built the Actor with Claude Code running in the cloud. I wrote a design doc first (inputs, output fields, pricing), then handed it over with explicit checkpoints.&lt;/p&gt;

&lt;p&gt;The biggest unknown wasn't the code. It was whether a Korean government API would answer requests from servers outside Korea, because Apify runs abroad. I honestly expected it to fail. Some Korean sites block traffic from abroad, and if this API did, the whole plan was dead before any real code existed. So one of the first things I asked Claude Code to do was not to build anything, but to make one real request and save the raw response. Claude Code's cloud sessions also run outside Korea, so that single call answered the question. It came back with real transactions, and the project suddenly felt real.&lt;/p&gt;

&lt;p&gt;Some numbers from the launch test:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Seoul's 25 districts, one month, sales and rentals: 18,111 records processed in 56 seconds&lt;/li&gt;
&lt;li&gt;53 calls to the government API&lt;/li&gt;
&lt;li&gt;Platform cost for that run: about $0.00014&lt;/li&gt;
&lt;li&gt;Peak memory: 180 MB (the default was 4 GB, which I lowered so users pay less)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjpoyahavubxlli2xytlk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjpoyahavubxlli2xytlk.png" alt="Table of four launch test runs on Apify. Gangnam-gu sales for Aug–Nov 2026: 319 records in 4.3 s. Seoul Jung-gu sales and rents for Oct–Nov 2026 with summaries: 33 sales, 220 rents and 4 summaries in 3.8 s. Gangnam-gu and Seoul Jung-gu sales and rents for Oct 2026: 1,547 records in 5.2 s. All 25 Seoul districts, sales and rents for Oct 2026, summaries only: 18,111 records processed into 50 summary rows in 56 s, using 180 of 256 MB. The 25-district run made 53 calls to the government API and cost about $0.00014." width="800" height="209"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;From the launch test runs on Apify&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The API key lives in Apify as a secret, and I had the logs searched for any trace of it before launch. Zero hits.&lt;/p&gt;

&lt;h2&gt;
  
  
  The plot twist
&lt;/h2&gt;

&lt;p&gt;Right before going public, I searched the Store one more time. There were at least seven other Actors built on the exact same government dataset. At least two of them also didn't require an API key, and one developer offered theirs completely free. My headline feature, "No API key needed," was not a feature anymore. It was table stakes.&lt;/p&gt;

&lt;p&gt;All of them had roughly one monthly user. So the niche wasn't crowded with customers. It was crowded with builders.&lt;/p&gt;

&lt;p&gt;I think this will become normal. When an AI coding agent can turn a public dataset into a working tool in an afternoon, "I built it" is no longer a moat for anything built on public data.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I changed
&lt;/h2&gt;

&lt;p&gt;Instead of pretending I was unique, I looked for what the others didn't do:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Search any Korean district by English name (&lt;code&gt;Gangnam-gu&lt;/code&gt;, &lt;code&gt;Seoul Jung-gu&lt;/code&gt;, &lt;code&gt;Bundang&lt;/code&gt;), not just numeric codes&lt;/li&gt;
&lt;li&gt;Sales and rentals in one run&lt;/li&gt;
&lt;li&gt;Optional monthly median rows, so you get a market summary instead of 18,000 raw rows&lt;/li&gt;
&lt;li&gt;Romanized place and apartment names, with a small brand dictionary so 래미안 becomes "Raemian" instead of gibberish&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fglgfh24orhfg61469gqk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fglgfh24orhfg61469gqk.png" alt="One sale record in JSON from the default run: the Eunma (은마) apartment in Daechi-dong, Gangnam-gu, Seoul, 76.79 m² on the 8th floor, built in 1979, sold for 3,450,000,000 KRW on August 1, 2026, with romanized names next to the Korean originals." width="800" height="547"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;From the default test run: one sale record, with romanized names next to the Korean originals&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I also postponed charging. My planned price would have made it one of the more expensive options in a market where one competitor is free.&lt;/p&gt;

&lt;p&gt;It's live here: &lt;a href="https://apify.com/seoulsmith/korea-apartment-transactions" rel="noopener noreferrer"&gt;Korea Apartment Prices in English&lt;/a&gt;. Current revenue: $0. Current users: about one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lessons
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Check demand before picking a niche. Look at monthly users, not the number of tools.&lt;/li&gt;
&lt;li&gt;Read the terms before you write code. The easiest idea can be the riskiest one.&lt;/li&gt;
&lt;li&gt;Public data is safe and fast to build on, and that's exactly why it gets crowded.&lt;/li&gt;
&lt;li&gt;Distribution is the moat. A Store listing alone won't find users.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That last point is why this blog exists. Next month I'll use the Actor to publish a short "Seoul apartment prices this month" report in English, and I'm starting on a second tool.&lt;/p&gt;

&lt;p&gt;Have you shipped into a niche that turned out to be crowded with builders instead of customers? I'd genuinely like to know what you did next. You can find me on X at @seoulsmith_dev.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://seoulsmith.com/blog/first-apify-actor-korea-apartment-prices/" rel="noopener noreferrer"&gt;seoulsmith.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>apify</category>
      <category>webscraping</category>
      <category>sideprojects</category>
      <category>opendata</category>
    </item>
  </channel>
</rss>
