FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

relay: rewrites the whole event file on every stored EVENT · Issue #6 · JavaScriptSolidServer/plugins · GitHub

relay: rewrites the whole event file on every stored EVENT #6

Description

relay/ storeEvent calls persistAll() → fs.writeFileSync of the entire event array (up to maxEvents, default 1000) per incoming EVENT — blocking O(N) I/O on the event loop. Per-socket rate limiting (60/min) bounds a single client, but many sockets sustain it.

Fix direction: an append-only log (one line per event, like the JSONL the sweeper already tolerates) instead of a full-file rewrite. Accepted-risk in SECURITY.md.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance / resource-efficiency

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL