In an e-commerce application, you want to ensure that product details fetched from the server are not requested again for a certain period. Which technique would be effective for this scenario?

  • Caching
  • Lazy Loading
  • Polling
  • WebSockets
For this scenario, caching would be an effective technique. Caching involves storing fetched data locally for a certain period, so if the same data is requested again within that period, it can be retrieved from the cache instead of making a new request to the server, improving performance and reducing server load.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *