Gremlinq / ExRam.Gremlinq

A .NET object-graph-mapper for Apache TinkerPop™ Gremlin enabled databases.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Opening up ConnectionPoolSettings in AddWebSocketExecutor method

javaadpatel opened this issue · comments

Hi,
I've been trying some load testing on my graph to check whether I'm modelling my data effectively, and I ran into this exception:
image

I saw there is a connectionPoolSetting that could be exposed in the AddWebSocketExecutor method, shown here:
image

Could I make a PR to expose this setting? This would allow users to set their own connection PoolSize and MaxInProcessPerConnection settings instead of having to use the defaults.

I wouldn't currently accept such a PR because it would make the abstraction leak. I recognize the issue here though.

What is the best way to get around this error? I am now experiencing it in my production environment as the load is too great. I am using a singleton of IConfigurableGremlinQuerySource and then using that to execute all the queries

I see there's actually a way to pass a Func<IGremlinClient> clientFactory to the .AddWebSocketExecutor method and that allows you to control all the settings actually.