Kotlin and Spring Boot A match made in heaven @nicolas_frankel Me, - - PowerPoint PPT Presentation

kotlin and spring boot
SMART_READER_LITE
LIVE PREVIEW

Kotlin and Spring Boot A match made in heaven @nicolas_frankel Me, - - PowerPoint PPT Presentation

Kotlin and Spring Boot A match made in heaven @nicolas_frankel Me, myself and I Kotlin fan Spring Boot lover @nicolas_frankel European alternative to the big cloud-computing players Privacy-minded Great support


slide-1
SLIDE 1

@nicolas_frankel

Kotlin and Spring Boot

A match made in heaven

slide-2
SLIDE 2

@nicolas_frankel

Me, myself and I

  • Kotlin fan
  • Spring Boot lover
slide-3
SLIDE 3

@nicolas_frankel

European alternative to the “big” cloud-computing players

  • Privacy-minded
  • Great support
slide-4
SLIDE 4

@nicolas_frankel

Spring Boot

  • Open Source
  • Pivotal
  • Spring Framework
  • Convention over

configuration

slide-5
SLIDE 5

@nicolas_frankel

The issue

  • Magic

○ Via annotations

  • The solution?

○ Functional configuration

slide-6
SLIDE 6

@nicolas_frankel

Time for DEMO

slide-7
SLIDE 7

@nicolas_frankel

Takeaways

  • Reactive all the way down
  • Controller to routes

○ Logic in handlers

  • Kotlin Beans DSL
  • Kotlin Routes DSL
slide-8
SLIDE 8

@nicolas_frankel

Going further

  • Spring Fu

○ Kofu ○ Jafu

  • Experimental!
slide-9
SLIDE 9

@nicolas_frankel

Kofu configuration is currently developed in Spring Fu, an incubator intended to ultimately contribute features related to Kotlin and functional configuration to Spring Framework, Boot and Data.

D i r e c t f r

  • m

S p r i n g O n e !

Kofu configuration for Spring Boot

slide-10
SLIDE 10

@nicolas_frankel

Kofu configuration for Spring Boot

  • Explicit configuration via a Kotlin DSL
  • Based on Spring Boot infrastructure used in a functional way
  • No feature enabled based on classpath detection
  • Both declarative and programmatic
  • Faster startup and lower memory consumption
  • Minimal reflection & annotations usage
  • Pure lambdas, no CGLIB proxy

D i r e c t f r

  • m

S p r i n g O n e !

slide-11
SLIDE 11

@nicolas_frankel

slide-12
SLIDE 12

@nicolas_frankel

Thanks!

  • https://blog.frankel.ch/
  • @nicolas_frankel
  • https://git.io/fN3Qv