Hello,
Given I have an object which is generated from big computing. I want to
transfer this object over the network to another ruby app. How can I
implement this?
Thanks
Hello,
Given I have an object which is generated from big computing. I want to
transfer this object over the network to another ruby app. How can I
implement this?
Thanks
You'll wanna be looking at object serialization/de-serialization, there
are different options depending on what you need. But a quick
and easy method is:
serialized_object = JSON.generate(obj)
#send string over network
obj = JSON.parse(received_obj).
More advanced/featured techniques might include using the Marshall module
or another serialization technique
Jeremy
On 3/7/22 00:20, Bitfox wrote:
Hello,
Given I have an object which is generated from big computing. I want to transfer this object over the network to another ruby app. How can I implement this?
Thanks
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Hello! Look at this module module DRb - RDoc Documentation .
I used it at the time of ruby 1.8.7 and it worked well.
07.03.2022 09:20, Bitfox пишет:
Hello,
Given I have an object which is generated from big computing. I want to transfer this object over the network to another ruby app. How can I implement this?
Thanks
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>