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.
Loading...
Related Quiz
- What is the main difference between 'write-through' and 'write-back' caching strategies?
- To group multiple SQL commands and execute them as a single transaction, use the __________ feature in JDBC.
- In database optimization, _________ refers to the process of storing frequently accessed data in a temporary storage area.
- How can a servlet implement role-based access control?
- What is the basic difference between horizontal scaling and vertical scaling?