# Shared memory between servers

**URL:** <https://www.ruby-forum.com/t/shared-memory-between-servers/99586>\
**Category:** Ruby\
**Created:** [July 24, 2006, 10:47am UTC](https://www.ruby-forum.com/t/shared-memory-between-servers/99586 "2006-07-24T10:47:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 24, 2006, 10:47am UTC](https://www.ruby-forum.com/t/shared-memory-between-servers/99586/1 "2006-07-24T10:47:36Z")

</div>

Hi all:

I was thinking about this question all weekend. It’s possible to have  
shared memory or objets or repository of objets between servers??

Imagine this: I want that all servers (several) have same data (an  
array for example). If one server change a value, this value change for  
all servers, if another server add item, this item is added for all  
servers.

This could be interesting for cluster app, etc.

Any idea?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 24, 2006, 11:09am UTC](https://www.ruby-forum.com/t/shared-memory-between-servers/99586/2 "2006-07-24T11:09:18Z")

</div>

On 24/07/06, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> This could be interesting for cluster app, etc.
> 
> Any idea?

Drb could fit the bill:  
[http://www.ruby-doc.org/stdlib/libdoc/drb/rdoc/index.html](http://www.ruby-doc.org/stdlib/libdoc/drb/rdoc/index.html)

It’s in in the standard lib.

Farrel

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 24, 2006, 12:00pm UTC](https://www.ruby-forum.com/t/shared-memory-between-servers/99586/3 "2006-07-24T12:00:18Z")

</div>

On 07/24/06/07/06 17:45 +0900, removed\_email\_address@domain.invalid wrote:

> This could be interesting for cluster app, etc.  
> check memcached [1], a cache shared over multiple servers; it can be  
> used  
> for what you want, but it may very well be an overkill. A ruby binding  
> available at [2].

-eyal

[1] [memcached - a distributed memory object caching system](http://www.danga.com/memcached/)  
[2] [dev(E)iate](http://www.deveiate.org/projects/RMemCache/)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 24, 2006, 4:34pm UTC](https://www.ruby-forum.com/t/shared-memory-between-servers/99586/4 "2006-07-24T16:34:56Z")

</div>

On Mon, 24 Jul 2006, removed\_email\_address@domain.invalid wrote:

> This could be interesting for cluster app, etc.
> 
> Any idea?

you want a tuplespace. it’s part of drb, which ships with ruby.

-a
