alchemistcoin / sandwiched-backend

GNU General Public License v3.0
25 stars 7 forks source link

Partial sandwich caches #39

Closed henridf closed 3 years ago

henridf commented 3 years ago

A common workflow will be for users to visit sandwiched.wtf multiple times. We can cache all their sandwiches along with the current block, and then only search for sandwiches in blocks that are newer than the last current block.

This could be done on the backend, or on the frontend. Backend has the benefit that all client leverage the same cache, which might be important in some workloads e.g. when someone shares a sandwiched.wtf url for a specific wallet and many people load it.