Better Programming

Advice for programmers.

Follow publication

You're unable to read via this Friend Link since it's expired. Learn more

Member-only story

Spring Native: The Wings That Make Spring Boot Fly

Wenqi Glantz
Better Programming
Published in
11 min readApr 27, 2022

How to integrate Spring Native into Spring Boot microservices
Image background by finix8 from Pixabay

Despite its massive popularity in web and microservices development, Spring Boot has its limitations. Most noticeably, long startup time, and high memory consumption. The root cause lies in how Spring relies on reflection to inspect classes, interfaces, fields, and methods at runtime. Is it possible to have the same productivity without the use of reflection at runtime?

Yes! Spring Native has the answer!

We are going to explore in this story how to integrate Spring Native into a Spring Boot microservice named customer-service, a simple CRUD application to manage customers. We are going to have two customer-service apps, one vanilla Spring Boot app named customer-service, the other, customer-service-native, a Spring Boot app with Spring Native baked in. We are going to take a close look at the performance boost Spring Native brings to Spring Boot.

Here’s a sneak peek of the startup time comparison between customer-service and customer-service-native.

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Wenqi Glantz
Wenqi Glantz

Written by Wenqi Glantz

Mom, wife, architect with a passion for technology and crafting quality products linkedin.com/in/wenqi-glantz-b5448a5a/ twitter.com/wenqi_glantz

Write a response