When should you consider using HTTP long-polling in designing RESTful APIs?

  • A. When real-time updates are required
  • B. For caching static content
  • C. To minimize latency in request-response cycles
  • D. When working with large file uploads
A. HTTP long-polling is suitable when you need real-time updates from the server. It involves keeping a connection open until new data is available, making it suitable for applications like chat or notifications. Options B, C, and D are not appropriate use cases for long-polling.
Add your answer
Loading...

Leave a comment

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