Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-16-2021 08:29 AM
What is the best practise around APOC triggers:
Is it disadvised to put business logic in them?
What kinds of logic should go in them, and how much?
Will logic in there tend to grow to a maintainability burden over time?
I imagine one might have APOC triggers that fire events, which then get picked up by Kafka or similar, which trigger a Cloud Function that performs some task/query.
But I am drawn between two opposing viewpoints:
It would be much more efficient to have business logic in the database layer, since then you don't need to send messages over the network (potentially back/forth to another data center, if the DB is hosted elsewhere than where the Cloud Functions run).
I don't think it is wise to put business logic inside APOC triggers. Because:
What are the best practises here, both in terms of efficiency and maintainability?
All the sessions of the conference are now available online