Database Reference
In-Depth Information
Listing 10.14. Extension snippet of HTTP response for getting info on Adam node
As the numbered list of steps in the beginning of this section stated, a JAR file needs to be
created that contains both the plugin class and the org.neo4j.server.plugins .ServerPlugin
file, as shown in the following snippet (available in the META-INF/services directory):
com.manning.neo4jia.chapter10.serverplugin.JFriendNamesServerPlugin
ThisJARfileshouldthenbeplacedontheserverclasspath.Thisisusuallydonebyplacing
the JAR file in the plugin directory of wherever the server is installed.
The results of this server plugin execution, which under the covers is using the native em-
bedded API, are detailed in table 10.7 . Again, there's quite a drastic improvement over the
plain REST API.
Table 10.7. Performance metrics log after scenario 3, server plugin
Curl client
Java REST binding
Number of
server calls
made
Scenario
Description
Cold
Warm
Cold
Warm
1
Raw REST API 602
5726 ms
5303 ms
1066 ms
917 ms
 
Search WWH ::




Custom Search