flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From OmPrakash Muppirala <bigosma...@gmail.com>
Subject Re: RemoteObject question
Date Thu, 21 Nov 2013 19:02:42 GMT
On Thu, Nov 21, 2013 at 10:36 AM, Jesse Ward-Karet <jwk@tanium.com> wrote:

> The problem you may run into is processing the response from your remote
> request. If the response is large or has complex data types, the native
> parsers/deserializers can be very slow.  While the response is being
> processed you might have a freeze, sometimes a very significant one.
>
> There are a lot of things you can do to work around it... get data in
> smaller chunks, write your own custom responders, or we have had some
> success using workers to process the results before returning the processed
> response to the main SWF.
>
> What you choose to do depends on your backend infrastructure and what
> communications/API frameworks you are using. In my experience, with less
> complex/smaller data sets I've had good luck avoiding workers and simply
> suppressing attempts to convert objects back to strong types and instead
> writing my own deserializers.
>
> Jesse
>
>
To add to what Jesse said, using AMF encoding for passing the data back and
forth from the server would make a huge difference over XML or JSON.  Using
AMF means that you don't have the overhead of serializing/de-serializing
the data in the front end.

Thanks,
Om


>
> On Nov 21, 2013, at 6:22 AM, Mark Line <markline@gmail.com> wrote:
>
> > Yes that is correct.
> >
> > Like a normal Flex event, you just set up listeners functions. The app
> > won't just stop executing while waiting for the resultEvent or
> faultEvent.
> >
> > It's up to you to manage the flow and control though
> >
> > -----Original Message-----
> > From: Mark Fuqua [mailto:mark@availdata.com]
> > Sent: 21 November 2013 14:12
> > To: users@flex.apache.org
> > Subject: RemoteObject question
> >
> > I have to do syncing between SQLite and remote database.  In my research,
> > there are mentions that asynchronous RemoteObject requests will not
> freeze
> > the UI.  Is that true?  FWIW, this is a mobile application.
> >
> >
> >
> > If this is true, it simplifies the process a bit.
> >
> >
> >
> > Actionscript workers seem a bit complicated for a NOOB and don't work for
> > IOS.  If RemoteObjects won't freeze my UI, I can stop worrying about
> > multi-threading or pseudo multi-threading, which I guess is actually what
> > Workers are.
> >
> >
> >
> > Mark Fuqua
> >
> >
> >
> > mark@availdata.com
> >
> >
> >
> > 2301 Mount Carmel Road
> >
> > Parkton,  MD  21120
> >
> > (410) 215-7356
> >
> >
> >
> > www.availdata.com
> >
> >
> >
> >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message