Skip to Content
Microservices with Spring Boot 3 and Spring Cloud - Third Edition
book

Microservices with Spring Boot 3 and Spring Cloud - Third Edition

by Magnus Larsson
August 2023
Beginner to intermediate
706 pages
17h 34m
English
Packt Publishing
Content preview from Microservices with Spring Boot 3 and Spring Cloud - Third Edition

23

Native-Complied Java Microservices

In this chapter, we will learn how to compile the Java source code in our microservices into binary executable files, known as Native Images. A Native Image starts up significantly faster compared to using a Java VM and is also expected to consume less memory. We will be introduced to the Spring AOT engine introduced in Spring Framework 6 and the GraalVM project and its Native Image compiler, learning how to use them.

We will cover the following topics:

  • When to natively compile Java source code
  • Introducing the GraalVM project and Spring’s AOT engine
  • Handling problems with native compilation
  • Testing and compiling Native Images
  • Testing with Docker Compose
  • Testing with Kubernetes

Even though Spring Framework ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Master Microservices with Spring Boot and Spring Cloud

Master Microservices with Spring Boot and Spring Cloud

In28Minutes Official

Publisher Resources

ISBN: 9781805128694Supplemental Content