Comment by @nilesh • Hey
APIs are really fast now! Yesterday it was really slow, was this the issue?
Stats
Actions: 0
Comments: 0
Likes: 7
Mirrors: 0
Quotes: 0
Comments
Yeah we were invalidating paging caching using SCAN syntax, as caching for the followers for example was key per page, we then invalided these for everyone when a follow event happened. As this is the most used action SCAN was firing 45M times every 30 minutes or so. Scan is very expensive operation and slows everything down. Removing these operations as you see from speed now improved it 20x. It only got highlighted with a very heavily load as it’s been using SCAN for a while. With a small load API scan is great, but a very busy API it starts becoming the bottleneck.