Git Product home page Git Product logo

plasmaflight's Introduction

PlasmaFlight

A client-server based implementation for transfering plasma store objects over a network. Objects can be passed through the client using the memoryview interface.

Usage

Local Node

store = sp.Popen(["plasma_store", "-m", "100000000", "-s", "/tmp/plasma0"])
server = PlasmaFlightServer(
    location="grpc+tcp://localhost:5005",
    plasma_socket="/tmp/plasma0",
    tls_certificates=[],
    verify_client=False)


object_id = generate_sha1_object_id(b'my_key')
data = memoryview("你好".encode('utf-8'))

client = PlasmaFlightClient("/tmp/plasma0")
client.put(data, object_id)
print(client.get(object_id).tobytes().decode('utf-8'))
>> 你好

Remote Node

store = sp.Popen(["plasma_store", "-m", "100000000", "-s", "/tmp/plasma1"])

client = PlasmaFlightClient("/tmp/plasma1")

# use local machine ip here
print(client.get(object_id, "10.1.1.1:5005").tobytes().decode('utf-8'))
>> 你好

Plasma Store Synchronization

As demonstrated locally in tests in plasmaflight/tests/test_plasma_flight_synchronization.py:

object-diagram

(the client will automatically check and cache fetched objects with the plasma store at the configured socket)

plasmaflight's People

Contributors

calgray avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

plasmaflight's Issues

Test Removal of Store Objects

Ideally objects copied from a remote store should persist until references from each store becomes zero.

At a mimimum, the when the plasmaflight client, server and application closes all created objects should get removed from all stores from the session (Might only be possible after a safe application exit).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.