This chapter covers
- Comparing Spring and Quarkus / MicroProfile APIs
- Replacing Quarkus / MicroProfile APIs with Spring APIs
- How Quarkus implements Spring API compatibility
Spring is a popular Java microservices runtime with a large developer base that has invested a lot of time learning Spring APIs. By offering compatibility with commonly-used Spring APIs, Quarkus enables Spring developers to leverage that investment and to get started quickly. Spring developers can then benefit from Quarkus development features like live coding and production efficiencies like low memory usage and fast boot time. This chapter is intended for experienced Spring developers and will not cover Spring APIs in depth. The examples for this chapter update Chapters 3 and 7 examples to use Spring APIs where possible. By updating existing examples, two concepts will become apparent:
- Spring APIs can be used side-by-side with Quarkus and MicroProfile APIs
- Spring APIs and Quarkus / MicroProfile APIs have similar programming models
The next section gives a more in-depth overview of Quarkus' Spring APIs compatibility.
When adopting Quarkus, Spring developers can bring their existing API knowledge with them. The list of Quarkus Spring compatibility extensions is as follows: