question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reactive - Support multi hosts connection to Postgres

See original GitHub issue

Description

I need to connect to multiple postgres hosts with hibernate-reactive.

With the classic jdbc driver, we can define this property to connect to our HA postgres instance:

quarkus.datasource.jdbc.url=jdbc:postgresql://my.host-1.com,my.host-2.com,my.host-3.com:5432/myDB

But here I saw that the vert.x PgClient does not support multi host connections directly in connection URI.

I created an issue in vertx-sql-client here and a developer said me that it would be already possible by using the PgConnectOptions and a PgPool.

Can you support connection pool to multi hosts through your implementation ?

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mcanzerinicommented, Dec 9, 2022

Great, thanks for your time 🙏

1reaction
tsegismontcommented, Nov 21, 2022

Cool, thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quarkus - connect to muli hosts with reactive driver
I need to connect to multiple postgres hosts with hibernate-reactive ... pass a custom pool by using the service ReactiveConnectionPool .
Read more >
Reactive SQL Clients - Quarkus
Multiple Datasources​​ The reactive SQL clients support defining several datasources. The default datasource - using PostgreSQL. A named datasource called ...
Read more >
Reactive Postgres Client | reactive-pg-client - Reactiverse
The client is reactive and non blocking, allowing to handle many database connections with a single thread.
Read more >
Reactive PostgreSQL Client - Eclipse Vert.x
The Reactive PostgreSQL Client is a client for PostgreSQL with a straightforward API focusing on scalability and low overhead. The client is reactive...
Read more >
Reactive Postgres Client - Julien Viet
The client is reactive and non blocking, allowing to handle many database connections with a single thread. Event driven; Lightweight; Built-in connection ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found