localstack icon indicating copy to clipboard operation
localstack copied to clipboard

feature request: AWS Neptune with neo4j library + bolt driver usage

Open leo6104 opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Feature description

https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-opencypher-bolt.html

In Official Document, there is opencyper + neo4j bolt driver support.

I saw Localstack neptune example and it seems only explain gremlin usage via websocket cluster url.

Hope it could be support for bolt driver + neo4j example

🧑‍💻 Implementation

In AWS document, althought the Bolt spec states that Bolt can connect using either TCP or WebSockets, Neptune only supports TCP connections for Bolt.

Bolt driver + neo4j python usage

from neo4j import GraphDatabase, Session

GraphDatabase.driver('bolt://127.0.0.1:8182')

Anything else?

No response

leo6104 avatar Aug 04 '22 01:08 leo6104

Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our developer guide.

localstack-bot avatar Aug 04 '22 01:08 localstack-bot

Hi @leo6104, thanks for reporting. We have now pushed a first version of Neo4J/Bolt support - can you please pull the latest LocalStack Docker image and give it a try?

Please note that you'll need to configure NEPTUNE_DB_TYPE=neo4j in the LocalStack container environment (e.g., in your docker-compose.yml) in order to enable this new functionality. The Port number returned from the create-db-cluster operation can then be used to connect with a Bolt compatible client, e.g., GraphDatabase.driver('bolt://...').

Hope that helps - please keep us posted on how it goes. Would be great if you could share a few more details about your requirements, so we can ensure that your use case is covered. Thanks!

whummer avatar Aug 09 '22 20:08 whummer

Closing as resolved - please keep us posted on how it goes @leo6104 . Looking forward to getting your feedback! Let us know if anything is missing.. 👍

whummer avatar Sep 12 '22 14:09 whummer

@whummer, would you be able to show me the full docker-compose and the awslocal neptune create-db-cluster command to use localstack neptune with neo4j/bolt support?

mbaroody avatar Jun 21 '23 16:06 mbaroody

second this @whummer

pandaeli avatar Jan 24 '24 14:01 pandaeli

Hi @mbaroody @pandaeli — Please have a look at our docs: https://docs.localstack.cloud/references/configuration/#neptune

If its insufficient, I can look into building a small sample/tutorial for you :) /cc: @steffyP

HarshCasper avatar Jan 26 '24 17:01 HarshCasper