Replies: 1 comment
-
Tag: 9.3.0 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Target: Reduce the number of requests to the cache service.
How can it be achieved? Implement an additional service over the
AtomicServiceInterface
, which, after taking the lock, will fix the state of the wallet inside the transaction (until the lock is removed). Instead of accessing the cache, we will access the memory. After the completion of the atomic operation, the fork will be reset, and again they will go to the cache again.Then for such a code there will be only two or three (depending on the cache service) operations on the cache:
Now (version 9.2) makes about 6 requests for redis.
Total: 6 requests in cache.
Beta Was this translation helpful? Give feedback.
All reactions