You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@arrow.apache.org by Eric Talbot <et...@ccri.com> on 2019/01/09 14:32:21 UTC

using plasma as a work queue

Looking for some input on using plasma.

We're trying to set up a system where a scala/JVM process adds objects 
to Plasma, and then a separate Python process consumes the objects.

The Python piece currently looks something like this:

client = plasma.connect(...)
client.subscribe()
while True:
     object_id, data_size, meta_size = client.get_next_notification()
     if data_size >= 0:
         data, = client.get_buffers([object_id])
         # do stuff with data
         client.delete([object_id])

Is this a reasonable way to approach using plasma? Is there a better way 
to do this? Are we going to run in to any problems with this approach?


Thanks!


Eric