<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>performance on krtffl.dev</title>
    <link>https://krtffl.dev/categories/performance/</link>
    <description>Recent content in performance on krtffl.dev</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <copyright>© [krtffl](https://krtffl.dev)</copyright>
    <lastBuildDate>Mon, 29 Dec 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://krtffl.dev/categories/performance/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>i audited my side project like it was about to go viral (before it was)</title>
      <link>https://krtffl.dev/posts/audit-like-it-will-go-viral/</link>
      <pubDate>Mon, 29 Dec 2025 00:00:00 +0000</pubDate>
      
      <guid>https://krtffl.dev/posts/audit-like-it-will-go-viral/</guid>
      <description>&lt;p&gt;i ended the last post with a promise: a public stats page that ran three full-table scans on every request and fell over the first time i pointed real concurrency at it. this is that post — the last of three findings from the same pre-launch audit of a little pairwise-voting side project, a nougat-ranking toy where you pick between two flavours and a leaderboard falls out.&lt;/p&gt;
&lt;p&gt;the first two findings were bugs: &lt;a href=&#34;https://krtffl.dev/posts/elo-lost-update-postgres&#34;&gt;an elo race that ate 79% of every vote&lt;/a&gt;
, and &lt;a href=&#34;https://krtffl.dev/posts/x-forwarded-for-rate-limit-bypass&#34;&gt;a rate limiter a rotated header walked straight through&lt;/a&gt;
. this one is a bug too, but it&amp;rsquo;s really about the &lt;em&gt;method&lt;/em&gt; that surfaced it, because the method is the transferable part. the bug — a page doing linear work per request against a table that only grows — is one you&amp;rsquo;ve almost certainly got somewhere right now and can&amp;rsquo;t see, for the exact reason i couldn&amp;rsquo;t: on your dev box the table has forty rows and everything&amp;rsquo;s instant. the page isn&amp;rsquo;t slow. the page is a landmine with the pin still in, and the only way to find it before your users do is to go step on it yourself.&lt;/p&gt;
&lt;p&gt;so that&amp;rsquo;s the method. stand up a throwaway postgres, seed it with the amount of data you&amp;rsquo;d have &lt;em&gt;if the thing actually worked&lt;/em&gt; — if it went viral, if the launch landed — and then measure the hot paths under that load instead of guessing. the very first page i pointed it at turned out to be a denial-of-service i was hosting for free, on purpose, with a smile.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
