da Flashcards
1
Q
Short polling?
A
- involves the client requesting data from the server via AJAX every few seconds.
- you create a JS timer that automatically makes AJAX calls to the server within a specific timeframe
2
Q
Long polling?
A
- the client sends an AJAX request to the server. If the server has no new data to send, it waits and keeps the connection open.
As soon as new data is available, the server sends it back to the client. Then once the client receives this data it creates its next AJAX request, starting the cycle anew
3
Q
WebSockets?
A
WebSockets are their own protocol, standardized in 2011 along with the WebSocket API for the web.
- A WebSocket opens up a connection between a client and a server, allowing for two-way, real-time communication between the two—not only in browsers but also in mobile applications.
- it doesn’t need to use the HTTP protocol (at least, once an initial HTTP request has been made)
4
Q
Server-Sent Events(SSE) ?
A
- allow the server to push data to the client over HTTP asynchronously. Rather than the client having to ask the server for new data continuously (client pulling), the server sends data whenever it has something new to deliver (server pushing).
- one sided from server to client
5
Q
Cloud Firestore?
A
- real-time NoSQL database that comes with Google Firebase- complete mobile and web application development platform
- NoSQL databases structure data into collections and documents