Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2316

Best practices Gremlin client connection pool c#

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Invalid
    • 3.4.0
    • None
    • documentation
    • None

    Description

      Hi, 

      I need a best practices to use the Gremlin Server, Client without any connection issue. Now I am using germlin server to establish it in constructor: 

      GremlinServer server = new GremlinServer(hostname, port, true, username, password);

      where as I uses gremlin client on a separate method and calls on each query execution. Meaning the gremlin client instance will be created each time on SubmitQuery:

       

      public ExecuteQuery(string query)

      {

      using (var client = new GremlinClient(server, new GraphSON2Reader(), new GraphSON2Writer(), GremlinClient.GraphSON2MimeType))

      { var task = client.SubmitAsync<dynamic>(query); task.Wait(); return task; }

       

       I want to know is we disposing & creating the Gremlin client each time? 

      And I am using Gremlin driver 3.4.0, should I need to upgrade to latest version and why to update it? 

       

      Please suggest the best practices to use the gremlin client & server. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            Sabarish sabarish
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: