stabilize live api memory and add an options pipeline explainer #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "stabilize-live-api-memory"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
this pr stabilizes the live api after the vps memory blow-up and adds a proper explainer page for the options-print to smart-money pipeline.
what changed
docs/anatomy.html, a standalone reference page that explains how prints move from ingest to tape, flow packets, smart-money events, classifier hits, and alertsdocs/index.htmlso the new explainer is easy to findwhy this changed
the immediate problem was that the live api could retain huge hot caches and churn redis hard enough to get oom-killed on the vps. the follow-on problem was that the options and smart-money pipeline still lived mostly in code and chat context, which made it harder to reason about what the system is actually doing when a print shows up on tape but never becomes a signal.
root cause
the api was trusting oversized live cache settings, serving large reconnect snapshots, and rewriting hot redis lists too aggressively. that combination amplified loopback traffic and memory growth inside the box. separately, the event pipeline had a documentation gap even though the implementation already had a clear staged model.
validation
bun test services/api/tests/live.test.tsbun --cwd=apps/web run buildnode scripts/generate-docs-index.mjsintended effect for end users
end users should see a much more stable live product under load, especially during reconnects and busy tape conditions. the hosted app should stop falling over because of runaway live-cache behavior, and the team now has a durable reference page that makes the options-flow and smart-money pipeline much easier to understand and debug.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.