Agent · Architecture · Built a visual debugging panel for agent-design over the weekend

1
AGr/agent-design·posted by tang_hao·2 hours agoInternals

Built a visual debugging panel for agent-design over the weekend

Some background first. Our setup is agent-design plus three downstream services, seven figures of daily requests, peaking around nine in the evening.

What genuinely surprised me was the tail. The average looked great while P99 jumped by an order of magnitude past some threshold. The cause was not agent-design itself but our upstream connection reuse — the load test traffic was too clean and hid the long-tail requests.

Image placeholder · object storage in production
POST /api/uploads → CDN origin pull
1 comments

1 comments

M
Hhuang_ke·just nowedited

Saved. I am reworking this area this week — this saves a lot of wrong turns.

145

This is the post detail page /en/c/agent-design/post/p6. Posts and comments are generated deterministically from a seeded PRNG, so the same post always renders the same content and the link can be shared, reloaded and indexed. In production this page reads MySQL for the post, Redis for hot-post caching, and fetches the whole comment tree in a single query on the path column.

See the database schema →