https://kotlinlang.org logo
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
vertx
  • o

    orangy

    03/13/2017, 5:05 PM
    Thinking out loud, can we somehow associate config with a dependency and automatically download and attach them?
    e
    • 2
    • 1
  • o

    orangy

    03/13/2017, 5:08 PM
    @sdeleuze you might be interested in IJ async stacks as well
    s
    • 2
    • 1
  • b

    bjuretic

    05/19/2017, 1:56 PM
    Hi guys, did anybody manage to solve the issue of generating Service Proxies for Vert.x with Gradle, using Kotlin only (i.e. no Java interfaces)?
    j
    • 2
    • 6
  • j

    julienviet

    06/19/2017, 7:13 PM
    I think you can run GSK scripts as far as I remember
    n
    • 2
    • 6
  • n

    napperley

    08/26/2017, 2:29 AM
    To think the Kotlin example is bad. Just wait until you look at this Kotlin example with callback hell amplified, aaaah! https://github.com/vert-x3/vertx-examples/blob/master/jdbc-examples/src/main/kotlin/io/vertx/example/jdbc/streaming/JDBCExample.kt 😱
    e
    j
    j
    • 4
    • 5
  • j

    julienviet

    09/04/2017, 7:40 AM
    @napperley any feedback to provide ? I’m aiming to merge this into master this week
    n
    • 2
    • 3
  • j

    jponge

    09/07/2017, 6:36 PM
    For Gradle users, here is a Vert.x plugin: https://github.com/jponge/vertx-gradle-plugin
    👍 2
    🎉 2
    n
    • 2
    • 2
  • d

    dave08

    09/15/2017, 10:30 AM
    Arent coroutines experimental? Does anyone use them in production without problems, im also making an api in vertx, but im currently using rxjava...
    e
    n
    • 3
    • 84
  • n

    napperley

    09/24/2017, 10:07 PM
    Julien - Yes for development. Already using hot reload. Copying over the JS file(s) (transpiled via the kotlinjs transpiler) to the server does trigger a hot reload. Thought that hot reload would reset the cache, which doesn't appear to be the case. Tried disabling the server cache:
    val publicHandler = StaticHandler.create("public").apply {
                setCachingEnabled(false)
            }
    
            router.route("/public/*").handler(publicHandler)
    , unfortunately that doesn't make a difference 😦 so the Vert.x Google group is the best hope for a resolution 🐰.
    o
    • 2
    • 4
  • j

    julienviet

    10/10/2017, 5:57 AM
    can you provide a reproducer with web client ?
    n
    • 2
    • 2
  • d

    dave08

    10/14/2017, 8:14 PM
    Vert.x is great, but one thing that os missing is cache that expires older entries and can be reset... Or maybe I missed something?
    j
    • 2
    • 33
  • d

    dave08

    10/15/2017, 10:36 AM
    @julienviet Is there any easier way to work with Buffer and strings than encoding turning into bytes sending size int then sending string? I'm sure that such a common use case can be automated...?
    j
    • 2
    • 10
  • f

    fstn

    10/15/2017, 1:30 PM
    Should I to keep a global reference to vertx object or use Vertx.vertx() every where?
    n
    • 2
    • 3
  • j

    julienviet

    10/16/2017, 6:35 AM
    becuase the doc in the current vertx-lang-kotlin repo is hard to get on the web-site after release
    n
    • 2
    • 1
  • f

    fstn

    10/19/2017, 7:05 AM
    @dave08 this is what I’m doing :
    object JsonObjectUtils{
         inline operator fun JsonObject.set(key: String, value: Any): Unit {
            this.put(key,value)
        }
        inline operator fun <T> JsonObject.get(key: String): T {
            return this.getValue(key) as T
        }
        fun  JsonObject.getFlow(): JsonObject {
            return this.getJsonObject("flow")
        }
        fun  JsonObject.getFlowNodeId(): String {
            return this.getFlow().get("nodeId")
        }
        fun  JsonObject.setFlowNodeId(nodeId:String) {
            this.getFlow().put("nodeId",nodeId)
        }
        fun  JsonObject.getFlowName(): String {
            return this.getFlow().get("name")
        }
        fun  JsonObject.setFlowName(nodeId:String) {
            this.getFlow().put("name",nodeId)
        }
    }
    d
    • 2
    • 26
  • j

    julienviet

    10/21/2017, 9:12 AM
    the current kotlin as far as I remember is 1.1.51
    n
    • 2
    • 10
  • n

    noone

    11/10/2017, 1:42 AM
    How does vert.x compare to spring?
    n
    • 2
    • 3
  • d

    dave08

    11/19/2017, 8:46 PM
    @x80486 That's what I meant, I just wanted to have a way to avoid the overhead of deploying verticles, when swarm does that for me. I looked into other solutions, but it looks like the only one that's async is vert.x, except for ktor that's on it's way but still in beta... Microservices need to be small to be scaled and scheduled by docker swarm without wasting too much resources...
    x
    • 2
    • 7
  • j

    julienviet

    11/27/2017, 5:35 PM
    that's cool 🙂
    e
    • 2
    • 1
  • e

    eddy_wm

    11/29/2017, 4:52 PM
    I have set a route to serve uploaded image files
    router.get("/file-uploads/*").handler(StaticHandler.create())
    . Vert.X is failing to serve the files with this error message Resource not found, even though a correct image URL was provided.
    n
    • 2
    • 1
  • c

    chirag

    12/13/2017, 10:09 AM
    Hey @dave08 it would be appreciated if u can share your code, it would help me understanding stuff
    d
    • 2
    • 2
  • j

    julienviet

    12/18/2017, 7:04 AM
    https://blogs.oracle.com/java-platform-group/java-se-support-for-docker-cpu-and-memory-limits
    👍🏼 3
    d
    • 2
    • 1
  • d

    dave08

    12/31/2017, 2:18 PM
    I opened an issue, did I understand properly? https://github.com/ktorio/ktor/issues/286
    o
    • 2
    • 2
  • j

    julienviet

    01/03/2018, 7:10 PM
    @eddy_wm I would advise you to run it in your own thread and not in Vert.x executeBlocking, executeBlocking is designed for method that blocks a fair amount of time (like reading a file or doing an HTTP GET)
    n
    • 2
    • 1
  • j

    jponge

    01/08/2018, 10:17 AM
    BTW the
    vertx-gradle-plugin
    has no impact on that
    d
    • 2
    • 10
  • i

    iamsteveholmes

    01/26/2018, 5:17 PM
    Darn if I want older messages I have to pay. Are these slack messages being archived anywhere?
    t
    n
    j
    • 4
    • 9
  • i

    iamsteveholmes

    01/31/2018, 4:52 PM
    @asad.awadia Would this be any help to you? https://developers.redhat.com/promotions/building-reactive-microservices-in-java/
    a
    • 2
    • 1
  • s

    s1m0nw1

    02/12/2018, 8:54 PM
    Pushed an example project using vert.x 4.5 with coroutines. Maybe someone's interested https://github.com/s1monw1/VertxProjectsManagement/tree/master/src/main/kotlin/de/swirtz/kotlinvertx/rest
    d
    • 2
    • 1
  • a

    asad.awadia

    02/16/2018, 2:00 AM
    So the
    Thread.sleep
    isn't blocking its suspending the coroutine?
    d
    • 2
    • 5
  • o

    orangy

    02/22/2018, 4:30 PM
    I’d suggest using existing JDBC connection pool libraries, such as HikariCP. Unless vert.x has its own, I don’t know…
    n
    c
    • 3
    • 6
Powered by Linen
Title
o

orangy

02/22/2018, 4:30 PM
I’d suggest using existing JDBC connection pool libraries, such as HikariCP. Unless vert.x has its own, I don’t know…
n

napperley

02/23/2018, 10:54 PM
Vert.x has native libraries for MySQL, MongoDB, Redis, and Postgres but not for SQL Server.
c

chirag

02/24/2018, 3:17 PM
What should i use for SQL Server
my problem is Its connection keeps reset if it stays idle for sometime
o

orangy

02/24/2018, 3:21 PM
That’s normal behavior of any database. If connection is unused (and in many other cases), DB can easily close connection. You shouldn’t rely on connection being stable, it’s just against all odds in modern distributed world 🙂 Connection pools can solve it by maintaining configured number of connection, HikariCP is one of the best I know. I think you can easily find how to use it with vert.x
c

chirag

02/24/2018, 3:24 PM
Then how its should be handled in code ? HikariCP gives different connection properties
Can you please show me any Code snippet ,What practices to follow in production while connecting to DB through JDBC... This is specifically painful with SQL Server
View count: 4