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
Question by Haseuser_deprecated_0 · Aug 17, 2016 at 10:40 PM · rfac++

RFA EventQueue bottleneck

I am using the below codes for event dispatch, where EVENT_TIMEOUT_PERIOD = 0

I found that only 350-400 events can be dispatched every second, is there any configuration I can set to increase the throttle rate?
(if there are messages in the queue, 350-400 events will be dispatched every second,
if there is no message in the queue, it will loop about 100000 times every second)

void dispatchEvent()
{
long dispatchReturn = simpleConsumer.getEventQueue()->dispatch(EVENT_TIMEOUT_PERIOD);
}

I tried to apply the following configuration but it doesnt work

\Connections\Connection_RSSL\watchListTableSize = 100001 \Connections\Connection_RSSL\guaranteedOutputBuffers = 1000
\Connections\Connection_RSSL\numInputBuffers = 1000
\Connections\Connection_RSSL\throttleEnabled = true
\Connections\Connection_RSSL\throttleType = "count"
\Connections\Connection_RSSL\throttleBatchCount = 500
\Connections\Connection_RSSL\throttleMaxCount = 1000

\Sessions\Session1\connectionList = "Connection_RSSL"
\Sessions\Session1\threadModel = "Dual"

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 warat.boonyanit · Aug 18, 2016 at 04:26 AM

When you call dispatch() and there is an event available, RFA will invokes the client callback method. The client callback method executes in the same thread that call dispatch().

It is your callback method that slow down your dispatch rate.

This usually means you put a process heavy code or blocking code in the client callback.

There is no configuration that would help. You have to avoid blocking code yourself.

You can decode the message in the client callback but once you got the data you want you should pass it to another thread that will do the blocking code and let the dispatching thread dispatch next event.


dispatch.png (31.4 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 >
7 People are following this question.

Related Questions

RFA log error messages

rfa::common::RespStatus::SuspectEnum

"RFA - C++ Edition - 7.6.2.L1 - Windows static" not available?

Building RFA based application with gcc-8.2.0 (c++17 standard)

Activate full message logs for RSSL connections in RFA C++

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • 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
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges