This is the repository for the LinkedIn Learning course Performance Tuning in Spring Apps. The full course is available from LinkedIn Learning.
Resilient and reliable application performance is an essential aspect of every successful enterprise-scale application. Unfortunately, it can be quite challenging to deliver well-considered performance objectives and results. In this course, instructor Kathy Flint teaches Java professionals working with Spring apps how to address the multi-faceted aspects of performance engineering to deliver high-performing applications that respond to business needs. First, Kathy makes sure you understand Spring application performance. Then she shows you how to configure and use the Spring Actuator, as well as how to customize Spring performance logging. Kathy explains several common Spring performance challenges and what you can do about them. She goes over how to compile a performance profile and offers a few key practices and tools that a Spring developer can adopt in any situation. Kathy finishes up with ways you can discuss and demonstrate performance goals and metrics.
- To use these exercise files, you must have the following installed:
- Java 8 or higher
- Maven
- Clone this repository into your local machine using the terminal (Mac), CMD (Windows), or a GUI tool like SourceTree.
- From IDEA Welcome screen, select Open or Import
- Choose the root directory of your newly cloned repository:
/performance-spring-3158745
- Within IntelliJ, make sure your Project SDK is set to Java 1.8 or higher. (File > Project Structure)
- From the Project View, context-click on the file
demo-client/pom.xml
- Select + Add as Maven project. This will cause project dependencies to download from the internet.
- Context-click on the file
demo-client/src/main/java/com.lil.springperformance.DemoClientApplication.java
- Select Run
- Open the demo-client application in your browser at
http://localhost:9091
- From the Project View, context-click on the file
demo-api/pom.xml
- Select + Add as Maven project.
- Context-click on the file
demo-api/src/main/java/com.lil.springperformance.DemoApiApplication.java
- Select Run
- Open the demo-api application in your browser at
http://localhost:9092
- In your terminal, navigate to either
/performance-spring-3158745/demo-client
or/demo-api
- Execute
mvn clean package
- Execute
mvn spring-boot:run
- Open the app in your browser using the localhost address shown in the startup console log messages.
Kathy Flint
Software Engineer and Application Architect
Check out my other courses on LinkedIn Learning.