Writing backend APIs in a functional programming style by James Lamine

Published: 04 May 2023
on channel: Kotlin by JetBrains
5,245
138

Recording brought to you by American Express. https://americanexpress.io/kotlin-jobs

This talk covers a pattern for writing backend APIs in a functional programming style, with a focus on separating business logic from I/O. I will showcase how Kotlin's structured concurrency features make separating business logic from I/O easier. By decoupling I/O and business logic, we can robustly handle errors while making it easy to modify our code in response to changing product requirements.

To illustrate these patterns, we'll walk through the code for a gRPC endpoint that calls three services using the functional-core, imperative-shell pattern. Then we'll build on that example by adding new product requirements to demonstrate how structured concurrency and lazy loading help us keep business logic and I/O separate.

Talk by: James Lamine

#functionalprogramming #KotlinConf


Watch video Writing backend APIs in a functional programming style by James Lamine online without registration, duration hours minute second in high quality. This video was added by user Kotlin by JetBrains 04 May 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 5,24 once and liked it 13 people.