Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TREP APIs /
  • RFA /
avatar image
REFINITIV
Question by Leon.Hong · Oct 09, 2016 at 03:34 AM · treprfarfa-apilatency

Is batchSize and flushTimerInterval helpful to improve the latency?

Greetings all

Currently, we found our app has latency issue when message input rate to be around 60,000-80,000 per second, is there any way to improve this?

We have removed as much unnecessary code as possible from the processEvent, but seems not enough.

Is some change in configuration would help? Like batchSize and flushTimerInterval? Frankly speaking I've tested these two config items in my environment but still have no clue what this functionality supposed to work.

Any suggestion would be much appreciated!

BR.

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by wasin.w · Oct 10, 2016 at 03:40 AM

@Leon.Hong

The application improve the performance by using the horizontal scaling to distribute the process of response/update messages between multiple CPU cores while running a single process on the machine. This would increase the response message throughput of the application.

With horizontal scaling concept, the application can have many sessions and having its own connection to the infra e.g. 4 sessions with 4 connections. The number of items subscribed per session should be equally distributed, i.e. total number of items divided by 4. This will reduce the update rates per channel and increase TCP Buffer Sizes according to number of connections.

Below is the example design of the application applied horizontal scaling with 4 sessions/connections:

Please be informed that the horizontal scaling may not be fully beneficial to applications when the number of threads is higher than the number of the machine CPU’s cores. For example, with 7-sessions-and-7-connections, there will be seven RFA threads (session-connection) and seven application threads (for event processing) when the merged thread model (sharedConnections = false) is used. Ideally, these 16 threads (7 RFAs + 7 applications) should be distributed among 16 CPU cores to be fully efficient.

For more detail of horizontal scaling, please refer to section 14.5.6 Horizontal Scaling in the RFA Developer Guide document (<RFA Package>\Docs).


diagram2.jpg (34.5 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
9 People are following this question.

Related Questions

Latency updating IDN service

Trading Venue Spot Prices

How to get the certain data of bid/ask and time field in order to save to local variables?

RFA versions

RFA 1.0 win32 api connectivity issue

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges