Scoped values is a new API in Java 20 that enables developers to store and share immutable data within and across threads. We look at how to use it and how it works.
Also find me here:
Baeldung Author
Daniel Strmecki
Daniel Strmečki is a Java and AEM Solution Architect with a strong focus on quality, modularity, and reusability. Throughout his career, he gained experience in software development, solution design, project, and people management. Daniel has an open, ambitious, stubborn, and perfectionist personality. He likes sports, modern technology, technical challenges, motivated colleagues, and well-defined processes.
Here's what I've written (so far):
Baeldung on Java
- All
- Core Java (8)
- NoSQL (3)
- Web Services (2)
- Spring Data (2)
- Java List (2)
- JVM (2)
- HTTP Client-Side (2)
- Testing (1)
- Spring Web (1)
- Spring Boot (1)
- REST (1)
- Networking (1)
- Maven (1)
- Logging (1)
- Java Streams (1)
- Java Numbers (1)
- Java Map (1)
- Java Concurrency (1)
- Java Collections (1)
- Java (1)
Singleton Design Pattern vs Singleton Beans in Spring Boot
Filed under Spring Boot
Compare singleton beans with objects created using the singleton design pattern.
HTTP Interface in Spring
Filed under Spring Web
Spring has a new web client builder that’s similar to OpenFeign, but is native to Spring. We look at how to build API clients with itm .
REST vs. GraphQL vs. gRPC – Which API to Choose?
Filed under REST, Web Services
REST, GraphQL, and gRPC are solutions to different problems when calling webservices. We look at how they differ and can be combined in our architecture.
Guide to MicroStream
Filed under NoSQL
MicroStream is an alternative to a database engine. It allows for direct storage of Java objects with queries performed using stream-like APIs. We look at how this new technology can be used.
Use Cases for Static Methods in Java
Filed under Core Java
Java allows us to declare functions as static. We look at what this means, how static functions differ from others, and some common use cases for preferring static functions.
Posting with Java HttpClient
Filed under HTTP Client-Side
From Java 9 onwards, the new HttpClient API provides both a synchronous and asynchronous modern web client. We look at how it can be used to make requests.
Apache HttpClient vs. CloseableHttpClient
Filed under HTTP Client-Side
Look at the difference between Apache HttpClient API’s HttpClient and CloseableHttpClient
Make a Call to a GraphQL Service from a Java Application
Filed under Web Services
GraphQL is a standard for communicating with web services. We look at a few ways to access GraphQL endpoints from a Java application.