2.5 · Lesson

Where plugins run and what belongs in them

Your plugin works on the local Neo4j. Before you copy it to a server that other people use, you need to know where it runs and what it can do to the database around it.

Your code does not run in a separate process. It runs in the same Java Virtual Machine as Neo4j, on the threads that execute queries. A function is fast because there is no network hop. It also means a mistake in a plugin is a mistake in the database.