XRPLF / clio

An XRP Ledger API Server
https://xrpl.org
ISC License
55 stars 47 forks source link

More efficient forwarding cache #1473

Open kuznetsss opened 1 week ago

kuznetsss commented 1 week ago

Summary

If we are updating an entry in forwarding cache, all other similar requests could wait for the entry instead of doing more requests to rippled.

Motivation

Currently when an entry is outdated in forwarded cache all the requests are being forwarded to rippled. So cache is not working for the time we are waiting for response from rippled. Blocking other similar requests from being forwarded and wait for the cache entry to be ready will decrease load on rippled.

Thanks to @sophiax851 for this idea!