Learn the difference between the volatile keyword and atomic classes and what problems they solve
Search Results for: Atomic operation
Using Transactions for Read-Only Operations
An explanation about transactions and a practical example of different approaches to handle read-only transactions.
Differences Between set() and lazySet() in Java Atomic Variables
Learn the differences between set() and lazySet() methods of atomic classes in Java and understand when to use which method.
An Introduction to Atomic Variables in Java
Learn how to use atomic variables for solving concurrency issues.
Continue With Transaction After Exception in JPA
Understand when continuing with the transaction after encountering an exception may be necessary and learn how to handle this in Spring JPA.
Event Externalization with Spring Modulith
Discover how to utilize Spring Modulith’s features to listen to Spring application events and publish them to a Kafka topic.
Sharing Memory Between JVMs
Learn how to use share a memory area between two JVMs running on the same machine.
Execute a Method Only Once in Java
Discover different approaches to executing a method only once.
Volatile Variables and Thread Safety
Learn why declaring a shared variable as volatile does not always guarantee thread-safety.
Redis vs MongoDB
Learn some features offered by Redis and MongoDB and see when to use Redis or MongoDB by comparing them against each other
Introduction to Lock-Free Data Structures with Java Examples
A quick and practical guide to lock-free data structures in Java.
Testing Multi-Threaded Code in Java
A comprehensive guide to testing multithreaded code in Java.
Design Principles and Patterns for Highly Concurrent Applications
A quick and practical overview of design principles for highly concurrent applications!
Introduction to cache2k
Learn how to use cache2k, a lightweight in-memory Java caching library.
What Is Thread-Safety and How to Achieve It?
Learn about the different use cases for thread-safety and concurrent access.
An Introduction to Synchronized Java Collections
Learn how to create synchronized collections using the static synchronization wrappers available in the Java Collections Framework.
A Guide to Jdbi
Learn how to query a relational database using an open source Java library – jdbi.
JDBC with Groovy
Learn how to use the Groovy SQL module and how it enhances and simplifies JDBC with closures and Groovy strings.
Java 9 Variable Handles Demystified
Explore variable handles in Java 9 through the VarHandle API.
Introduction to JCache
Learn about a standard caching API for Java – JCache.