Thanks Mark..

Is that  the only one that works right now?

On Jan 10, 6:52 am, Mark Murphy <[email protected]> wrote:
> ams163 wrote:
> > Hello,
>
> > We are working on an client / server application - and the design
> > goals for the communications framework are:
>
> > 1. Low bandwidth
> > 2. Low Latency
> > 3. Scalable
> > 4. Fast marshall/unmarshall
>
> > What sort of communications framework do you recommend?
>
> > We think json would do the trick, and we can use plain NIO socket
> > based communications for the least bandwidth - on the server side, we
> > can use something like Apache MINA or Netty.
>
> > Serialisation does not work properly on android <-> other system.
>
> > SOAP is just too heavy for communications, not to mention slow due to
> > the xml processing involved.
>
> > We've thought of using XStream as well, but we need a custom version
> > hacked by a forum member here (it works though).
>
> > So like I said, JSON is pure string based communications, and can also
> > be compressed for transfer.
>
> > The only issue we have is that something Google gson, which would have
> > been brilliant if it could be used on android to marshall/unmarshall
> > complex objects, doesn't work on android. Sure, we can use gson to
> > marshall/unmarshall on the server side, but we can't even begin to
> > think how we'd do that on android using the minimalistic builtin json
> > library for complex classes? Is there something available (Aside from
> > gson) that works on android, and that automatically marshalls/
> > unmarshalls json?  Let's say we have the following class:
>
> > class Foo {
> >    public int id;
> >    public ArrayList<Bar> bars  =  new ArrayList<Bar> ();
> > }
>
> > class Bar {
> >    public int x;
> >    public String name;
> >    public Set<String> references = new HashSet<String>(0);
> >    public ArrayList<Object> list = new ArrayList<Object> ();
> > }
>
> > The only other thing I can think of is plain socket/byte based
> > communications, and building the data structures painfully on the
> > client/server - just like in C.
>
> Apache Thrift works on Android, at least in terms of their data
> marshalling code.
>
> http://incubator.apache.org/thrift/
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Published!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to