Hello Everybody!
I am trying to use Gremlin.Net in an
ASP.NET web application. And I think I will need to re-use the "GremlinClient" object (or maybe the "DriverRemoteConnection" or the "GraphTraversalSource") to get better performance.
But I am not sure about the right way to do that in a multi-threaded environment like a web application. Should I create a new
"GremlinClient" for each HTTP request and dispose of it at the end of the request? Or I should maintain only one "GremlinClient" for the web application lifetime and let all the request handler threads use it in parallel?
I see that the "GremlinClient" maintains a connection pool internally. Does this mean that one instance can handle a large number of parallel requests?
Thanks in advance!