https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
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
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
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
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 Linen
server
  • o

    orangy

    02/04/2018, 10:03 AM
    #ktor javalin #http4k are Kotlin-driven microframeworks if you need a small web server, API, REST, etc. They are mostly adhering to https://12factor.net/ though might need some discipline in using. Spring is indeed an ultimate hammer, but it’s heavy, starts slow, and not as performant at scale as others. See https://www.techempower.com/benchmarks/previews/round15/ for some benchmarks.
    👍 3
    n
    2 replies · 2 participants
  • d

    dave

    02/04/2018, 11:30 AM
    @anderson.faro typically if you’re doing 12 factor with a microframework, you might also need separate libs for: 1. converting runtime ENV variables to system config - see cfg4k, configur8, konfig etc 2. Performance/metrics implementation - lots of options depending on your needs - (e.g http4k uses a plugin model for micrometer which then backs onto lots of other systems) 3. Events/logging implementation - once again, lots of options - but the core ideal is to use biz events instead of random logging and then plug that into a reporter backend 4. Not strictly required, but we find that a distributed tracing option is invaluable. Zipkin/opentracing etc. 5. Templating - if you’re doing web. All these should be simple to plugin in your chosen stack without requiring a dependency tree containing 200 different JAR files 😀
    ➕ 2
    a
    1 reply · 2 participants
  • k

    kenkyee

    02/04/2018, 12:10 PM
    And 6. OAuth or JWT.... some sort of authentication handling with role support for your resources.
    d
    1 reply · 2 participants
  • p

    preston

    02/06/2018, 1:50 AM
    Hey All - We are trying to decide if we want to try to do our core dev in Kotlin instead of Java and would love to chat with someone (via voice by preference) who has lead a team that built and deployed Kotlin services in a production environment where those services are a core part of your company (not just small, side projects but literally your product would not function/be successful without them). Would like to understand pros and cons of the choice, biggest issues the team faced etc. Based in San Francisco, CA but can work with your timezone.
    d
    s
    +1
    3 replies · 4 participants
  • c

    cedric

    02/28/2018, 1:58 AM
    heroku appears to start at $8 a month for db access
    a
    1 reply · 2 participants
  • o

    orangy

    02/28/2018, 5:34 AM
    https://12factor.net/ for more info Heroku even has a GitHub button to deploy right from the page 🙂 Like here https://github.com/JetBrains/kotlinconf-app/ with #ktor of course 😉
    d
    1 reply · 2 participants
  • d

    dave

    02/28/2018, 6:24 AM
    @dave08 I was in a meeting with docker last week and can confirm that docker EE now has both kubebetes implementation and a trusted image registry built right in that does image security scanning. Looks pretty sweet, but probably not cheap at scale. Interestingly, I think they use docker swarm under the hood to manage the node scaling of the actual k8s nodes (as opposed to workload scaling). Also, the latest edge version of docker CE for Mac has k8s built in, although you do need high Sierra to make it work - no more minikube required. (Disclosure: I haven't used it yet)
    d
    1 reply · 2 participants
  • m

    m

    02/28/2018, 6:30 PM
    is there a de facto web framework for kotlin?
    b
    f
    +4
    17 replies · 7 participants
  • m

    m

    02/28/2018, 7:49 PM
    do you have any examples of these startups that we can see now?
    a
    2 replies · 2 participants
  • m

    m

    02/28/2018, 10:42 PM
    dropwizard seems to be a glue, not backed by a big company. why do people choose it over spring?
    a
    d
    2 replies · 3 participants
  • m

    m

    03/01/2018, 2:59 AM
    wouldn't it make a difference if the library/framework is written in kotlin itself, like spring boot 2.?
    f
    2 replies · 2 participants
  • m

    m

    03/01/2018, 3:22 AM
    I thought it does not work great judging by google search.
    g
    3 replies · 2 participants
  • m

    m

    03/01/2018, 3:23 AM
    there is no up to date example/starter project.
    g
    2 replies · 2 participants
  • m

    m

    03/01/2018, 4:10 AM
    is grpc in java a framework, as in a framework comparable with spring?
    g
    2 replies · 2 participants
  • m

    m

    03/01/2018, 4:11 AM
    it seems to be limited to rpc only, and not opinionated about data layer, authentication etc.
    g
    1 reply · 2 participants
  • c

    cedric

    03/01/2018, 4:37 AM
    @m I'm putting together a starting app DropWizard + Postgres + Heroku to see how it feels
    💯 1
    f
    2 replies · 2 participants
  • c

    cedric

    03/01/2018, 7:36 PM
    Not getting a lot of luck with heroku so far, the deploy process dies out of memory while gradle downloads its dependencies. Not sure this can be done on the free option.
    o
    c
    7 replies · 3 participants
  • c

    codefinger

    03/01/2018, 8:39 PM
    @cedric feel free to ping me here if you run into any other stuff (or have suggestions for how we can make it a better experience)
    g
    d
    4 replies · 3 participants
  • o

    orangy

    03/02/2018, 5:57 PM
    I wonder how it relates to #server ?
    s
    1 reply · 2 participants
  • o

    orangy

    03/03/2018, 1:33 PM
    Anyone has specific use cases, when there can be multiple (by “and”, by “or”) authentication providers for a single endpoint?
    k
    1 reply · 2 participants
  • g

    George

    03/05/2018, 10:13 AM
    Hello, guys. Can you please checkout a stackoverflow post and give some answers regarding what I posted there? https://stackoverflow.com/questions/49033548/kotlin-framework-suggestions-for-developing-a-server-client-application?noredirect=1#comment85071925_49033548
    d
    1 reply · 2 participants
  • c

    Chih

    03/07/2018, 1:18 PM
    Hello guys, I'm not sure if this is the right channel for my question but, could anyone suggest any lib for parsing XML to Data class? Thanks a lot!
    o
    e
    +1
    4 replies · 4 participants
  • d

    dave08

    03/07/2018, 4:09 PM
    If anybody was looking for an async postgres library, I just found this: https://github.com/vietj/reactive-pg-client (J. Viet is the head of the Vert.x team), I just didn't try it yet, but it looks promising... if it's based on the Vert.x version it looks stable (I have production code on the Vert.x version). It even has Kotlin docs https://www.julienviet.com/reactive-pg-client/guide/kotlin/index.html
    o
    c
    +3
    37 replies · 6 participants
  • m

    muralimohan962

    03/10/2018, 10:45 AM
    Am getting noclassdeffound error while writing servlets in kotlin. Using tomcat on Intellij. Any help is appreciated.
    g
    2 replies · 2 participants
  • x

    Xyu

    03/12/2018, 4:12 PM
    Hello guys, could you help to give me some suggestion on using JPA with Kotlin? I was trying Hibernate when I realized it uses lazy-loading which requires the entity to be open. I am getting “Getters of lazy classes cannot be final” from the log. Should I switch from “data class” to “open class” and then implement the standard JAVA way, or it is better to use a different ORM like Exposed?
    g
    g
    3 replies · 3 participants
  • z

    zjor

    03/12/2018, 9:21 PM
    Hi! I'm starting with kotlin+exposed, how does the Database object got passed to transaction {} method?
    Database.connect("jdbc:<postgresql://localhost:5432/testdb>", driver = "org.postgresql.Driver", user = "..", password = "...")
        transaction {
    and which is the common approach to initialise Database, so I don't create it in each service method? Thanks in advance
    d
    2 replies · 2 participants
  • k

    kenkyee

    03/20/2018, 1:42 PM
    Thanks @dave...putting together a comparison of Kotlin for server backends for a local Kotlin meetup. Would like something more realistic (w/ login/DB support) than ToDoMVC. I swear someone did something like todobackend w/ Kotlin frameworks or put together a Kotlin framework feature list in this channel at some point last year, but I can't find it 😛
    t
    3 replies · 2 participants
  • w

    wakingrufus

    03/20/2018, 4:38 PM
    interesting to see (in the techempower link) that ktor beats grizzly+jersey, which is my stack of choice in java
    o
    1 reply · 2 participants
  • k

    kenkyee

    03/20/2018, 6:53 PM
    add @JvmOverloads for the constructor? though kotlin-jpa sounds like it should have done something for it...
    x
    1 reply · 2 participants
  • j

    jw

    03/23/2018, 7:24 PM
    8 is probably safest since it's an LTS release
    👆 9
    n
    1 reply · 2 participants
Powered by Linen
Title
j

jw

03/23/2018, 7:24 PM
8 is probably safest since it's an LTS release
👆 9
n

nfrankel

04/01/2018, 9:40 PM
who cares about safe? aren’t we developers?
View count: 1