Skip to content

perf(erpc:PLA-691): burst coalescing and deterministic negative cache#34

Merged
0x666c6f merged 3 commits intomorpho-mainfrom
feature/pla-691-erpc-burst-coalescing-deterministic-negative-cache-for-read
Mar 4, 2026
Merged

perf(erpc:PLA-691): burst coalescing and deterministic negative cache#34
0x666c6f merged 3 commits intomorpho-mainfrom
feature/pla-691-erpc-burst-coalescing-deterministic-negative-cache-for-read

Conversation

@0x666c6f
Copy link
Copy Markdown
Collaborator

@0x666c6f 0x666c6f commented Mar 3, 2026

Summary

  • Reduce duplicate upstream reads during burst traffic.
  • Add deterministic short-lived negative caching for safe read-error classes.

Changes

  • add post-completion burst coalescing window (40ms) for eligible read methods
  • gate coalescing on method/finality/pending/nonce-sensitive rules
  • add deterministic negative cache (200ms TTL) keyed by method+finality+request hash
  • store only non-retryable deterministic errors; bypass pending/nonce-sensitive/stateful/directive paths
  • add metrics:
    • erpc_network_burst_coalesced_request_total
    • erpc_network_deterministic_negative_cache_set_total
    • erpc_network_deterministic_negative_cache_hit_total
  • add tests for burst coalescing and negative-cache behavior
  • update monitoring docs with new metrics and PromQL examples

Linear

@0x666c6f 0x666c6f self-assigned this Mar 3, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3815e3d408

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread erpc/networks.go
Comment thread erpc/networks.go
@0x666c6f 0x666c6f changed the base branch from feature/pla-690-erpc-adaptive-hedge-suppression-by-methodfinalitylatency to morpho-main March 4, 2026 16:49
@0x666c6f 0x666c6f merged commit 425cef6 into morpho-main Mar 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant