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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 0 1

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 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
13k 32 12 18

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea