Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Scala: Context & Observability

Scala: Context & Observability

Slides for The Art of Scala presentation in Warsaw on 25th May 2023

Michał Bednarz

May 25, 2023
Tweet

More Decks by Michał Bednarz

Other Decks in Programming

Transcript

  1. Thread-safe state on JVM AtomicRef ThreadLocal Every thread has its

    own local copy of the state which is not visible to the others Shared state safely updated by many threads using optimistic concurrency (CAS)