problem receiving big map through aleph.object

15 views
Skip to first unread message

Matthew Chadwick

unread,
May 8, 2013, 10:07:50 PM5/8/13
to alep...@googlegroups.com
I'm using aleph.object to transmit things. I have a client and server exactly the same as the example code, but with another channel into which I siphon the channel from the client. I can send objects (Clojure data structures and Java objects like joda datetimes) just fine. But, the data structure I want to transmit, a huge clojure.lang.PersistentHashMap of clojure.lang.PersistentHashMaps, is not received at the server. It's ok if I (apply enqueue ch (seq huge-map)), but not if I (enqueue ch huge-map).

Zach Tellman

unread,
May 8, 2013, 11:54:36 PM5/8/13
to alep...@googlegroups.com
Hey Matthew,

I've never used aleph.object to transmit more than trivial data structures; while Java serialization is supposed to work on arbitrary data structures, I'm not sure how true that is in practice.  Since this is just a very thin shim over Java serialization, the sad fact is that it either works or it doesn't.  You might look at using a different communication protocol.

Zach


On Wed, May 8, 2013 at 7:07 PM, Matthew Chadwick <math...@gmail.com> wrote:
I'm using aleph.object to transmit things. I have a client and server exactly the same as the example code, but with another channel into which I siphon the channel from the client. I can send objects (Clojure data structures and Java objects like joda datetimes) just fine. But, the data structure I want to transmit, a huge clojure.lang.PersistentHashMap of clojure.lang.PersistentHashMaps, is not received at the server. It's ok if I (apply enqueue ch (seq huge-map)), but not if I (enqueue ch huge-map).

--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages