Now that we've explored what microservices are, and how we can use Kotlin to develop these services using several different frameworks, we're going to build our own simple service with Kotlin. We'll use Ktor to develop a simple service using Kotlin, and see how easy it can be to deploy and use that service locally.
Deploying your first Kotlin microservice
Creating a Ktor project
To create a Ktor project, perform the following steps:
- First, open IntelliJ and select New Project, as follows:
- Next, in the Client section, select Jetty HttpClient Engine and then click Next:
- Now, go ahead and set your groupId, artifactId, and versionId to be whatever you want and select Next.
- Choose where you would like your...