How to send Data Transfer Objects across the network?

  • Thread starter Bruno Desthuilliers
  • Start date
B

Bruno Desthuilliers

Daniel a écrit :
Hello,

I've been building a system that has need to send object data across
the network. The approach I've taken has been to build Data Transfer
Objects, which just contain the attributes of the objects, and to
pickle them and send them over a socket connection.

As I get deeper this is a bit problematic,

Just out of curiousity : what kind of problem ?
and so I was wondering if
there is a package or framework that is already designed to do this?

You may want to have a look at pyro.

My 2 cents...
 
D

Daniel

Hello,

I've been building a system that has need to send object data across
the network. The approach I've taken has been to build Data Transfer
Objects, which just contain the attributes of the objects, and to
pickle them and send them over a socket connection.

As I get deeper this is a bit problematic, and so I was wondering if
there is a package or framework that is already designed to do this?

Again, all I need to do is serialize an object, send it somewhere
where it is deserialized and processed after which a response object
is serialized and sent back to the client to complete the transaction.

Thanks in advance...

Daniel
 
L

Larry Bates

Daniel said:
Hello,

I've been building a system that has need to send object data across
the network. The approach I've taken has been to build Data Transfer
Objects, which just contain the attributes of the objects, and to
pickle them and send them over a socket connection.

As I get deeper this is a bit problematic, and so I was wondering if
there is a package or framework that is already designed to do this?

Again, all I need to do is serialize an object, send it somewhere
where it is deserialized and processed after which a response object
is serialized and sent back to the client to complete the transaction.

Thanks in advance...

Daniel


You might also want to take a look at Twisted's Perspective Broker:

http://twistedmatrix.com/projects/core/documentation/howto/pb-intro.html

-Larry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top