~/talk

Avoiding pitfalls with Java streams, concurrency, HTTP requests and more

Talkat Voxxed Days Amsterdam 2026 · 2026-04-01..04-02· [java, testing]
links:none on file
slides:none on file

Comparator objects get created repeatedly, doubling sort cost vs a single static comparator (JMH shows ~2x speedup), a non-atomic check-then-act on a ConcurrentHashMap loses accounts under concurrency and is fixed with computeIfAbsent, using side-effecting Stream operations can be optimized away or break under parallel streams causing lost updates, and a Spring HTTP interceptor that throws without calling response.close causes connection leaks. Open-source Pinpoint rules and IDE/Sonar checks detect these patterns and found a handful of real production occurrences.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:26Interactive quiz setup
  3. 5:06Java streams comparator pitfalls
  4. 13:12Concurrency bug in concurrent map
  5. 13:32Java streams side effects smell
  6. 18:28Stream side effects optimization surprise
  7. 23:54Parallel stream concurrency issues
  8. 27:53HTTP request interceptor exception handling
  9. 32:27Approach to prevent production issues
  10. 33:51Wrap-up and key takeaways
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.