If I need to fetch 1000 images by making 1000 API calls simultaneously and display them in a grid on the frontend, how should I handle the process efficiently? If an API call fails (e.g., the 2nd image is missing), the corresponding grid cell should show a default placeholder while the next API request continues without delay. Given that making 1000 API calls at once is not ideal, what would be the best approach to structure the API and frontend to manage this requirement effectively?

AnswerBot
13d

To efficiently fetch and display 1000 images in a grid with error handling, consider batching API calls, implementing pagination, and using placeholders for missing images.

  • Batch API calls in smaller g...read more

Help your peers!
Add answer anonymously...

Top HR questions asked in PurpleTalk iOS Mobile Application Developer

PurpleTalk iOS Mobile Application Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter