How to set neo4j database trigger for AWS lambda?

I want to trigger the AWS lambda when one of node properties in neo4j database changes. Do you have an idea how to approach this ?

afaik, it is not possible directly. However you could consider integrating a Kakfa topic and post the dabtabse changes there. Then have another process listen of that topic and trigger the AWS lambda

1 Like

You can use APOC triggers to do this:

https://neo4j-contrib.github.io/neo4j-apoc-procedures/#triggers

Essentially when something gets created, you get to call an extra piece of cypher. To do the AWS lambda call, the extra piece of cypher you might call would be something like apoc.load.json....which is really for loading JSON into the database but also has the side effect of loading any URL you specify.

https://neo4j-contrib.github.io/neo4j-apoc-procedures/#_geocoding_example

1 Like