Hi Nghiep,
About the ClassLoader, the isolation level of Adapter Sets can be configured in the adapters.xml file. Please refer to the classloader parameter of the provided template of
adapters.xml for a complete description:
[HTML]<!--
Optional. Determines the ClassLoader to be used to load the Adapter
related classes. Possible values are:
- "common": The common ClassLoader assigned to the whole Adapter Set
is used; this ClassLoader already includes all the classes found
in the common "lib" and "classes" folders; it also inherits from
a global ClassLoader that includes all the classes found under the
"shared/lib" and "shared/classes" folders. If a specific <install_dir>
is assigned to the Adapter, classes found in its "lib" and "classes"
subfolders are added to the Adapter Set ClassLoader.
- "dedicated": A dedicated ClassLoader, which still inherits from the
Adapter Set ClassLoader, is used. In this case, it is mandatory
that a specific <install_dir> is assigned to the Adapter; hence,
classes found in its "lib" and "classes" subfolders are added to
the dedicated ClassLoader.
- "log-enabled": A dedicated ClassLoader which also includes the
slf4j library used by the Server is used; hence the Adapter shares
the log configuration with the Server. However, in this case, the
Adapter ClassLoader does not inherit from the Adapter Set
ClassLoader, hence no sharing of classes with other Adapters is
possible. If no specific <install_dir> is assigned to the Adapter,
then the dedicated ClassLoader will be added all classes found in
the common "lib" and "classes" folders.
The determined ClassLoader is also set as the "context ClassLoader"
in all Adapter method invocations.
If not defined, the default value is "common" (i.e. the common
Adapter Set ClassLoader is used).
-->
<!--
<classloader>dedicated</classloader>
-->
[/HTML]
'log-enabled' should work in your case, but please consider the various options yourself and make specific tests.
About Item names, since each client session must specify, and therefore is tied to, a single Adapter Set, there is no possibility of confusion to which Data Adapter is involved for each subscription.
About performance point of view, generally the load of a Lightstreamer server instance is mostly determined by these factors:
- the number of concurrent client session active at the same time
- the number of requests arriving per second from client sessions
- the total outbound throughput of the server
All these factors are independent of the number of Adapter Sets involved; if your server has to support the load of 1000 client sessions whether they are all connected to the same Adapter Set or spread over 10 different ones it doesn't make much difference.
Regards,
Giuseppe