Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

🤔 Spring Boot

Slide 4

Slide 4 text

● Framework for Java and Kotlin 🤔 Spring Boot

Slide 5

Slide 5 text

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

Slide 6

Slide 6 text

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

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

💭 Kotlin Coroutines

Slide 9

Slide 9 text

● Lightweight 💭 Kotlin Coroutines

Slide 10

Slide 10 text

● Lightweight ● Sequential 💭 Kotlin Coroutines

Slide 11

Slide 11 text

● Lightweight ● Sequential ● Readable manner 💭 Kotlin Coroutines

Slide 12

Slide 12 text

🤔 Suspend function

Slide 13

Slide 13 text

● Special type of function 🤔 Suspend function

Slide 14

Slide 14 text

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

Slide 15

Slide 15 text

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

Slide 16

Slide 16 text

🧐 Flow

Slide 17

Slide 17 text

● Stream of data 🧐 Flow

Slide 18

Slide 18 text

● Stream of data ● Send multiple values 🧐 Flow

Slide 19

Slide 19 text

󰞅 Demo

Slide 20

Slide 20 text

https://start.spring.io/

Slide 21

Slide 21 text

application.properties

Slide 22

Slide 22 text

Data class

Slide 23

Slide 23 text

Repository

Slide 24

Slide 24 text

CoroutineCrudRepository

Slide 25

Slide 25 text

Service

Slide 26

Slide 26 text

Service

Slide 27

Slide 27 text

Service

Slide 28

Slide 28 text

Service

Slide 29

Slide 29 text

Service

Slide 30

Slide 30 text

Service

Slide 31

Slide 31 text

Controller

Slide 32

Slide 32 text

Controller

Slide 33

Slide 33 text

💻 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

Slide 34

Slide 34 text

Thanks 󰚢