neo4j connection pooling

325 views
Skip to first unread message

vipul jain

unread,
Oct 24, 2013, 1:15:16 PM10/24/13
to ne...@googlegroups.com
Hi Guys,

I am using Neo4j 2.0 and below is my java code for hitting the graph database using rest api.

                String uri = "http://192.168.74.52:7474/db/data/";
RestAPI restApi = new RestAPIFacade(uri).getDirect();
final RestCypherQueryEngine engine = new RestCypherQueryEngine(restApi);
final String queryString = "start n=node:user(user={userId}) return n";
final QueryResult<Map<String, Object>> result = engine.query(
      queryString, MapUtil.map("userId", "C73D85658A49A999E040979E245278F9"));

Suppose 50 user access this code at the same time on my web application, so how neo4j will handle these 50 concurrent request, is there any connection pooling in neo4j or may be some other setting which allow to provide service to these 50 user in parallel  thread so that performance should not be decrease.

Can any one help me on this.

Thanks,
vipul 

Wes Freeman

unread,
Oct 24, 2013, 1:26:46 PM10/24/13
to ne...@googlegroups.com
Connections can't be pooled in Neo4j. They are short-lived http requests, so there's no point. Neo4j itself can handle many connections at once, however.
Reply all
Reply to author
Forward
0 new messages