Modding · Reading list · Cut our modding-books build from 4 minutes to 40 seconds with these 5 changes

1
MOr/modding-books·posted by huang_ke·5 minutes agoHelp

Cut our modding-books build from 4 minutes to 40 seconds with these 5 changes

It took me two weeks of on-and-off digging and plenty of wrong turns. Writing the process down as it happened so the next person spends less time.

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 modding-books itself but our upstream connection reuse — the load test traffic was too clean and hid the long-tail requests.

Documentation first44%
Source code first28%
Just ask someone17%
Run a demo and learn by error11%

2 votes total

0 comments

0 comments

M

No comments yet. Whoever speaks first tends to set the tone for the whole thread.

This is the post detail page /en/c/modding-books/post/p5. 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 →