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
6
votes
2 answers

Can any caching DNS servers refresh their cache asynchronously?

We run a latency-sensitive system. We found one significant cause of latency: some processes were making blocking DNS lookups to remote nameservers. To mitigate this, we have installed a local caching DNS resolver, specially dnsmasq. But we still…
jameshfisher
  • 34,029
  • 31
  • 121
  • 167
6
votes
1 answer

Aurora vs MemSQL for low throughput but low latency purpose

We are changing our current user side MySQL database. We have a website + mobile app for which users around the US query our database. the relevant data is is contained in three tables, and a join query against the three tables is needed to send the…
LAlearner
  • 115
  • 1
  • 1
  • 8
6
votes
1 answer

C++: Quickest way to get integer within a range

I need to generate hash keys for about N=100 million keys. From my study it appears that murmur3 (MurmurHash3_x86_32, see murmur3 hash) would be the fastest hashing function with best latency and small enough collision rate. The problem I am facing…
Quiescent
  • 1,088
  • 7
  • 18
6
votes
4 answers

how to map a specialized string into specified integer

I am doing some financial trading work. I have a set of stock symbols but they have very clear pattern: it's composed of two characters AB, AC AD and current month which is a four digit number: 1503, 1504, 1505. Some examples…
trading4living
  • 129
  • 1
  • 5
6
votes
2 answers

Java NIO good for low latency or high throughput?

I am new to Java NIO and have used it a little. I have a general query. If you are designing a ultra low latency app vs high throughput application, which of the two gets clearly benefited by using Non blocking IO? My understanding is that Non…
de.coding.myth
  • 125
  • 1
  • 9
6
votes
2 answers

C++ Low-Latency Threaded Asynchronous Buffered Stream (intended for logging) – Boost

Question: 3 while loops below contain code that has been commented out. I search for ("TAG1", "TAG2", and "TAG3") for easy identification. I simply want the while loops to wait on the condition tested to become true before proceeding while…
486DX2-66
  • 159
  • 2
  • 10
6
votes
1 answer

Does Visual Studio support data cache operations?

Reading through some great presentations on low latency computing. They had a reference to IBM's XL C/C++ compiler data cache operation __dcbt (Data Cache Block Touch) for their cell compiler. The operation loads a block of memory into L1 cache.…
oz10
  • 153,307
  • 27
  • 93
  • 128
6
votes
2 answers

What is the fastest way to send data from one thread to another in C++?

I have tried an experiment where I built a simple Producer/Consumer program. They run in separate threads. The producer generates some data and the consumer picks it up in another thread. The messaging latency I achieved is approximately 100 nano…
5
votes
0 answers

What are some rules of thumb for minimising WebSocket client latency?

I'm currently working on a latency critical application. After profiling my code, I concluded that the bottleneck might be related to my WebSocket client. I don't control the server, only the client. Context I'm running a c5d.xlarge Ubuntu instance…
5
votes
2 answers

How to serialise/deserialise long[] value with get/set on random indices using Chronicle Map?

I am new to chronicle-map. I am trying to model an off heap map using chronicle-map where the key is a primitive short and the value is a primitive long array. The max size of the long array value is known for a given map. However I will have…
junkie
  • 809
  • 2
  • 8
  • 19
5
votes
2 answers

Low latency audio capture with gstreamer

I need (almost) real-time audio capturing on Linux with gstreamer. My problem is that I cannot reduce the latency below ~210ms. I tried a simple loopback from mic to headphone: gst-launch-1.0 pulsesrc ! alsasink gst-launch-1.0 alsasrc !…
gertom
  • 51
  • 1
  • 2
5
votes
1 answer

How to send byte message with ZeroMQ PUB / SUB setting?

So I'm new to ZeroMQ and I am trying to send byte message with ZeroMQ, using a PUB / SUB setting. Choice of programming language is not important for this question since I am using ZeroMQ for communication between multiple languages. Here is my…
Louis Ng
  • 533
  • 1
  • 7
  • 16
5
votes
2 answers

Simple low-latency audio playback in iOS Swift

I'm a beginner in iOS and I'm trying to design a drum set app with Swift. I designed a view with a single button and wrote the code below, but it has some problems: Some sounds are lost when I touch the button quickly like a drum roll. Still in a…
msampaio
  • 3,394
  • 6
  • 33
  • 53
5
votes
2 answers

Using TCP Acks to measure latency to a server?

I am trying to measure latency to a server that I don't control. This is in a colocated environment, so the latency is on the order of 500 us (.5 ms). I understand that Cisco gear frequently deprioritizes ICMP traffic, making ping times…
Ted Graham
  • 3,511
  • 4
  • 24
  • 25
5
votes
5 answers

Low Latency Serial Communications In .Net

I have been researching various third party libraries and approaches to low latency serial communications in .Net. I've read enough that I have now come full circle and know as little as I did when I started due to the variety of conflicting…
Berney Villers
  • 162
  • 1
  • 7