<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 29, 2014 at 9:33 AM, Summers Pittman <span dir="ltr"><<a href="mailto:supittma@redhat.com" target="_blank">supittma@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
<div>On 01/29/2014 03:08 AM, Matthias
Wessendorf wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Jan 28, 2014 at 7:24 PM,
Douglas Campos <span dir="ltr"><<a href="mailto:qmx@qmx.me" target="_blank">qmx@qmx.me</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div>
<div>On Tue, Jan 28, 2014 at 10:30:47AM
-0500, Summers Pittman wrote:<br>
> On 01/28/2014 09:36 AM, Lucas Holmquist wrote:<br>
> > yup, this is another Data Sync thread,<br>
> ><br>
> > >From a client side perspective, i have
concerns that there is still not a clear direction
yet.<br>
> ><br>
> > I know there are multiple ideas floating
around on what our model should be, i'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 "adapters" with different
models perhaps<br>
> All the data model is is an envelope of sync
metadata around an object<br>
> right?<br>
><br>
> We also need to think about the API and
server/client protocol as well.<br>
><br>
> I think that for sync 1.0 we could focus on the
following behavior (it<br>
> worked for my demos at least)<br>
><br>
> 1. We have a Sync factory similar to Pipeline,
Authenticator,<br>
> Registrar, and KeyService.<br>
> 2. The Sync factory consumes/manages
Synchronizer instances.<br>
> 3. AG Synchronizer listens for sync messages
using UnifiedPush endpoints.<br>
> 4. AG Synchronizer sends sync messages using
Pipes<br>
> 5. AG Synchronizer holds local data in a store<br>
><br>
> 6. When AGSynchronizer gets a message it is
responsible for updating<br>
> the Store and then notifying code listing for
updates OR for notifying<br>
> the code that an error has occurred and needs to
be addressed.<br>
><br>
> 7. When the developer updates data in the store,
the synchronizer<br>
> should package that data and send it to the
server. The synchronizer is<br>
> responsible for error handling, retrying,
back-off, etc.<br>
><br>
> 8. We should include multiple synchronizer
implementations to deal with<br>
> multiple very simple use cases which involve
legacy systems. (For<br>
> instance polling to load static data on a
schedule.)<br>
<br>
</div>
</div>
The thing I have against all this is its curse and its
blessing at the<br>
same time. I prefer to ship small-ish tools that the
developer can use<br>
the way she wants instead of a full-blown-zomg-unicorns
full-stack<br>
solution.<br>
<br>
Even the pipeline API requires some level of buy-in, and I
really wish<br>
our DataSync API to be as decoupled as possible from the
other parts.<br>
</blockquote>
<div><br>
</div>
<div>I agree on the decoupling. That's pretty much what the
iOS lib does today: Only dependency is AFNetworking;</div>
<div>The JS bits are similar, nothing is weaved into the
existing APIs there as well</div>
<div><br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
This was my main concern when I was saying: "focus on the
datamodel<br>
first, then the update protocol, then...."<br>
</blockquote>
<div><br>
</div>
<div>I think we somewhat agreed already on a document based
model, now it looks like several POCs are build to
integrate w/ our sync-server bits</div>
</div>
</div>
</div>
</blockquote></div></div>
Just out of curiosity, what other models are there?</div></blockquote><div><br></div><div>some here, JPA integration:</div><div><a href="https://github.com/edewit/sync-server/blob/master/src/main/java/org/jboss/aerogear/poc/Car.java#L15">https://github.com/edewit/sync-server/blob/master/src/main/java/org/jboss/aerogear/poc/Car.java#L15</a><br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"> [Also I think it
will be better to say metadata + object model instead of document.
Document is 1) very generic and 2) has very different definitions
depending on what we are thinking]</div></blockquote><div><br></div><div>Agree on "metadata + object model"</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="im"><br>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div><br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
If we start with a fully integrated solution, it will be
awesome, if we<br>
have buy-in from the developer. And we all know that
things not<br>
necessarily go this way with OSS projects, hence my
kerfuffle against<br>
increasing sync's scope for 1.0.<br>
</blockquote>
<div><br>
</div>
<div><br>
</div>
<div>So, what will the scope be? And will there be a 1.0 ? <br>
</div>
</div>
</div>
</div>
</blockquote></div>
^^ This. One of the things we have been failing at doing (and
failing hard) is defining a scope for sync.</div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div><div class="h5"><br>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>I am not really sure that we will have a 1.0.0 in the
next few month.</div>
<div><br>
</div>
<div>-Matthias</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
What's the MVP for the sync to be a good foundation for
all the shiny<br>
bits? That's the question I want to have a good answer
for.<br>
<div><br>
><br>
> Thoughts? Tomatoes?<br>
> ><br>
> ><br>
> ><br>
> >
_______________________________________________<br>
> > aerogear-dev mailing list<br>
> > <a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">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>
><br>
> _______________________________________________<br>
> aerogear-dev mailing list<br>
> <a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">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>
<br>
</div>
<span><font color="#888888">--<br>
qmx<br>
</font></span>
<div>
<div>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">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>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
aerogear-dev mailing list
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></pre>
</blockquote>
<br>
</div></div></div>
<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></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>