TinkerPop3 / C#

411 views
Skip to first unread message

Effy Teva

unread,
Feb 9, 2015, 7:04:22 AM2/9/15
to gremli...@googlegroups.com
Hi,

I've been using Rexster 2.6 for a while, and recently discovered TinkerPop3.
First, is TinkerPop3 (Gremlin Server) considered stable for production? Is it still going through major changes?
Second, I couldn't find any C# client for the Gremlin Server WebSockets new protocol, and couldn't find the protocol definition, in order to build a C# client.

Is the protocol still going changes? Could anyone share the protocol definition?

Thanks,
Effy

Daniel Kuppitz

unread,
Feb 9, 2015, 7:24:13 AM2/9/15
to gremli...@googlegroups.com
Hi Effy,


I guess the protocol definition is pretty much done in its current state and we won't see any changes soon. Stephen may correct me if my assumption is wrong.

Cheers,
Daniel


--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/7a29ed3e-81b1-454b-9ce9-afdc6fd60c5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stephen Mallette

unread,
Feb 9, 2015, 7:58:45 AM2/9/15
to gremli...@googlegroups.com, d...@tinkerpop.incubator.apache.org
I don't expect any more changes to the protocol between now and GA.  We had good community discussion around the protocol itself and it seems very robust to me at this point.  The protocol itself hasn't changed in months and there have been no additional proposals to make changes, so I think it is pretty stable at this point.  

As far as "production-ready" goes, Gremlin Server isn't in production anywhere that I know of, though I've heard of at least a few organizations working towards putting it there.  At this point, the focus on Gremlin Server is bug-finding and performance enhancement, so in that sense I'd call things "stable".  There is the possibility of us adding one more feature between now and GA, but it should not affect those building non-JVM clients.  Even for folks with a JVM client, the change will not be breaking - it would just offer more opportunity to optimize their drivers.

As a side note, in the future, we probably should have "driver development" discussions/questions happen in the apache dev mailing list: d...@tinkerpop.incubator.apache.org

Thanks,

Stephen



Effy Teva

unread,
Feb 9, 2015, 8:34:08 AM2/9/15
to gremli...@googlegroups.com, d...@tinkerpop.incubator.apache.org
Great,
Then I won't be switching to Gremlin Server as production quite yet, but will do my best to create a C# client and share it with you.

Thanks,
Effy

Effy Teva

unread,
Feb 10, 2015, 2:56:39 AM2/10/15
to gremli...@googlegroups.com, d...@tinkerpop.incubator.apache.org
Thanks. I've managed to create a small C# client, get the binary (and the text) messages types working, even binding works.

However,
When I send the message: "g.addVertex(['key':'value']);", I get the error "Caused by: javax.script.ScriptException: javax.script.ScriptException: java.lang.IllegalArgumentException: The provided key/value array must be a multiple of two".
What does this mean?

On another matter, I've noticed Rexster (Doghouse) doesn't exist on TinkerPop3, and the Gremlin Dashboard doesn't seem to exist either.
Is there an ETA for Gremlin Dashboard merging?
What's the preferred method for browsing the graph?

Thanks,
Effy

Stephen Mallette

unread,
Feb 10, 2015, 7:01:14 AM2/10/15
to gremli...@googlegroups.com
Please see comments inline below:

Thanks. I've managed to create a small C# client, get the binary (and the text) messages types working, even binding works.

Great!  That seems like another example as to how easy it is to create a simple client.  Most people seem to get the basics going in a couple days or so.
 
However,
When I send the message: "g.addVertex(['key':'value']);", I get the error "Caused by: javax.script.ScriptException: javax.script.ScriptException: java.lang.IllegalArgumentException: The provided key/value array must be a multiple of two".
What does this mean?

that is no longer valid gremlin syntax.  please see:


On another matter, I've noticed Rexster (Doghouse) doesn't exist on TinkerPop3, and the Gremlin Dashboard doesn't seem to exist either.
Is there an ETA for Gremlin Dashboard merging?

no - not as of yet.  i've been of the opinion to not include a feature like that for GA.
 
What's the preferred method for browsing the graph?

My answer would likely be the same for TP1, 2, and 3 - Gremlin Console. ;)  i think this is especially true now that there is reasonable Gephi integration that simplifies the visualization workflow a bit:





Daniel Kuppitz

unread,
Feb 10, 2015, 7:07:05 AM2/10/15
to gremli...@googlegroups.com
g.addVertex(['key':'value'])

It's this in TP3:

g.addVertex('key', 'value')

Note that the map parameters went away in several method signatures in favor of varargs objects.

Cheers,
Daniel

Effy Teva

unread,
Feb 10, 2015, 8:38:39 AM2/10/15
to gremli...@googlegroups.com
Thanks again for your help,

When the final version is released, I'll hopefully switch from Rexster 2.6 and Neo4j to Gremlin Server, and will add many features to this, such as a C# based Gremlin Script builder (type-safe library, instead of "manually" building Groovy strings).

Effy

Florian H.

unread,
Sep 28, 2015, 7:58:06 AM9/28/15
to Gremlin-users
Hi Effy,

I am interested in a C# client for TinkerPop3 and yours looks promising. Are you still working on it?

Regards,
Florian

Effy Teva

unread,
Sep 28, 2015, 8:36:08 AM9/28/15
to Gremlin-users
Hi Florian,

Yes, the client is still updated constantly.
As per your request, I've updated the source code and binaries on GitHub.
I'll try to publish it on NuGet soon as well.

Regards,
Effy

Effy Teva

unread,
Sep 28, 2015, 8:47:03 AM9/28/15
to Gremlin-users
Hi,

NuGet was easier than expected.
You may also use the NuGet package.

Effy

Stephen Mallette

unread,
Sep 28, 2015, 9:22:30 AM9/28/15
to Gremlin-users
Hi Effy, glad to hear things are coming along with the C# driver - would you call this an official release?  If so, we can add a link to our site and help promote your library.  

Florian H.

unread,
Sep 28, 2015, 9:33:42 AM9/28/15
to Gremlin-users
Thank you very much! Good to see that you are still working on you driver.

Effy Teva

unread,
Sep 28, 2015, 11:15:59 AM9/28/15
to Gremlin-users
Hi Stephen,

Yes, this could be considered an official release.
I've just cleaned the code, and removed some specific code used by my application.
Feel free to promote it on your site, either linking to my GitHub or to my NuGet page.
Hopefully this would assist .NET developers, and allow them to give TinkerPop3 a try.

Regards,
Effy

Stephen Mallette

unread,
Sep 28, 2015, 12:05:09 PM9/28/15
to Gremlin-users
I've updated the TinkerPop web site with a link to your libs on nuget - thanks.

Reply all
Reply to author
Forward
0 new messages