[ 
https://issues.apache.org/jira/browse/TINKERPOP-575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15200849#comment-15200849
 ] 

ASF GitHub Bot commented on TINKERPOP-575:
------------------------------------------

Github user mpollmeier commented on the pull request:

    
https://github.com/apache/incubator-tinkerpop/pull/269#issuecomment-198167176
  
    Awesome to see progress on this! I had some trouble getting it to work 
though. Here's what I id:
    
    build it
    ```
    git checkout TINKERPOP-575 #currently e01a71b
    mvn clean install -DskipTests
    ```
    
    start gremlin-server
    ```
    unzip 
$TP_SRC/gremlin-server/target/apache-gremlin-server-3.2.0-SNAPSHOT-distribution.zip
    cd apache-gremlin-server-3.2.0-SNAPSHOT 
    bin/gremlin-server.sh conf/gremlin-server-modern.yaml
    ```
    
    connect and run traversal
    ```
    cd gremlin-console/target/apache-gremlin-console-3.2.0-SNAPSHOT-standalone
    bin/gremlin.sh
             \,,,/
             (o o)
    -----oOOo-(3)-oOOo-----
    plugin activated: tinkerpop.server
    plugin activated: tinkerpop.utilities
    plugin activated: tinkerpop.tinkergraph
    gremlin> graph = RemoteGraph.open('conf/remote-graph.properties')
    ==>remotegraph[DriverServerConnection-localhost/127.0.0.1:8182 
[graph='graph]]
    gremlin> g = graph.traversal()
    
==>graphtraversalsource[remotegraph[DriverServerConnection-localhost/127.0.0.1:8182
 [graph='graph]], standard]
    gremlin> g.V().valueMap(true)
    ```
    
    No output :(
    PS1: works fine for local TinkerGraph instance
    PS2: Wireshark tells me that there is some communication between the REPL 
and gremlin-server (three TCP packets). 


> Implement RemoteGraph
> ---------------------
>
>                 Key: TINKERPOP-575
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-575
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: driver, process, server
>    Affects Versions: 3.0.2-incubating
>            Reporter: Bryn Cooke
>            Assignee: stephen mallette
>             Fix For: 3.2.0-incubating
>
>
> Consider implementing a graph that allows remote execution of portions of a 
> gremlin query and locally executes steps that have lambda expressions.
> Graph r = new RemoteGraph("192.168.0.10") //Gremlin server
> r.V().has("age", 35).out().in().sideEffect(v->{do something});
> gets optimised to
> r.remoteStep("g.V().has("age", 35).out().in()").sideEffect(v->{do something});
> The remote step would be transmitted to the server for execution and the 
> results pulled back allow the side effect to take place locally.
> All remote step optimisation is done via traversal strategy.
> Things to think about are:
> Transactions have to span multiple requests to the server.
> Strategies only work on the server side.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to