NIP Publishing with two ADH servers using Elektron Java SDK
I am writing a Java NI Provider to publish to our TREP infrastructure using the Elektron SDK. We have two ADH and two ADS servers. The ADH servers configured using hotStandby.
When testing I see that my subscribers don't see any data that is published to the standby ADH. When I failover the ADH servers I see that the previous standby server has stale data (the last data that was published directly to that server).
Should the NI Provider publish to just the active server? Or should it publish to the both at the same time? Multicast isn't currently supported by Elektron, but I could easily run the submit method on two publishers at once using RSSL for both.
I expected that the standby server has a mechanism to keep in sync with the active server. But that's not what I'm seeing. Perhaps I've misconfigured the data source?
This is similar to another question posted (https://community.developers.refinitiv.com/questions/10246/nip-publishing-on-2-adh-without-multicast.html). But it wasn't clear what is the reason to publish to both ADH servers? Should I just configure them to keep in sync?
Best Answer
-
Hello @tbaker,
From my understanding, the hot standby feature is used for making a fault tolerance on ADHs. So, if one of them goes down, the other once is still available and can continue providing services to downstream components.
If you expect for making the standby server performs data synchronization with the active server. Imagine the situation that there is something wrong with the active server, it will affect to the standby server as well, which means that the hot standby feature will be useless in this case.
Referring to your statement:
When testing I see that my subscribers don't see any data that is published to the standby ADH. When I failover the ADH servers I see that the previous standby server has stale data (the last data that was published directly to that server).
I'm not sure that you encountered this behavior from which type of topology, but in my test environment using topology 1, there were the scenarios as follows:
1. The active ADH went down.
2. The connecting ADS detected this problem and sent a DIRECTORY update message to the application with the status text: "A23: Source has gone down, requesting from another source."
3. The application will change the item status to 'Open/Suspect'.
4. Once the standby ADH became active, then ADS sent a DIRECTORY update to the application.
5. After that, ADS sent a new refresh message to the application again. The item status went back to Open/Ok.
That's why I'm curious about the different results. Please let me know if there is something that I'm overlooking.
1
Answers
-
Hi Nipat,
Thanks for the extra information. I have Topology 2 for my test case and I was unsure if I needed to send the data to both ADH servers. You've made a really good point regarding the hot standby only being useful if both servers receive the data separately. It wasn't clear from the documentation on ADH that the Non Interactive Provider application should send data to all ADH servers. Plus all the example applications are for single ADH server topology. I've changed my code to publish in parallel to all ADHs and it's working well.
Thanks
Tom
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛