Vue Community · The edge cases the Vue docs never spell out

27
Vr/vue·posted by zhou_yi·32 minutes agoHelp

The edge cases the Vue docs never spell out

Short version: Vue needs almost no tuning at small and medium scale — the point where it starts to hurt is much further out than most people assume. Full measurements below.

The first thing was to collapse the variables. We were changing config and upgrading the version at the same time, and afterwards nobody could say which change caused what. We rolled back to moving one variable at a time, re-ran three times, and only then did the curve settle. Tedious, but not skippable.

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

4 comments

M
Cchen_dev·12 minutes ago

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

335
Sslow_query·just now

This is not a Vue problem, it is a usage problem. The docs say this API is not thread-safe and you must lock around it yourself.

104
Rran_bo·just now

There is actually a simpler fix that needs no architecture change: move this check up to the gateway and the problem disappears. The cost is one extra lookup at the gateway.

99
Rrase·just now

Thanks for sharing real numbers — far more useful than the articles that only cover concepts.

17

This is the post detail page /en/c/vue/post/p7. 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 →