Consider a scenario where a servlet application needs to update client-side widgets in real-time. Which technology would be more efficient: AJAX polling or WebSockets?

  • AJAX polling
  • Both are equally efficient.
  • It depends on the specific use case requirements.
  • WebSockets
WebSockets would be more efficient in real-time updates as they allow for bidirectional communication and eliminate the need for continuous polling, reducing latency and server load.
Add your answer
Loading...

Leave a comment

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