11

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 ...

Get Kotlin Design Patterns and Best Practices - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.