Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    gonit
    @gonit
    Discord link is not loading the chat, may be discord problem :(
    Alan Kleiman
    @akleiman
    Hi, I'm using vertx-pg-client, version 4.1.0 and I think I'm seeing the following situation: when under heavy load the database starts taking a while to respond and I suspect this is making the client/pool discard a connection as "dead". The connection doesn't get killed server-side, though, and the pool opens a new connection in its place. As a result I can see in pg_stat_activity that my app has 2, 3x the # of active connections as I declared in my pool. Is there some way to tune the connection so it takes longer to decide a connection is dead? Is it poolCleanerPeriod on the pool, is it on the client?
    3 replies
    Paulo Lopes
    @pml0pes:matrix.org
    [m]
    @akleiman please post on the discord server. Link is in the heading and a few messages back...
    Simon Klakegg
    @sklakegg
    hello, just a general thought. after using vert.x for 1-2 years now I'm very happy with the libraries. however, one thing I find a bit cumbersome/verbose is working with asyncmap. for instance updating a value takes three operations each with a handler (e.g., get map, get value, update value) and it quickly gets a bit messy. what's the best way to go about this? I made some helper methods, but maybe there is not much more that can be done before e.g., project loom is available (Vertx-Sync)?
    Armin
    @hb0

    Does Vert.X Mongo support resumable file uploads?
    The idea is to use the Youtube Resumeable Upload protocol to upload large binary files to MongoDB/GridFS but I can't find an equivalent to an append function for GridFS (to resume the upload).

    Okay at least for MongoDB I might have found the answer to my own question - due to concurrency the API won't support append: https://jira.mongodb.org/browse/JAVA-2765

    Krzysztof Ziomek
    @kziomek
    Hi, would be great if you could refer me to document describing "best practices" for configuring circuit breakers?
    Currently we have http client instance per verticle. We don't share http clients against verticles because responses were handled by random event loops which were different from event loops handling requests.
    Also currently we have circuit breaker instances in relation 1:1 with http client instances.
    Now we do consider sharing the same instance of circuit breaker by clients in all verticles invoking the same target service.
    So i.e. we would have 16 verticles, 16 clients and 1 circuit breaker instance shared by all 16 client.
    Initial tests confirmed responses are handled by the same event loop as requests so we can't see any issue with that approach.
    Are there any known recommendations/reasons advising against going this path?
    Park Jeong Woo
    @frjufvjn

    Hello :)
    I am implementing websocket on server and using writePing api.
    Trying to implement a heartbeat between client and server.

    By the way, On other verticle, want to send a ping in this form.
    Is there any possible way?

    eventbus.send(ServerWebsocket.textHandlerID(), PING) ;
    mghildiy
    @mghildiy

    I am following https://github.com/vert-x3/vertx-guide-for-java-devs/blob/3.8/step-1/src/main/java/io/vertx/guides/wiki/MainVerticle.java

    Code there is as:

    @Override
    public void start(Promise<Void> promise) throws Exception {
    Future<Void> steps = prepareDatabase().compose(v -> startHttpServer());
    steps.setHandler(promise);
    }

    But in available pdf, its:

    @Override public void start(Future<Void> startFuture) throws Exception
    {
    startFuture.complete();
    }

    Not sure which one is older
    Any input here?
    Dan O'Reilly
    @dano
    @mghildiy Promise<Void> is newer/preferred
    mghildiy
    @mghildiy
    Thanks @dano
    I have written a simple vertx application, from book 'Building reactive Microservices in Java'....
    public class MyFirstVerticle extends AbstractVerticle {
    ....}
    I put some simple code in start method...thats all
    I can run the application using command mvn compile vertx:run
    But I am not able to stop it..ctrl+c(as suggested in book) doesnt work
    application keeps running and sending back responses
    What is best way to stop it?
    Kuruchan
    @Kuruchan30_twitter
    hello
    can someone help me
    btw is this channel still active?
    Dan O'Reilly
    @dano
    @Kuruchan30_twitter no, check the channel topic
    Yaz
    @yazalulloa
    Is there a way to pass out Parameters with the new JDBCPool?, I can't find a way to do it
    Asad Awadia
    @asad-awadia_gitlab
    What is the difference between pgpool.pool and pgpool.client in the postgres client? Which one should i use in general? And which one does better pipelining?
    boulderwebdev
    @boulderwebdev
    Hey, how can I submit a query with a postgresql pool transaction? For example, the following does not work
    pool.withTransaction(conn -> {
      return conn.query(
        "insert into my_table (my_field) VALUES ($1)"
      ).execute(
        Tuple.of("test_val")
      );
    })
    boulderwebdev
    @boulderwebdev
    It seems like the execute function wasn't overloaded somewhere in the implementation
    boulderwebdev
    @boulderwebdev
    Nevermind, I should have used a preparedQuery.
    Paulo Lopes
    @pmlopes
    @boulderwebdev please see the note on the top, community support is moved to discord, you will get anwsers there quicker!
    Denis Ivanov
    @ivanovdns
    hello all! Could please someone help with handling websockets by vert.x behind nginx. Can't understand why the main thread is blocked if I try to send more than 50KB of data.. Before I used writeFinalTextFrame() and everything worked fine but recently this error appeared. Now I switched to text handler which registered automatically on eventbus. I hope it uses queue under the hood. Any ideas are appreciated!
    Navnath Chinchore
    @NChinchore_twitter
    We have build cron framework in our service to run some task at particular time durations.
    We have used set vertx.setPeriodic for to schedule these tasks. But we are observing strange behaviour after upgrading to 3.9.7. set periodic stops working after 14, 15 days of service uptime.
    Earlier we were on 3.5.2 and everything were working fine. Is there anyone facing the same issue.
    Can someone please have look
    Paulo Lopes
    @pml0pes:matrix.org
    [m]
    @NChinchore_twitter you should try the discord server. Gitter isn't used anymore.
    boulderwebdev
    @boulderwebdev
    @pml0pes:matrix.org Is there any way to change the name of this room on the left hand side? (Right now it reads "vertx-users", but this could be changed to "vertx-users (deprecated)")
    Hantsy Bai
    @hantsy
    Paulo Lopes
    @pmlopes
    @hantsy, Thomas who has worked on this is/was on PTO so you may have a slow response. Also note that this chat is deprecated and you should better ask on discord: https://discord.gg/KzEMwP2 where we are active and the whole community has moved to.
    rodolfodpk
    @rodolfodpk
    Hi there. I just want to share my pet project: https://github.com/crabzilla/crabzilla just in case you like Vertx, Postgres, Kotlin, CQRS and Event Sourcing. Feedbacks are very welcome.
    4 replies
    KrishnaRao Veeramachaneni
    @OpenSourceTycoon
    Hi All, i 'm using the httplclient.postabs call with https based URL
    vertx says "Failed to create SSL connection"
    Vert.x Vertical Fail : Failed to create SSL connection
    KrishnaRao Veeramachaneni
    @OpenSourceTycoon
    Do we have any other way to disable the HostNameVerfier set as false ?
    Tarana Desai
    @tarana.desai_gitlab
    How to log all database queries? I am using io.vertx:vertx-jdbc-client and io.vertx:vertx-pg-client
    zuisong
    @zuisong

    How to log all database queries? I am using io.vertx:vertx-jdbc-client and io.vertx:vertx-pg-client

    Hi, if you are using io.vertx:vertx-jdbc-client, you can use https://github.com/p6spy/p6spy to log query sql

    Juan Garcia
    @underkin
    Hi there
    Anyone has an example about how to use HBASE from vertx? What approach should I look at ?
    shariffff
    @shariffff:matrix.org
    [m]
    Hello friends, am sharifff Magembe an out reachy intern, am so excited to be challenged in this project while contributing and learning the tech stack,
    Am intrested in working on some issues like vert-x3/vertx-eventbus-bridge-clients#62 and this , vert-x3/vertx-eventbus-bridge-clients#15 Kindly let me know if am allowed to work on them asap probably assigning to me will be much appreciated.
    Thanks
    Paulo Lopes
    @pmlopes
    Hi @shariffff:matrix.org this chat isn't active anymore, please join the discord server: https://discord.gg/KzEMwP2 in there you will find the room #outreachy-2022 with information about the project and some information already shared will all prospecting applicants. Let me know if this worked for you!
    shariffff
    @shariffff:matrix.org
    [m]
    Thank you so much, have been on waiting for response. thanks @pmlopes
    JoggerJoel
    @joggerjoel
    Hello, I'm migrating to vertx 4.2.7 and noticed that HandlebarsTemplateEngine is now deprecated; how would I be able to handle this going forward?
    bkoripalli
    @bkoripalli
    Is vertx-mysql-postgresql 3.9.13 supports scram-sha-256 authentication? If not what is the workaround to support scram-sha-256?