Questions tagged [low-latency]

For questions pertaining to the measurement or improvement of latency in a system.

In computing terms, describe the time it takes to perform an action. Low latency implies this should be particularly short. It is usually in the range of timings which cannot be seen, only measured.

Low Latency implies that there is a measure for the latency of critical portions of the system and that it should meet this latency requirement a high percentage of the time e.g. 99%, 99.9%, 99.99% or worst case.

This could be any where from 10 nano-second to 100 milli-seconds depending on the context.

Questions which tag low latency should give measurable timings and percentage to reach that as the solution to follow is very dependant on these measures.

Without a latency measure to go by often the simplicity of the solution should be the target which will produce quick application with minimal complexity/effort.

416 questions
10
votes
1 answer

Why does TCP/IP on Windows7 take 500 sends to warm-up? ( w10,w8 proved not to suffer )

We are seeing a bizarre and unexplained phenomenon with ZeroMQ on Windows 7, sending messages over TCP.( Or over inproc, as ZeroMQ uses TCP internally for signalling, on Windows ). The phenomenon is that the first 500 messages arrive slower and…
Pieter Hintjens
  • 6,599
  • 1
  • 24
  • 29
10
votes
2 answers

Serial communication with minimal delay

I have a computer which is connected with external devices via serial communication (i.e. RS-232/RS-422 of physical or emulated serial ports). They communicate with each other by frequent data exchange (30Hz) but with only small data packet (less…
rnd_nr_gen
  • 2,203
  • 3
  • 36
  • 55
9
votes
1 answer

C++ Low latency Design: Function Dispatch v/s CRTP for Factory implementation

As part of a system design, we need to implement a factory pattern. In combination with the Factory pattern, we are also using CRTP, to provide a base set of functionality which can then be customized by the Derived classes. Sample code below:…
Sid
  • 129
  • 1
  • 9
9
votes
1 answer

Why Google public DNS(8.8.8.8)'s ping latency so low?

I use just-ping to ping Google public DNS server, which IP is 8.8.8.8. just-ping can ping a host from 50 locations worldwide. I found that DNS's latency is low around the world. Many cities are far from each other, but they got the same low latency…
Celebi
  • 1,280
  • 3
  • 16
  • 25
8
votes
3 answers

Best way to learn how to write latency-critical, fast C++/Java/C# code?

Could anyone give me some pointers as to the best way in which to learn how to do very low latency programming? I have many programming books but I've never seen one which focused (or helped) on writing extremely fast code. Or are books not the best…
Tom
  • 419
  • 1
  • 5
  • 7
8
votes
2 answers

Java TCP/IP Socket write performance optimization

Server Environment Linux/RedHat 6 cores Java 7/8 About application : We are working on developing a low latency (7-8 ms) high speed trading platform using Java. Multi-leg orders are sent after algo conditions are met Problem The orders to the…
Neha Sharma
  • 153
  • 1
  • 5
8
votes
3 answers

Low-latency communication between threads in the same process

Console application has 3 threads: Main, T1, T2. The goal is to 'signal' both T1, T2 (and let them do some work) from the Main thread in the lowest latency as possible (μs) NOTE: please ignore Jitter, GC etc. (I can handle…
Novitzky
  • 4,756
  • 3
  • 23
  • 27
8
votes
1 answer

Tomcat sporadic latency

I have been micro-optimizing our page response time on Tomcat and in almost all cases I will see a response time of 50ms if I refresh over and over again but if the page is not hit for a second or two the response time jumps back up to 500ms. I have…
Adam Gent
  • 47,843
  • 23
  • 153
  • 203
7
votes
1 answer

How can I reduce latency in a Live Smooth Streaming conferencing solution?

I am using Expression Encoder SDK to encode a live recording of my webcam, publish it to a web server supporting IIS 7.5 and Media Services 4 and viewing it with the SmoothStreamingClient. However, since I'm aiming for a real-time conferencing…
LostKaleb
  • 407
  • 5
  • 12
7
votes
2 answers

Low Latency Networking Suggestions (s/w and h/w)

I'm wondering about various techniques/tips/tricks/silver bullets fellow SO'ers utilize when investigating network latency issues and the various solutions and optimizations that are Incorporated. I'm looking for solutions that can be applied to…
Matthieu N.
7
votes
1 answer

Is this 64-bit numeric variable multi-threading rule still true in Java 1.8 or is it out-of-date?

From Goetz, Peierls, Bloch et al. 2006: Java Concurrency in Practice 3.1.2. Nonatomic 64-bit Operations When a thread reads a variable without synchronization, it may see a stale value, but at least it sees a value that was actually placed there…
Adam
  • 5,215
  • 5
  • 51
  • 90
7
votes
1 answer

Realtime streaming with QAudioOutput (qt)

I want to play real-time sounds responding with no appreciable lag to user interaction. To have low latency I have to send small chunks of pcm data. What I am doing: QAudioFormat format; format.setSampleRate(22050); …
tru7
  • 6,348
  • 5
  • 35
  • 59
6
votes
2 answers

How large is the average delay from key-presses

I am currently helping someone with a reaction time experiment. For this experiment reaction times on the keyboard are measured. For this experiment it might be important to know, how much error could be introduced because of the delay between the…
LiKao
  • 10,408
  • 6
  • 53
  • 91
6
votes
1 answer

what is the principle of low latency in trading application?

It seems that all the major investment banks use C++ in Unix (Linux, Solaris) for their low latency/high frequency server applications. How do people achieve low latency in trading high frequency equity? Any book teach how to achieve this?
M-Askman
  • 400
  • 4
  • 17
6
votes
2 answers

How to configure asp.net kestrel for low latency?

I am trying to implement an asp.net 2.2 application to serve HTTP requests with the lowest possible latency (not throughput, it's not for production but some sort of a competition). The application is supposed to run in a Linux docker container…
Yuriy L
  • 109
  • 1
  • 6
1 2
3
27 28