Kagi Assistant's loading time was cut in half through strategic optimizations including embedding AJAX request data directly into markup, implementing streaming HTML responses, and increasing database connection pool size. The team eliminated unnecessary network round trips and reduced database connection overhead, resulting in significant performance improvements measured through detailed client and server-side profiling.

9m read timeFrom jacobwinters.com
Post cover image
Table of contents
One request is all you needInciting incidentA wild red herring chase appearsOptimizing TTFB for fun and profitWe need a bigger connection poolFinal resultsCaveats

Sort: