
Java Dev Tries Kotlin and Ktor for the First Time
Check out Ktor: https://kotl.in/try-ktor-3
I've never used Kotlin or Ktor until today, so I decided to build a reverse proxy for docker to learn all about it. I'll be able to utilize Ktor's coroutines for handling async requests, built-in HTTP client for forwarding traffic, routing to dynamically proxy requests to different backend services, and things like that. But first, I wanted to get acquainted with Kotlin, so I did Kotlin Koans, which is “one of the most popular and most effective ways to get into Kotlin for people who already know Java.” And that it was.
This was a fun project to build, so I hope you enjoy the video as much as I enjoyed making it!
0:00 I'm building a reverse proxy for docker
1:50 Kotlin Koans
2:52 About Ktor, sponsored by JetBrains
3:56 Finish Koans
8:00 Ktor project setup for reverse proxy
9:32 What's a reverse proxy?
11:20 HttpClient
13:41 Async handling
17:15 try-catch block
19:51 getDockerServices()
21:30 Block and unblock
24:26 Persistence... with a txt file lol
25:11 Let's see if it works
26:42 Thanks for watching!!
This video is sponsored by JetBrains, the creators of Kotlin and IntelliJ IDEA.
If you're a developer, sign up to my free newsletter Dev Notes ? https://www.devnotesdaily.com/
If you're a student, checkout my Notion template Studious: https://notionstudent.com
Don't know why you'd want to follow me on other socials. I don't even post. But here you go.
?? GitHub: https://github.com/forrestknight
? Twitter: https://www.twitter.com/forrestpknight
? LinkedIn: https://www.linkedin.com/in/forrestpknight
? Instagram: https://www.instagram.com/forrestpknight
I've never used Kotlin or Ktor until today, so I decided to build a reverse proxy for docker to learn all about it. I'll be able to utilize Ktor's coroutines for handling async requests, built-in HTTP client for forwarding traffic, routing to dynamically proxy requests to different backend services, and things like that. But first, I wanted to get acquainted with Kotlin, so I did Kotlin Koans, which is “one of the most popular and most effective ways to get into Kotlin for people who already know Java.” And that it was.
This was a fun project to build, so I hope you enjoy the video as much as I enjoyed making it!
0:00 I'm building a reverse proxy for docker
1:50 Kotlin Koans
2:52 About Ktor, sponsored by JetBrains
3:56 Finish Koans
8:00 Ktor project setup for reverse proxy
9:32 What's a reverse proxy?
11:20 HttpClient
13:41 Async handling
17:15 try-catch block
19:51 getDockerServices()
21:30 Block and unblock
24:26 Persistence... with a txt file lol
25:11 Let's see if it works
26:42 Thanks for watching!!
This video is sponsored by JetBrains, the creators of Kotlin and IntelliJ IDEA.
If you're a developer, sign up to my free newsletter Dev Notes ? https://www.devnotesdaily.com/
If you're a student, checkout my Notion template Studious: https://notionstudent.com
Don't know why you'd want to follow me on other socials. I don't even post. But here you go.
?? GitHub: https://github.com/forrestknight
? Twitter: https://www.twitter.com/forrestpknight
? LinkedIn: https://www.linkedin.com/in/forrestpknight
? Instagram: https://www.instagram.com/forrestpknight
ForrestKnight
I document and share my experiences on topics including computer science & software engineering. I'm a full-time Software Engineer and a part-time YouTuber. My less nerdy activities include fishing, hunting, surfing, and snowboarding. I'm just here to hav...