2.7.1 Mechanism of user functions
There are two ways to execute user functions:
-
By specifying a key or a group
-
By specifying an EADS server
To use user functions, first create them and then place them on all EADS servers in the cluster.
The following explains the mechanism of user functions for each execution method.
- Organization of this subsection
(1) Execution by specifying a key or a group
Call the user function from the EADS client by specifying the key or group name and user function name. The EADS server to be accessed is determined from the hash value of the specified key or group name.
(2) Execution by specifying an EADS server
Call the user function from the EADS client by specifying the EADS server and user function name. The EADS server to be accessed is determined from the specified EADS server's address information (IP address and port number).