~/talk

Server as a Function in Kotlin

Talkat KotlinConf 2018 · 2018-10-03..10-05· [kotlin, serverless]
links:none on file
links:none on file
slides:none on file

A major scientific publisher site is fully rewritten to pure Kotlin serving tens of millions of requests per day and the team open-sources http4k, a tiny no-deps microservice toolkit built around the service as a function idea (handler: Request -> Response, plus composable filters). It ships routers, multiple backends (Undertow/Jetty/Apache), AWS Lambda support, a 6 MB GraalVM native binary, a lenses system for marshalling and automatic 400s, consumer-driven contract fakes and a chaos module; TechEmpower places it ~16–17th for Kotlin performance.

AI-written summary · about

  1. 0:00Intro
  2. 2:38Techrospective
  3. 6:05Server as a Function
  4. 9:11Concept: Service HttpHandler
  5. 10:15Concept: Filter
  6. 11:38(New) Concept: Router
  7. 12:45Serving HTTP
  8. 13:32Consuming HTTP
  9. 14:14Extreme Testability
  10. 15:38Typesafe HTTP Contracts
  11. 17:39Concept: Lens
  12. 18:42Lens example
  13. 20:54Lens application
  14. 23:19The Layer Cake
  15. 27:29Standardised Server & Clients
  16. 28:44Fake Your Dependencies!
  17. 30:10Application Testing
  18. 31:48Consumer Driven Contracts
  19. 34:06Performance
  20. 36:09What did we gain?
  21. 38:51all this in 70 lines of Kotlin!
  22. 40:18serverless4k
  23. 41:46native4k
  24. 43:05ecosystem
  25. 45:58http4k nanoservices
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.