<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 28, 2014 at 5:41 PM, Lucas Holmquist <span dir="ltr">&lt;<a href="mailto:lholmqui@redhat.com" target="_blank">lholmqui@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
On Jan 28, 2014, at 11:01 AM, Summers Pittman &lt;<a href="mailto:supittma@redhat.com">supittma@redhat.com</a>&gt; wrote:<br>
<br>
&gt; On 01/28/2014 10:58 AM, Lucas Holmquist wrote:<br>
&gt;&gt; On Jan 28, 2014, at 10:54 AM, Summers Pittman &lt;<a href="mailto:supittma@redhat.com">supittma@redhat.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; On 01/28/2014 10:48 AM, Lucas Holmquist wrote:<br>
&gt;&gt;&gt;&gt; On Jan 28, 2014, at 10:30 AM, Summers Pittman &lt;<a href="mailto:supittma@redhat.com">supittma@redhat.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; On 01/28/2014 09:36 AM, Lucas Holmquist wrote:<br>
&gt;&gt;&gt;&gt;&gt;&gt; yup, this is another Data Sync thread,<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; From a client side perspective, i have concerns that there is still not a clear direction yet.<br>
&gt;&gt;&gt;&gt;&gt;&gt; I know there are multiple ideas floating around on what our model should be,  i&#39;m all for choice, but what about deciding on 1 model to get started with.  Then later once we have this nailed down,  we can have other &quot;adapters&quot; with different models perhaps<br>

&gt;&gt;&gt;&gt;&gt; All the data model is is an envelope of sync metadata around an object<br>
&gt;&gt;&gt;&gt;&gt; right?<br>
&gt;&gt;&gt;&gt; right<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; We also need to think about the API and server/client protocol as well.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I think that for sync 1.0 we could focus on the following behavior (it<br>
&gt;&gt;&gt;&gt;&gt; worked for my demos at least)<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; 1.  We have a Sync factory similar to Pipeline, Authenticator,<br>
&gt;&gt;&gt;&gt;&gt; Registrar, and KeyService.<br>
&gt;&gt;&gt;&gt;&gt; 2.  The Sync factory consumes/manages Synchronizer instances.<br>
&gt;&gt;&gt;&gt;&gt; 3.  AG Synchronizer listens for sync messages using UnifiedPush endpoints.<br>
&gt;&gt;&gt;&gt; i thought for a 1.0 we weren&#39;t thinking about &quot;realtime&quot;<br>
&gt;&gt;&gt; When I hear realtime I think sub 100 ms updates to all clients. (think<br>
&gt;&gt;&gt; gaming)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; What I thought we were going for was something closer to email.  The<br>
&gt;&gt;&gt; data gets changed and at some point in the future the client knows. More<br>
&gt;&gt;&gt; specifically, the thing the ONE thing that makes sync special is it is a<br>
&gt;&gt;&gt; push instead of poll implementation.<br>
&gt;&gt; this makes sense,  but i guess it would be push when available. thinking web and crappy web socket support( dang you carriers )<br>
&gt; Right.  I&#39;m not saying lets do something complicated.  I&#39;m saying lets<br>
&gt; use GCM, iOS CM, and simple push to send notifications to tell the<br>
&gt; client something.  In simplePush case it is &quot;this data changed, get the<br>
&gt; new stuff and update yourself&quot;.  In Android and iOS case it may be that<br>
&gt; or it may be &quot;here is new data&quot;.<br>
&gt;<br>
&gt; In general, I am fine for getting a message saying something like<br>
&gt; Documents/Schedules/1/${revision}.  Then I can check my revisions, fetch<br>
&gt; data if necessary, update my local data, and send any updates.  That<br>
&gt; SHOULD (I think) be doable with simplepush as well right?<br>
<br>
<br>
</div></div>not sure how i feel about using &quot;push&quot;( APNS, GCM, SimplePush ) stuff for sync.<br>
<br>
then we are relying on these 3rd party services,<br></blockquote><div><br></div><div><br></div><div>+1</div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; 4.  AG Synchronizer sends sync messages using Pipes<br>
&gt;&gt;&gt;&gt;&gt; 5.  AG Synchronizer holds local data in a store<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; 6.  When AGSynchronizer gets a message it is responsible for updating<br>
&gt;&gt;&gt;&gt;&gt; the Store and then notifying code listing for updates OR for notifying<br>
&gt;&gt;&gt;&gt;&gt; the code that an error has occurred and needs to be addressed.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; 7.  When the developer updates data in the store, the synchronizer<br>
&gt;&gt;&gt;&gt;&gt; should package that data and send it to the server.  The synchronizer is<br>
&gt;&gt;&gt;&gt;&gt; responsible for error handling, retrying, back-off, etc.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; 8.  We should include multiple synchronizer implementations to deal with<br>
&gt;&gt;&gt;&gt;&gt; multiple very simple use cases which involve legacy systems. (For<br>
&gt;&gt;&gt;&gt;&gt; instance polling to load static data on a schedule.)<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Thoughts? Tomatoes?<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt;&gt;&gt; aerogear-dev mailing list<br>
&gt;&gt;&gt;&gt;&gt;&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt;&gt;&gt;&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt;&gt; aerogear-dev mailing list<br>
&gt;&gt;&gt;&gt;&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt;&gt;&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; aerogear-dev mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt;&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; aerogear-dev mailing list<br>
&gt;&gt;&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; aerogear-dev mailing list<br>
&gt;&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; aerogear-dev mailing list<br>
&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
<br>
<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div>