ruby - DRb: how to check if remote object exists? -


i've been toying around drb use solution communicate across multiple processes. i'm using stardard process: 1 creates service, registers druby uri, , on other process drbobject created referencing uri. far good. let's kill first process. every subsequent method call on remote object culminate in econnrefused exception. fair. isn't there way see if drbobject indeed registered in given uri? think testing forcing econnrefused on every instance start see if exists bit silly.

of course, other solutions involving resources other drb welcome, provided indeed represent plus.

you should check out zeromq. more complex set drb handles presence/reconnection issues transparently.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -