<div dir="ltr">Hi all,<div>I'd like to discuss the possibility of a SSE Receiver going out of sync with its Transmitter. There should be a way that the Receiver can request to re-synchronize (resync) its state with the Transmitter. Of course, not all Transmitters will be capable of such resyncs, so this should be an optional functionality. Even where a Transmitter is capable of resyncing, it may not be able to service all resync requests. The resync request may be limited to certain event types and to certain subjects.</div><div><br></div><div>To capture this requirement, I'd like to propose the following <b>optional</b> addition to the SSE Event Management API to achieve this. Please provide your feedback, or we can discuss in the next call:</div><div><br></div><div>---</div><div><br></div><div><b>Resync Request</b><br></div><div><div>A Receiver MAY request a Transmitter that it needs to get updates for a past time period, by calling the following API method:</div><div><br></div><div><font face="monospace">POST /sse/stream:resync</font><br clear="all"><div><div dir="ltr"><div dir="ltr"><br></div><div>This method has the following parameters:</div><div><ol><li style="margin-left:15px"><font face="monospace">from_time</font> - OPTIONAL the time from which the resync is requested. If this parameter is not specified, then the from_time is assumed to be from the time the Transmitter started the stream with the Receiver</li><li style="margin-left:15px"><font face="monospace">to_time</font> - OPTIONAL the time until which the resync is requested. If this parameter is not specified, then the to_time is assumed to be the time at which the request was received</li><li style="margin-left:15px"><font face="monospace">events_requested</font> - OPTIONAL the list of events that are requested to be resynced. If this parameter is missing, then the request is assumed to be for all supported events</li><li style="margin-left:15px"><font face="monospace">subject</font> - OPTIONAL the subject for which the events are requested to be resynced. If this parameter is missing, then the request is assumed to be for all subjects</li></ol><div>A Transmitter MAY provide updates to the Receiver with the assumption that the Receiver has not processed any previously sent events during this time period for the specified event types and for the specified subject.</div></div><div><br></div><div>---</div></div></div></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span><br><div dir="ltr" style="margin-left:0pt" align="left"><table style="border:none;border-collapse:collapse"><colgroup><col width="142"><col width="186"></colgroup><tbody><tr style="height:104.25pt"><td style="vertical-align:top;overflow:hidden"><br><span style="border:none;display:inline-block;overflow:hidden;width:113px;height:113px"><img src="https://lh6.googleusercontent.com/fmoDQ26Qu6nUCxkO3-_idifYd4drGNvt7Ab_LQBqsdPH7EwOjHOqIJRzGXtqFHoor0bKiVZNFnj86FL59uqJJ1_-mSVOlfdsnlvDYTpq0wfcQFDXJr7miiOpLOie6c-pxXWWqpFqRg" width="113" height="113" style="margin-left:0px;margin-top:0px"></span></td><td style="vertical-align:top;overflow:hidden"><p dir="ltr" style="line-height:1.9872;margin-top:0pt;margin-bottom:0pt"> </p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:"Google Sans",sans-serif;background-color:transparent;font-weight:700;vertical-align:baseline;white-space:pre-wrap">Atul Tulshibagwale</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:"Google Sans",sans-serif;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Software Engineer,</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:"Google Sans",sans-serif;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Google Workspace</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:"Google Sans",sans-serif;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><a href="mailto:atultulshi@google.com" target="_blank">atultulshi@google.com</a></span></p></td></tr></tbody></table></div></span></div></div></div></div></div>