For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvote
Accepted
18 0 0 3

How to specify an alternative ADS server and other sources of data (DDS or KRS) from perl websocket example

I am using Reginitiv's sample perl scripts to retrieve RICs. It's working fine when retrieving the default IDN_RDF feed from one ADS server, but it is not clear from the perl samples how to:

1. Specify an alternative ADS server during initial configuration, so that if the first ADS fails, the data will be retrieved from the alternative ADS server.

2. Specify RICs from other sources of data, like DDS or KRS (Kondor+).

Thanks,

Ofer

ADSperl
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

hi @ofer ,

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,
AHS

1 Answer

· Write an Answer
Upvote
Accepted
22k 58 14 21

Hello @ofer,

The websockets is a protocol specification and hence, all the management like handshake, session, failover etc is the application's responsibility. Please see this Python sample which implements hotstandby and you can do something similar in perl code.

If your other source is available in the ADS, under a different service name, you can specify the service in the item subscription request message like this:

{
  "ID": 2,
  "Key": {
    "Name": ric_name,
    "Service": "DDS"
  },
}
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.