https://kotlinlang.org logo
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
benchmarks
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
confetti
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
lincheck
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by
Title
u

unnsse

01/16/2020, 8:13 PM
What are people's thoughts about ktor? https://ktor.io/ What are the standard libraries people use for backend dev using Kotlin, it just Spring Boot? If there some good Kotlin backend open source libs that people can point me to, that would be much appreciated! Happy programming!
👍 2
f

fred.deschenes

01/16/2020, 8:23 PM
Basically any framework that works in Java either works with Kotlin or has Kotlin specific stuff now (Dropwizard, Vert.x, Spring, etc), it really depends on what you need and what you might already be familiar with
j

jaguililla

01/16/2020, 8:49 PM
You can take an eye to https://hexagonkt.com if you want to try a "Kotlin native" toolkit. It is a small library in the http://sparkjava.com spirit. Disclaimer, I'm the maintainer
1
👍 1
j

jmillner_

01/16/2020, 9:55 PM
You could also take a look at https://micronaut.io/ it’s a relatively new framework but has some great Kotlin support so far and is continuing to grow! It also boasts some great start-up time and memory usage, along with some serverless & CLI support too
2
a

András Bubics

01/17/2020, 1:00 AM
I've got a ktor back-end in prod from some months ago . . . at the time, it felt a bit premature. I want to try it again later, though! Issues at the time: • missing some support for specific OAuth2 workflows • Jackson middleware hard to consistently use & configure • DSL is good for simple use cases, but a difficult split of concerns for composition • docs a bit hard to navigate for non-simple cases That said, it stayed completely out of the way, not trying to reach its tentacles in everywhere (contrast with Spring*). The docs were great for getting started, too.
Every other Kotlin API I've done in SpringBoot (usually not given a choice :P)
x

Xavier Hanin

01/17/2020, 7:12 AM
@unnsse At work we use different stacks depending on a set of factor (team language and framework proficiency, project size, customer requirements, …).
Spring Boot
is usually the choice that make customers confident (you take no risk by choosing Spring), and doesn’t imply too much change for a team of java developers. But is has not been designed with Kotlin in mind. We have used
ktor
for some small projects, its strong support for coroutines makes it very efficient, but I personnaly agree with Andràs on the issues. We have also used
http4k
when I was given the choice. This is my personnal favorite, due to its very elegant design, pure Kotlin, and a large set of features. Plus the authors and community are very responsive on the slack channel.
❤️ 1
👍 1
j

James Shiell

01/17/2020, 8:27 AM
👍 for
http4k
. Very happy with it, and slowly migrating a lot of older services to it. And you can shout at the authors in #http4k .
r

ribesg

01/17/2020, 10:26 AM
ktor ❤️
r

rrva

01/17/2020, 12:59 PM
For web/http server micro frameworks, I like jooby a lot. Well designed, has a broad set of modules and has a kotlin version of the routing DSL. There is a 1.x and a 2.x line, the 2.x is already maturing and has coroutine support as well. Much less complex and loaded with legacy than spring boot, so you can keep stuff much much leaner and its not as framework-y forcing you into any other choices regarding architecture. Not even dependency injection is mandatory in any way. https://jooby.io
1
e

Evan R.

01/17/2020, 3:18 PM
I like Ktor a lot, definitely feel like it could be used in all the same places where you’d normally use Node.js. There’s definitely a learning curve but once you wrap your head around the Ktor pipeline it’s super nice
But like others have said, there are other options that are more mature so you should consider them also
j

Joe

01/17/2020, 6:11 PM
we've been happy using dropwizard, had lots of java experience with it already. we wrap it with guice+hocon config in a somewhat opinionated way that you can look at here: https://github.com/trib3/leakycauldron/ and can look at an example service here: https://github.com/trib3/example-cauldron-service
u

unnsse

01/17/2020, 11:33 PM
Thank you guys, I will explore all of these soon, love the community support that Kotlin has.
r

Ray Eldath

01/20/2020, 2:15 PM
🎉also love http4k! its author is very nice. I once opened an issue for a stupid question about credentials lookup and security for route on route basis, he give me detailed explanations many times with an incredible small dely. but i have to say maybe the biggest problem is that the lack of community, like docs, and production experience. the official docs is about all practical docs you can googled, so if there're some cases that the official docs don't cover, it'll go for what I called somewhat _Slack-based programming_: I experienced this for kroto-plus, rho, and http4k, I'll say it's not very happy. But fortunately the developers of these libraries are all very, very kind, I think they love their project and are welcoming to questions. thanks them a lot.
a

apanek

01/21/2020, 2:58 PM
I know this thread is already some days old, but I’m putting my 2 cents in here anyway. 🙂 We’ve been using Sparkjava for a year or so now and recently switched to [Javalin](http://javalin.io/) for new APIs. We also use it for non-API services to expose liveness/readiness probes, metrics and the like. Small libraries/frameworks seem to work better for us using Kotlin. We haven’t had too great of an experience with Spring, though. 😕
v

vitaly

01/23/2020, 9:21 PM
Quarkus is another cool and modern web framework for building fast-started and low memory printed microservices. quarkus.io https://quarkus.io/guides/kotlin
n

napperley

01/27/2020, 7:15 PM
The fact that Quarkus requires using Maven ( https://quarkus.io/guides/kotlin#creating-the-maven-project ) will be a showstopper to many Kotliners that use Gradle. According to the 2018 Kotlin Census 80% of Kotliners use Gradle for Kotlin JVM based projects ( https://www.jetbrains.com/research/kotlin-census-2018/ ).
v

vitaly

01/27/2020, 7:29 PM
n

napperley

01/29/2020, 6:08 AM
Wasn't very obvious in the article since the key information is hidden deep down towards the middle of the article.