Concurrent Microservices with Ktor
In the previous chapter, we explored practical applications of the Arrow framework through some concrete examples, but we didn’t put a complete application together. This chapter will apply the skills we’ve acquired so far by building a complete microservice. We aim for this microservice to be reactive and to mirror real-life scenarios. To achieve this, we’ll employ the Ktor framework, whose benefits we’ll enumerate in this chapter’s first section.
In this chapter, we will cover the following topics:
- Getting started with Ktor
- Routing requests
- Connecting to a database
- Configuration management in Ktor
- CRUD operations on entities
- Testing CRUD operations
- Organizing routes in Ktor
- Achieving concurrency in Ktor
By the end of this chapter, you’ll have developed a Kotlin-based microservice that is thoroughly tested, as well as capable of reading data...