-
April 20th, 2010, 08:56 AM
#1
Multiple Metadata adapter usage
Hello,
Can I create two sessions connect to two metadata adapters at the same time on IPhone? Will it produce conflict?
Thanks!
Best Regards,
Stephen Lam
-
April 20th, 2010, 10:02 AM
#2
Hi,
Each Lightstreamer session is bound to an Adapter Set, which comprises a single Metadata Adapter and one or more Data Adapters.
Usually, a single Metadata Adapter should be able to govern gloval user's authentication and the fine-grained permissioning for each Data Adapter subscriptions. Why should you need to access multiple Metadata Adapters? In any case, you can do that by creating two different sessions with two different Adapter Sets.
-
April 20th, 2010, 12:04 PM
#3
Dear Alessandro,
Thanks for your reply. We have two kind of data. Some data allow user access unlimitedly. Some data need to count usage time and want to bind it to a separate metadata adapter for generate CDR. Do you think this is a good approach?
Best Regards,
Stephen Lam
-
April 21st, 2010, 09:37 AM
#4
If you don't have to face client-side restrictions on the number of sockets that can be simultaneously open,
and using a single session for your application is awkward,
then you can make use of multiple sessions and multiple Adapter Sets.
However, if you just need to deserve different processing to different items based on the item names only,
then doing that with a single Metadata Adapter may turn out to be simple enough to stick to the classical one-session approach.
Note that different Adapter Sets must run different Data Adapters;
if any data is in common, they can include some Data Adapters in common, but distinct instances will be run.
-
April 22nd, 2010, 05:12 AM
#5
However, if you just need to deserve different processing to different items based on the item names only,
then doing that with a single Metadata Adapter may turn out to be simple enough to stick to the classical one-session approach.
I agree multiple Metadata Adapters will complicate the architecture. As we have to log time consumption per user on some data. For single Metadata Adapter approach, How can we differentiate which client is subscribed which data adapter?
-
April 22nd, 2010, 09:19 AM
#6
I'm not sure I understand the details.
Do you mean that you have two separate Data Adapters
and that you need to measure time consumption for all the items supplied by the first Data Adapter and only for them?
In this case, admittedly, if you define a single Adapter Set which includes both Data Adapters, you will incur in a Metadata Adapter interface limitation.
In fact, the Metadata Adapter is notified about the beginnig and the ending of the subscription of each item and the involved user name is also supplied;
but only the item names are supplied, not the related Data Adapter IDs.
Hence, if you can distinguish the two sets of items based on the item names only,
then you can treat them in different ways in a common Metadata Adapter;
otherwise, things would become complicated with the single Metadata Adapter approach too.
Similar Threads
-
By odeheurles in forum Adapter SDKs
Replies: 6
Last Post: January 26th, 2015, 09:50 AM
-
By Alessandro in forum Adapter SDKs
Replies: 4
Last Post: October 24th, 2011, 09:33 AM
-
By squint in forum Adapter SDKs
Replies: 1
Last Post: September 10th, 2010, 11:37 AM
-
By tstojano in forum Adapter SDKs
Replies: 3
Last Post: August 18th, 2008, 12:55 PM
-
By tstojano in forum Client SDKs
Replies: 1
Last Post: August 13th, 2008, 04:12 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 12:21 AM.
Bookmarks