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

The practical guide to build async services with Kotlin, Coroutines and Spring Boot

The practical guide to build async services with Kotlin, Coroutines and Spring Boot

This was a slide that I use at Online Java Summit 2023, where I covered the practical guide to build async services with Kotlin, Coroutines and Spring Boot

Manuel Ernesto

February 17, 2023
Tweet

More Decks by Manuel Ernesto

Other Decks in Programming

Transcript

  1. The practical guide to build async
    services with Kotlin, Coroutines and
    Spring Boot
    @manuelernest0

    View full-size slide

  2. 󰢷 Manuel Ernesto | @manuelernest0
    󰞅 Dev Lead @ Standard Bank Angola
    📝 Blogger writer
    󰞇 Loves teaching, mentoring and sharing
    knowledge

    View full-size slide

  3. 🤔 Spring Boot

    View full-size slide

  4. ● Framework for Java and Kotlin
    🤔 Spring Boot

    View full-size slide

  5. ● Framework for Java and Kotlin
    ● Lot of tools
    🤔 Spring Boot

    View full-size slide

  6. ● Framework for Java and Kotlin
    ● Lot of tools
    ● Lot of features
    🤔 Spring Boot

    View full-size slide

  7. ● Framework for Java and Kotlin
    ● Lot of tools
    ● Lot of features
    ● Faster and easier
    🤔 Spring Boot

    View full-size slide

  8. 💭 Kotlin Coroutines

    View full-size slide

  9. ● Lightweight
    💭 Kotlin Coroutines

    View full-size slide

  10. ● Lightweight
    ● Sequential
    💭 Kotlin Coroutines

    View full-size slide

  11. ● Lightweight
    ● Sequential
    ● Readable manner
    💭 Kotlin Coroutines

    View full-size slide

  12. 🤔 Suspend function

    View full-size slide

  13. ● Special type of function
    🤔 Suspend function

    View full-size slide

  14. ● Special type of function
    ● Paused and resumed
    🤔 Suspend function

    View full-size slide

  15. ● Special type of function
    ● Paused and resumed
    ● Readable manner
    🤔 Suspend function

    View full-size slide

  16. ● Stream of data
    🧐 Flow

    View full-size slide

  17. ● Stream of data
    ● Send multiple values
    🧐 Flow

    View full-size slide

  18. https://start.spring.io/

    View full-size slide

  19. application.properties

    View full-size slide

  20. CoroutineCrudRepository

    View full-size slide

  21. 💻 Code
    https://github.com/manuelernesto/coroutines-and-Spring-Boot-demo
    📜 Slides
    https://speakerdeck.com/manuelernest0/the-practical-guide-to-build-async-services-with-ko
    tlin-coroutines-and-spring-boot
    📝 Medium
    https://manuelernest0.medium.com/
    🍿 YouTube
    https://www.youtube.com/@manuelernesto
    Materials

    View full-size slide