Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Efraim
    @EfraimLA
    Now I understand
    Benjamin Berman
    @doctorpangloss
    hazelcast is very mature, but difficult to use
    Efraim
    @EfraimLA
    And what about infinispan?
    Benjamin Berman
    @doctorpangloss
    i did not try infinispan
    Efraim
    @EfraimLA
    Well, but with right configuration, would you keep using hazelcast? Or go for atomix?
    I notice that atomix has a member discovery, and some like eventbus
    Benjamin Berman
    @doctorpangloss
    how detailed do you want me to get :) ?
    Efraim
    @EfraimLA
    Haha yes yes so I'll give a try to Atomix
    Benjamin Berman
    @doctorpangloss
    you can see how i use atomix, in a production application with a lot of complex features, here: https://github.com/hiddenswitch/Spellsource-Server/blob/client3/net/src/main/java/com/hiddenswitch/spellsource/applications/Applications.java
    that's the entry point
    it is clustered
    Efraim
    @EfraimLA
    K, let me check
    Benjamin Berman
    @doctorpangloss
    this is what a test looks like, for my application, which is a game
    an integration test
    that proves that the clustering works
    you will want my customized atomix cluster manager, copied straight from this code, because i know how to make it perform fast, faster than hazelcast, whose default configuration also needs to be changed
    suffice it to say this stuff is really complicated
    i don't know who uses hazelcast with async servers in javaland
    i also needed more clustering features
    Efraim
    @EfraimLA
    Wow that looks good!
    So, the configuration is from a runner class, is there a way to configure with an archive or resource?
    Benjamin Berman
    @doctorpangloss
    i'm confident that is supported
    but i really wanted to avoid the XML properties file rabbit holes
    Benjamin Berman
    @doctorpangloss
    if you wanna run the test you'll need mongo
    but yeah you get it
    Efraim
    @EfraimLA
    K well is that I've a multimodule pom
    How could I instantiate it?
    Krzysztof Ziomek
    @kziomek
    @vietj Responding to your question about keep alive timeout. Some of our target servers are called very infrequently, i.e. 3 calls per hour. Target server is configured to close idle connections after 500s. Due to poor network, cost of creating SSL connection is extremely high in our case. Therefore we decided to keep connection alive in the pool by scheduling ping to target server every 6 minutes. Do you think connection pool could have similar mechanism inbuilt to prevent target server closing connection?
    Julien Viet
    @vietj
    @kziomek that's interesting, I think it is better you have your own external ping because how you will ping depend on your server
    i.e you could use an healthcheck endpoint to ping the server at
    do you also create such connections eagerly ?
    Abhishek S
    @asukhadi_gitlab
    has anyone used resilience4j bulkheads in vertx?
    Krzysztof Ziomek
    @kziomek
    @vietj Short answer is yes, in some cases, where network is very poor, we benefit from connection created eagerly and kept alive to reduce number of timeouts.
    Efraim
    @EfraimLA
    Hello
    Which tool do you recommend for advanced tests with containers and reactive extensions? JUnit 4, 5 or Vert.x test library?
    Julien Viet
    @vietj
    junit + vertx async library for testing
    also I recommend the library for runnning containers from java
    I don't remember the name
    but it's cool
    Pablo Gutierrez
    @gutmox
    Julien Viet
    @vietj
    yes testcontainers :-)
    Johannes Schüth
    @Jotschi
    Testcontainers is awesome. I use it for all my e2e tests that involve elasticsearch, keycloak or even my own application. I even build a testcontainer which builds the container from the classes of my workspace. That way I can directly run cluster tests of my own application in my IDE. Crazy but good stuff ;)
    Efraim
    @EfraimLA
    Wow very thanks, I'll use it 😀
    Jed Danner
    @jed204
    I've got a weird problem that I can't seem to get past. I've got several projects that have the same setup and Vert.x jar files (3.6.3), but this one will not return anything to the HTTP client if it's >= 128 bytes.
    response.setStatusCode(200).end(responseBody.substring(0, 128)); hangs on the client. response.setStatusCode(200).end(responseBody.substring(0, 127)); will send. Any idea? The environment is the same, the router setup is the same, the call is the same. The data returned doesn't seem to make a difference other than the size of it.
    The end() method in the HttpServerResponseImpl.class appears to complete when I step through it. (it gets past the this.conn.responseComplete(); method call)
    Jed Danner
    @jed204
    It is a legit cursed project. I copied the pom.xml, renamed the module and re-imported and everything works. Kill me in the face.