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

Microservices with Spring Boot and Spring Cloud - Second Edition

by Magnus Larsson
July 2021
Beginner to intermediate content levelBeginner to intermediate
774 pages
16h 47m
English
Packt Publishing
Content preview from Microservices with Spring Boot and Spring Cloud - Second Edition

23

Native Compiled 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 Native and GraalVM projects and the GraalVM native-image compiler and learn how to use them.

We will cover the following topics:

  • When to native compile Java source code
  • Introducing the Spring Native and GraalVM projects
  • Compiling source code to a native image
  • Testing with Docker Compose
  • Testing with Kubernetes

    At the time of writing, the Spring Native project only has beta status and is not ready for production ...

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

Hands-On Microservices with Spring Boot and Spring Cloud

Hands-On Microservices with Spring Boot and Spring Cloud

Magnus Larsson

Publisher Resources

ISBN: 9781801072977Supplemental Content