This chapter covers:
- Bootstrapping a cloud native project
- Using an embedded web server
- Building a RESTful application
- Testing a RESTful application
- Automating build and tests with a CI pipeline
In the previous chapter, you familiarized yourself with some basic development principles to build a cloud native app. You also had a first hands-on experience creating a minimal Spring Boot application that you run from Gradle. Then, you turned it into a Docker container, and you finally deployed it to a local Kubernetes cluster. Now, I’ll slow down a bit and dive deeper into cloud native development, guiding you step by step.
You’ll begin your cloud native journey with RESTful services. Cloud native applications, as discussed in chapter 1, are distributed systems. The way components of such a system communicate with each other is of great interest, since it’s the system as a whole that provides value to users. In this chapter, you’ll work with the most used interaction that is based on REST APIs. Many components of a cloud native system are likely to expose an API to provide services to several clients. REST (Representational State Transfer) is the most widely adopted architectural style for web applications to integrate with each other.