Fragen im Vorstellungsgespräch bei Elastic: In case a field has high cont... | Glassdoor.de

Frage im Vorstellungsgespräch

Java Engineer-Vorstellungsgespräch Remote, OR (Vereinigte Staaten von Amerika)

In case a field has high contention (many threads accessing

  it in parallel), what could you do about it?
Antwort

Antwort im Vorstellungsgespräch

2 Antworten

0

Check if you could use instead of one, let's say AtomicLong, many AtomicLongs and apply some round-robin or modulo approach, changing them independently from each other. In case an over all sum is needed, this can be only done with weak consistency guarantees though.

Bewerber im Vorstellungsgespräch am 21.07.2017
0

Wondering if anyone tried using Rooftop Slushie? Seems like you can ask questions and get answers from Elastic employees.

https://wwww.rooftopslushie.com

Anonym am 15.07.2019

Antwort oder Kommentar posten

Um dies zu kommentieren, bitte anmelden oder Konto anlegen.