Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Building asynchronous API with Ktor & Kotlin

Building asynchronous API with Ktor & Kotlin

This was a slide that I use at #devfest Makurdi 2021, where I covered in practice the creation of an asynchronous API in a straightforward way, using Kotlin and Ktor.

Manuel Ernesto

December 04, 2021
Tweet

More Decks by Manuel Ernesto

Other Decks in Programming

Transcript

  1. Building asynchronous API with Ktor & Kotlin Manuel Ernesto Software

    Engineer, BMA
  2. Ktor 🤔

  3. Ktor Lightweight and flexible framework built from scratch using Kotlin

    and Coroutine, which allows us to easily build asynchronous client and server applications.
  4. Ktor Lightweight and flexible framework built from scratch using Kotlin

    and Coroutine, which allows us to easily build asynchronous client and server applications.
  5. Ktor Lightweight and flexible framework built from scratch using Kotlin

    and Coroutine, which allows us to easily build asynchronous client and server applications.
  6. Ktor Lightweight and flexible framework built from scratch using Kotlin

    and Coroutine, which allows us to easily build asynchronous client and server applications.
  7. Ktor Lightweight and flexible framework built from scratch using Kotlin

    and Coroutine, which allows us to easily build asynchronous client and server applications.
  8. Application Ktor

  9. Application Tomcat Ktor

  10. Application Tomcat Jetty Ktor

  11. Application Tomcat Jetty Netty (default) Ktor

  12. Application Tomcat Routing Jetty Netty (default) Ktor

  13. Application Tomcat Routing Serialization Jetty Netty (default) Ktor

  14. Application Tomcat Routing Serialization Authentication Jetty Netty (default) Ktor

  15. Application Tomcat Routing Serialization Authentication Jetty Netty (default) Ktor Exposed

  16. Tools • intellij idea

  17. • intellij idea https://start.ktor.io Setup

  18. • intellij idea https://start.ktor.io Setup

  19. None
  20. None
  21. None
  22. None
  23. None
  24. None
  25. None
  26. None
  27. None
  28. None
  29. None
  30. None
  31. None
  32. None
  33. None
  34. None
  35. None
  36. None
  37. None
  38. Q&A󰚏

  39. Resources 1. https://ktor.io 2. https://kotlinlang.org 3. https://github.com/manuelernesto/ktor-movie-demo 4. https://youtube.com/manuelernesto

  40. Thanks 󰚢 Manuel Ernesto @manuelernest0