Create separate Gremlin Java client objects for read and write endpoints - Amazon Neptune
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Create separate Gremlin Java client objects for read and write endpoints

You can increase performance by only performing writes on the writer endpoint and reading from one or more read-only endpoints.

Client readerClient = Cluster.build("https://reader-endpoint") ... .connect() Client writerClient = Cluster.build("https://writer-endpoint") ... .connect()