This tutorial demonstrates using Java’s CompletableFuture to efficiently retrieve data from multiple REST APIs concurrently, enhancing response times and scalability in microservices.
Also find me here:
Baeldung Author
Pedro Lopes
I'm a Software Engineer passionate about learning and teaching innovative tools and techniques for backend software development. My specialties are in the Java and AWS ecosystems. Particularly interested in high-performance computing, distributed systems, cloud technologies, and software architecture. Eager to help people and share helpful knowledge.
Here's what I've written (so far):
Baeldung on Java
- All
- Spring Boot (3)
- Java (3)
- Core Java (3)
- Data (2)
- Artificial Intelligence (2)
- Testing (1)
- Spring Persistence (1)
- Spring Data (1)
- Spring AI (1)
- Spring (1)
- REST (1)
- Logging (1)
- Java String (1)
- Java Concurrency (1)
- Java Array (1)
- HTTP Client-Side (1)
- Architecture (1)
- Algorithms (1)
Can @Transactional and @Async Work Together?
Filed under Spring Persistence
Explore the compatibility between the @Transactional and @Async annotations in the Spring framework.
Finding the Parent of a Node in a Binary Search Tree with Java
Filed under Algorithms
BSTs efficiently solve problems, including finding a node’s parent. Learn approaches to locate a node’s parent, considering edge cases.
Structured Logging in Java
Filed under Logging
Learn the advantages of and how to implement structured logging in Java.
Difference Between String isEmpty() and isBlank()
Filed under Java String
Delve into the distinctions between isEmpty() and isBlank() when working with Java Strings.
Manage Kafka Consumer Groups
Filed under Data
Learn about Kafka consumer groups and their role in enhancing scalability by enabling multiple consumers to read from the same topic in parallel.
Optional as a Record Parameter in Java
Filed under Core Java
Learn about using Optional as a record parameter and understand why it’s a bad practice.
Java Interface Naming Conventions
Filed under Java
This article summarizes naming conventions for Java interfaces, emphasizing the use of adjectives for capability interfaces and nouns for polymorphic interfaces. It provides a practical example and warns against patterns like IUser and UserImpl for code clarity. Adhering to these conventions enhances code readability and maintainability.
Understanding Kafka Topics and Partitions
Filed under Spring
Discover the power of partitions in Kafka topics and learn how to consume messages from partitioned topics using Spring Boot.