DEV Community

Discussion on: How to Achieve Auto Complete faster in Angular via API

Collapse
 
briancodes profile image
Brian

There's no way around calling your API first if the 3rd party API keys are secret. To speed things up you could:

  • cache your API responses server side e.g. redis
  • add caching client side with a service worker
  • use an Rxjs throttle and switchMap on the UI's requests
Collapse
 
jai555 profile image
Jayavignesh R

Thanks for the suggestion. I will give a try to implement this.