-
April 23rd, 2018, 11:37 AM
#1
Need to serve multiple domains from single adapter
My requirement is I have to serve stock rates to multiple domain which connected with single LS server. I have stock source from my LS server. I have to push this stock list to different domain client.
and also I have to create multiple result set, for every individual I have stored some data in redis. I have to get that data and calculate with stock data and then have to serve for individual domains. Is it possible to do like this.
-
April 24th, 2018, 10:29 AM
#2
Hi rvkvino,
I confirm that multiple domains could be handled by simply configuring your network to redirect requests for the various domains on the same port.
Or if you prefer, you can define in lightstreamer_conf.xml different <http_server> each listening on a different <ip : port> and associate each of them to a different domain.
But if HTTPS is involved there is a further complication with respect to HTTP, as the TLS/SSL handshake requires that the server sends a SSL Certificate consistent with the hostname used by the client to access the server.
Since the TLS/SSL handshake is usually performed before the application protocol (HTTP) can start the server has no way of determining the hostname used (usually reported in the “Host” HTTP header) and must assume it in advance.
In case the same server should be accessed with two or more different hostnames, it can’t but issue a certificate which is consistent with all such names. This is possible by using Wildcard SSL Certificates or Multi-Domain SSL Certificates.
When such a Multi-Domain certificate cannot be obtained, it is still possible to stick to multiple SingleDomain certificates and leverage different ports.
About your second question, in the Metadata interface you should consider that notifyuser and notifyNewSession you are provided with some information about the client and you should be able to retrieve the origin of the request.
Now you can match this information in the getItems method to customize item for different domain.
Please let us know if you need any further clarifications.
Regards,
Giuseppe
Similar Threads
-
By LS_Developer in forum Client SDKs
Replies: 14
Last Post: November 24th, 2020, 03:48 PM
-
By mhasan in forum Client SDKs
Replies: 1
Last Post: January 23rd, 2015, 09:23 AM
-
By pluczak in forum Adapter SDKs
Replies: 1
Last Post: April 26th, 2012, 10:50 AM
-
By jkrohn in forum Client SDKs
Replies: 1
Last Post: December 2nd, 2008, 10:46 AM
-
By rekhender in forum Adapter SDKs
Replies: 5
Last Post: July 23rd, 2008, 09:34 AM
Tags for this Thread
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 08:50 PM.
Bookmarks