Smol fixes API bottlenecks from polling and chunked uploads

forge.smol.ai12 min read

An analysis of performance issues in an AI-coded application revealed that 55.5% of production API traffic originated from idle background polling timers and that file uploads were unnecessarily routed through the application server. The team resolved these issues by implementing direct-to-R2 uploads, restricting polling to active job states, and optimizing database queries and root bundles across web and native clients. Open article →