Writing backend APIs in a functional programming style by James Lamine

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ส.ค. 2024
  • Recording brought to you by American Express. 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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 3

  • @andromadusnaruto1544
    @andromadusnaruto1544 ปีที่แล้ว

    Quite informative and eye-opening. Great talk @James Lamine . I learnt a lot... 👍🏾

  • @rassidm
    @rassidm หลายเดือนก่อน

    Hi james..where can we find the source code of the presentation examples?

  • @kubazalas
    @kubazalas 11 หลายเดือนก่อน

    Since your getResponse() calls awaitResult(), doesn't it make it impure and I/O bound?