Best practices using the Gremlin Java client with Neptune
Follow these recommendations when using the Gremlin Java client with Neptune. These best practices help you optimize performance, manage connections effectively, and avoid common pitfalls when working with the Java driver.
Topics
Create separate Gremlin Java client objects for read and write endpoints
Add multiple read replica endpoints to a Gremlin Java connection pool
Set maxInProcessPerConnection and maxSimultaneousUsagePerConnection to the same value
Send queries to the server as bytecode rather than as strings
Always completely consume the ResultSet or Iterator returned by a query