Does SKY API provide ability to get collection of constituent's profile pictures?

A constituent might have profile picture (or logo) and I found the only ability to get it -- it's request by constituent's id (Link). The problem is that I have to perform such request for every constituent separately and it leads me to the throttling problem (too many requests per second). 

Case steps:
  1. I need to display 20 constituents on the page, so I load them via appropriate API
  2. I need to display constituent's icons, so I have to do separated requests to get picture one by one (even if record has no image, response with constituents doesn't contain info about has record image or not, so the only way to get this info -- request).
  3. More than 10 requests per second --> server receives errors (too many requests)
Cache for this doesn't look like 'easy' decision, because:
  • As I understood changed profile picture doesn't affect on changed state of constituent, so I don't know when it happened (can't use Constituent list API)
  • TTL for links, that your system provides, is too short (1 hour)
So, questions are:
  1. Does SKY API provide ability to get collection of constituent's profile pictures?
  2. Any other approach to cope with this problem?
 

Categories