titan-x / titan

Messaging server with mobile and browser support.
MIT License
2 stars 3 forks source link

Think of generic ACK protocol #77

Open soygul opened 8 years ago

soygul commented 8 years ago
msg.recv -> [1,2,3]
[1,2,3] <- msg.ack (ack each accepted message individually in an array batch?)

In the above scenario, client connects and first call is msg.recv which should get all pending messages in a single Msg.Response, which is an array of messages. But how shall we acknowledge them? Shall we ACK the ACK? Same goes for all messages essentially so we might think of a generic ACK system where messages ACKed back-and-forth based on importance. i.e. msg.recv ACK by server & ACK the ACK by client, as this initial call is very important.

soygul commented 8 years ago

Or something like MQTT? or Thrift w/ Go implementation?