Developing a Geospatial Webservice with Kotlin and Spring Boot
summary
Practical demo: a geospatial chat (OpenLayers front end) backed by Kotlin + Spring Boot, Postgres with PostGIS and JSONB metadata indexed for fast lookups, implemented without JPA using Exposed SQL DSL and Kotlin extensions that add a point column and a within operator to express spatial queries like PostGIS intersection queries. Updates push via server-sent events. Resulting fat jar is ~18 MB, starts under 3s and runs in very small heaps (Xmx ~32 MB); Kotlin 1.1 fixes annotation-array and final-class proxy frictions.
AI-written summary · about
chapters (16)
- 0:00Intro
- 1:34Limits of Java
- 3:14Kotlin Elegant and pragmatic language
- 4:52Use cases
- 12:16Optional and named parameters y
- 19:53Spring Boot + Kotlin
- 27:42Geospatial Messenger
- 32:26PostgreSQL example Geospatial SQL queries
- 36:48Repository interface
- 36:59Repository Implementation
- 38:53Kotlin extensions
- 40:22Configuration
- 41:59Build Gradle
- 43:55Deployment • Regular Spring Boot Runnable JAR
- 48:22Slack, forum ...
- 48:52What's next?
related talks
50mBootiful Kotlin
58mSpring and Kotlin: A Winning Combination
18mServer-Side Development with Kotlin
50mKotlin and Spring boot a pleasant experience and some rough edges
03h 13mKotlin 1.4 Online Event, Day 4: server-side Kotlin
44mSpring + Kotlin = Modern + Reactive + Productive
39mMobile Backends with Kotlin and Google Cloud
45mBootiful Kotlin
