You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Scott Matheson <sc...@matheson.it> on 2014/12/10 13:10:38 UTC

Flex Sync solutions

Hi
   I am looking for a solution where the user data is held client tide, (may
be server objects) and sync to the server when the network is available, are
there andy solutions out there in the flex world



RE: Flex Sync solutions

Posted by Frédéric THOMAS <we...@hotmail.com>.
Hi,
There are many options, the one that come to my mind right now are :
- For few data, less than 100k, you can use SharedObject [1]- Bytearray (with its limitations but straightforward to implement)- Sqlite [2]- Custom de/serialization you would have to implement, we built one which store remote data in json / xml format.
and sync yourself with the remote or use frameworks like Clear Tool Kit [3] which embed a complete solution if you don't have an expensive LifeCycle license but still use BlazeDS, Spring and Hibernate, I don't know if the same exists with PHP.

HTH
Frédéric THOMAS
[1] http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/SharedObject.html[2] http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118676a5497-7fb4.html[3] http://www.cleartoolkit.com/dokuwiki/doku.php

> Date: Wed, 10 Dec 2014 12:10:38 +0000
> Subject: Flex Sync solutions
> From: scott@matheson.it
> To: users@flex.apache.org
> 
> Hi
>    I am looking for a solution where the user data is held client tide, (may
> be server objects) and sync to the server when the network is available, are
> there andy solutions out there in the flex world
> 
> 
 		 	   		  

Re: Flex Sync solutions

Posted by "Seth." <po...@gmail.com>.
You can do many tricks here

1 use flash cookie (shared object)
2. Embed a text file into the flex using embed tag then you will be able to
read/write data to that. Am not sure if that cached data persists after
reopen the browser.

I hope both of your method can save your data and you will be able to sync
whenever app will open.

You my vote to the SO as that could save 100 k easily and available in most
of the browsers which support flash ( I am using it to save image upto 1mb
in one of my app )

Flush the SO as soon server respond sucess so you need not to care a lot
for syncing if I got time today I will send you a demo code as well

Regards
Seth



On Wednesday, December 10, 2014, Scott Matheson <sm...@intralinks.com>
wrote:

> Hi
>   We use json data sent (100K) -> nodeJs ‹> to a mongoDB
>
> So what technology to we use to store the flex or json object , we can not
> get access to the PC for local storage , we need to store in the browser
> of Flash until the network is available, in the mean time the user could
> kill the borrower so we need to hod data until next time the browser  app
> is started
>
> Do you have any example code you could share ?
>
>
> On 12/10/14, 1:15 PM, "Seth." <post2seth@gmail.com <javascript:;>> wrote:
>
> >As per my understanding, you just require single side syncing from client
> >-> server and data seems very small in your case you can use webORB which
> >supports multiple platform, OR with node JS just use " json data ", that
> >will be good as both the language can parse that easily and faster. use
> >timer for time based syncing, but as per my opinion, the ready solution
> >will be quite headache for such type of syncing as i used this approach in
> >various elearning projects for ebook syncing.
> >
> >- Seth
> >
> >
> >On Wed, Dec 10, 2014 at 6:34 PM, Scott Matheson <smatheson@intralinks.com
> <javascript:;>>
> >wrote:
> >
> >> Hi
> >>    Server side is nodeJS, but we could change
> >>
> >> Our challenge is student compete work, the networks stop working so they
> >> can not make progress,
> >>
> >>
> >> On 12/10/14, 12:32 PM, "Seth." <post2seth@gmail.com <javascript:;>>
> wrote:
> >>
> >> >Not exactly, but yes there are solutions depend upon the servers which
> >> >could offer you such functionality, by the way which server side
> >>language
> >> >you are using?? and which client side DB you are using( if any )
> >> >
> >> >Regards
> >> >Seth
> >> >
> >> >On Wed, Dec 10, 2014 at 5:40 PM, Scott Matheson <scott@matheson.it
> <javascript:;>>
> >> wrote:
> >> >
> >> >> Hi
> >> >>    I am looking for a solution where the user data is held client
> >>tide,
> >> >> (may
> >> >> be server objects) and sync to the server when the network is
> >>available,
> >> >> are
> >> >> there andy solutions out there in the flex world
> >> >>
> >> >>
> >> >>
> >>
> >>
> >> ________________________________
> >>
> >> Disclaimer: This electronic mail and any attachments are confidential
> >>and
> >> may be privileged. If you are not the intended recipient, please notify
> >>the
> >> sender immediately by replying to this email, and destroy all copies of
> >> this email and any attachments. Thank you.
> >>
>
>
> ________________________________
>
> Disclaimer: This electronic mail and any attachments are confidential and
> may be privileged. If you are not the intended recipient, please notify the
> sender immediately by replying to this email, and destroy all copies of
> this email and any attachments. Thank you.
>


-- 
Sent from Gmail iPhone App

Re: Flex Sync solutions

Posted by Scott Matheson <sm...@intralinks.com>.
Hi
  We use json data sent (100K) -> nodeJs ‹> to a mongoDB

So what technology to we use to store the flex or json object , we can not
get access to the PC for local storage , we need to store in the browser
of Flash until the network is available, in the mean time the user could
kill the borrower so we need to hod data until next time the browser  app
is started

Do you have any example code you could share ?


On 12/10/14, 1:15 PM, "Seth." <po...@gmail.com> wrote:

>As per my understanding, you just require single side syncing from client
>-> server and data seems very small in your case you can use webORB which
>supports multiple platform, OR with node JS just use " json data ", that
>will be good as both the language can parse that easily and faster. use
>timer for time based syncing, but as per my opinion, the ready solution
>will be quite headache for such type of syncing as i used this approach in
>various elearning projects for ebook syncing.
>
>- Seth
>
>
>On Wed, Dec 10, 2014 at 6:34 PM, Scott Matheson <sm...@intralinks.com>
>wrote:
>
>> Hi
>>    Server side is nodeJS, but we could change
>>
>> Our challenge is student compete work, the networks stop working so they
>> can not make progress,
>>
>>
>> On 12/10/14, 12:32 PM, "Seth." <po...@gmail.com> wrote:
>>
>> >Not exactly, but yes there are solutions depend upon the servers which
>> >could offer you such functionality, by the way which server side
>>language
>> >you are using?? and which client side DB you are using( if any )
>> >
>> >Regards
>> >Seth
>> >
>> >On Wed, Dec 10, 2014 at 5:40 PM, Scott Matheson <sc...@matheson.it>
>> wrote:
>> >
>> >> Hi
>> >>    I am looking for a solution where the user data is held client
>>tide,
>> >> (may
>> >> be server objects) and sync to the server when the network is
>>available,
>> >> are
>> >> there andy solutions out there in the flex world
>> >>
>> >>
>> >>
>>
>>
>> ________________________________
>>
>> Disclaimer: This electronic mail and any attachments are confidential
>>and
>> may be privileged. If you are not the intended recipient, please notify
>>the
>> sender immediately by replying to this email, and destroy all copies of
>> this email and any attachments. Thank you.
>>


________________________________

Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.

Re: Flex Sync solutions

Posted by Scott Matheson <sm...@intralinks.com>.
If I am reading wobORB docs correctly, in my code I save the object,
webORB stores the object locally, then some sort of sync occur when the
server come on line, I trigger the sync with a timer ?



On 12/10/14, 1:15 PM, "Seth." <po...@gmail.com> wrote:

>As per my understanding, you just require single side syncing from client
>-> server and data seems very small in your case you can use webORB which
>supports multiple platform, OR with node JS just use " json data ", that
>will be good as both the language can parse that easily and faster. use
>timer for time based syncing, but as per my opinion, the ready solution
>will be quite headache for such type of syncing as i used this approach in
>various elearning projects for ebook syncing.
>
>- Seth
>
>
>On Wed, Dec 10, 2014 at 6:34 PM, Scott Matheson <sm...@intralinks.com>
>wrote:
>
>> Hi
>>    Server side is nodeJS, but we could change
>>
>> Our challenge is student compete work, the networks stop working so they
>> can not make progress,
>>
>>
>> On 12/10/14, 12:32 PM, "Seth." <po...@gmail.com> wrote:
>>
>> >Not exactly, but yes there are solutions depend upon the servers which
>> >could offer you such functionality, by the way which server side
>>language
>> >you are using?? and which client side DB you are using( if any )
>> >
>> >Regards
>> >Seth
>> >
>> >On Wed, Dec 10, 2014 at 5:40 PM, Scott Matheson <sc...@matheson.it>
>> wrote:
>> >
>> >> Hi
>> >>    I am looking for a solution where the user data is held client
>>tide,
>> >> (may
>> >> be server objects) and sync to the server when the network is
>>available,
>> >> are
>> >> there andy solutions out there in the flex world
>> >>
>> >>
>> >>
>>
>>
>> ________________________________
>>
>> Disclaimer: This electronic mail and any attachments are confidential
>>and
>> may be privileged. If you are not the intended recipient, please notify
>>the
>> sender immediately by replying to this email, and destroy all copies of
>> this email and any attachments. Thank you.
>>


________________________________

Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.

Re: Flex Sync solutions

Posted by "Seth." <po...@gmail.com>.
As per my understanding, you just require single side syncing from client
-> server and data seems very small in your case you can use webORB which
supports multiple platform, OR with node JS just use " json data ", that
will be good as both the language can parse that easily and faster. use
timer for time based syncing, but as per my opinion, the ready solution
will be quite headache for such type of syncing as i used this approach in
various elearning projects for ebook syncing.

- Seth


On Wed, Dec 10, 2014 at 6:34 PM, Scott Matheson <sm...@intralinks.com>
wrote:

> Hi
>    Server side is nodeJS, but we could change
>
> Our challenge is student compete work, the networks stop working so they
> can not make progress,
>
>
> On 12/10/14, 12:32 PM, "Seth." <po...@gmail.com> wrote:
>
> >Not exactly, but yes there are solutions depend upon the servers which
> >could offer you such functionality, by the way which server side language
> >you are using?? and which client side DB you are using( if any )
> >
> >Regards
> >Seth
> >
> >On Wed, Dec 10, 2014 at 5:40 PM, Scott Matheson <sc...@matheson.it>
> wrote:
> >
> >> Hi
> >>    I am looking for a solution where the user data is held client tide,
> >> (may
> >> be server objects) and sync to the server when the network is available,
> >> are
> >> there andy solutions out there in the flex world
> >>
> >>
> >>
>
>
> ________________________________
>
> Disclaimer: This electronic mail and any attachments are confidential and
> may be privileged. If you are not the intended recipient, please notify the
> sender immediately by replying to this email, and destroy all copies of
> this email and any attachments. Thank you.
>

Re: Flex Sync solutions

Posted by Scott Matheson <sm...@intralinks.com>.
Hi
   Server side is nodeJS, but we could change

Our challenge is student compete work, the networks stop working so they
can not make progress,


On 12/10/14, 12:32 PM, "Seth." <po...@gmail.com> wrote:

>Not exactly, but yes there are solutions depend upon the servers which
>could offer you such functionality, by the way which server side language
>you are using?? and which client side DB you are using( if any )
>
>Regards
>Seth
>
>On Wed, Dec 10, 2014 at 5:40 PM, Scott Matheson <sc...@matheson.it> wrote:
>
>> Hi
>>    I am looking for a solution where the user data is held client tide,
>> (may
>> be server objects) and sync to the server when the network is available,
>> are
>> there andy solutions out there in the flex world
>>
>>
>>


________________________________

Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.

Re: Flex Sync solutions

Posted by "Seth." <po...@gmail.com>.
Not exactly, but yes there are solutions depend upon the servers which
could offer you such functionality, by the way which server side language
you are using?? and which client side DB you are using( if any )

Regards
Seth

On Wed, Dec 10, 2014 at 5:40 PM, Scott Matheson <sc...@matheson.it> wrote:

> Hi
>    I am looking for a solution where the user data is held client tide,
> (may
> be server objects) and sync to the server when the network is available,
> are
> there andy solutions out there in the flex world
>
>
>