If two API requests come in to sync at the same time, we shouldn't sync twice. This is made a bit easier because we serialize syncs on a lock. I'm thinking we do something like have a request queue, and new requests can be merged into pending ones if they're overlapping. This is probably a pretty minor optimization but may increase complexity a lot. Not 100% sure it's worth it (at least not yet)
If two API requests come in to sync at the same time, we shouldn't sync twice. This is made a bit easier because we serialize syncs on a lock.
I'm thinking we do something like have a request queue, and new requests can be merged into pending ones if they're overlapping.
This is probably a pretty minor optimization but may increase complexity a lot. Not 100% sure it's worth it (at least not yet)