javascript - Solace JS API..slow when message size is big -
we developing using solace js api. in web app subscribing topic , consuming messages flatbuffer (around 700 kb). testing, after consumption printing "message recieved". seems not able consume faster , messages piled up. when test string ex. "hello world" able consume , no pile up. seems slow consumption problem when message size large.
any thoughts or suggestion handle this? using sample provided on solace js api website.
there 2 common causes this.
network cannot keep message rate.
assuming there 1gbps of bandwidth between solace router , javascript client, maximum theoretical message rate 1,000,000,000 / (700,000 * 8) = 178 messages/second.
this assumes there no overheads such tcp headers , network not suffering issues such packet loss.
cpu of browser cannot keep incoming message rate.
is core of cpu spiking 100% utilization?
Comments
Post a Comment