How to implement a server side push so that the client doesn't miss any pushs froms the server?

Two possible approaches: Have the client confirm each received alert and keep track of each client's status on the server. Slightly higher bandwidth requirements. Dumb client/smart server.

Much more complex server. Gives the server full control and supervision. Good for "real push" (realtime binary stream kinda thing), if that's what you have in place.

Timestamp or otherwise uniquely id each alert, have the client tell the server what the latest known timestamp was and have the server formulate an appropriate response to get the client up to date. RESTful approach. Dumb server/smart client.

Server doesn't necessarily know the status of each client. Easy to re-sync after connection dropout. Better suited for poll-type architecture.

The optimum is probably somewhere in between in a hybrid solution.

As far as I know you can't actually push to your web clients. Assuming you have a list (on the server) of the clients then every time you have a message to send, record the fact it needs reading against each client in a database. Write your client app with some JS to poll the server asking for unread messages.

Show unread messages and then write back an acknowledgement. For this you will need a database containing all clients, all messages and a matrix of message status to clients (read/acknowledged). Some kind of web service to a) get all unread messages for a given client and b) to acknowledge message(s) for a given client.

Ajax type stuff on the client side for the polling Dynamically change the HTML to show any messages you get back. Ajax type stuff to let the server know you've shown the message(s) and not to retrieve them again for that client.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions