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

Building asynchronous API with Ktor & Kotlin - Android Worldwide

Building asynchronous API with Ktor & Kotlin - Android Worldwide

This was a slide that I use at Android Worldwide in 25/10/2022, where I covered in practice the creation of an asynchronous API in a straightforward way, using Kotlin and Ktor.

Manuel Ernesto

October 25, 2022
Tweet

More Decks by Manuel Ernesto

Other Decks in Programming

Transcript

  1. Building Asynchronous API with Ktor & Kotlin Manuel Ernesto @manuelernest0

  2. What is Ktor 🤔

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

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

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

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

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

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

  9. Ktor Application Tomcat

  10. Ktor Application Tomcat Jetty

  11. Ktor Application Tomcat Jetty Netty(default)

  12. Ktor Application Tomcat Jetty Netty(default) Routing

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

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

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

  16. Setup 🛠

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

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

  19. Code 󰝺

  20. None
  21. None
  22. None
  23. None
  24. None
  25. None
  26. Repository

  27. Service

  28. None
  29. None
  30. None
  31. None
  32. None
  33. None
  34. None
  35. None
  36. None
  37. None
  38. None
  39. None
  40. None
  41. None
  42. Useful Frameworks/Lib 󰝺 Database: https://github.com/JetBrains/Exposed DI: https://insert-koin.io/ https://kosi-libs.org/kodein-di/7.12.0/index.html

  43. Resources 󰝺 Code: https://github.com/manuelernesto/ktor-android-worldwide-demo Ktor: https://ktor.io/ Kotlin: https://kotlinlang.org/ IntelliJ IDEA:

    https://www.jetbrains.com/idea/ Ktor start: https://start.ktor.io/#/settings
  44. Q&A 󰚏

  45. Thanks 󰚢 Manuel Ernesto @manuelernest0