Skip to content

Blog: Unblocking apps by fixing a performance bottleneck#3

Merged
max-tet merged 3 commits into
mainfrom
blog/unblocking-apps-performance-bottleneck
May 29, 2026
Merged

Blog: Unblocking apps by fixing a performance bottleneck#3
max-tet merged 3 commits into
mainfrom
blog/unblocking-apps-performance-bottleneck

Conversation

@ClaydeCode
Copy link
Copy Markdown

Adds a new blog post at docs/blog/posts/2026-05-29_unblocking_apps_performance_bottleneck/.

What

  • main.md — the post (author: max, draft: false, dated 2026-05-29).
  • cover.png — lead image.

Content

Walkthrough of a real shard_core fix: the /internal/auth forwardAuth hot path pulled two connections per request from a 4-connection psycopg pool. SPA first-paint bursts (Immich, Actual Budget, KitchenOwl) exhausted the pool, blocked, and hit the 45s browser timeout — apps that looked "slow" were actually broken. Fixed with in-process caching invalidated via the existing Blinker signal bus, taking the hot path to zero DB queries.

Includes a Mermaid request-flow diagram.

Notes

  • mkdocs build --strict passes; the new post renders with no warnings.
  • draft: false — publishes on merge. Flip to true if you want to hold it.

🤖 Generated with Claude Code

MagicMock/mock.effective_git_name/130407769905136 and others added 3 commits May 29, 2026 09:18
Story of diagnosing and fixing the shard_core auth hot path: a
4-connection psycopg pool exhausted by SPA request bursts, fixed with
signal-invalidated in-process caching for zero DB queries on the hot path.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@max-tet max-tet merged commit c69a5c6 into main May 29, 2026
4 checks passed
@max-tet max-tet deleted the blog/unblocking-apps-performance-bottleneck branch May 29, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants