This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-03
Channels
- # announcements (12)
- # beginners (44)
- # boot (27)
- # calva (73)
- # cider (1)
- # clj-kondo (9)
- # cljdoc (9)
- # cljs-dev (15)
- # cljsrn (6)
- # clojure (90)
- # clojure-dev (5)
- # clojure-europe (4)
- # clojure-ireland (3)
- # clojure-italy (22)
- # clojure-mexico (2)
- # clojure-nl (8)
- # clojure-uk (32)
- # clojurescript (12)
- # core-async (2)
- # cursive (16)
- # data-science (10)
- # datascript (3)
- # datomic (44)
- # emacs (17)
- # events (4)
- # graalvm (1)
- # hoplon (5)
- # jackdaw (17)
- # keechma (11)
- # nrepl (7)
- # off-topic (24)
- # re-frame (19)
- # reitit (4)
- # rewrite-clj (2)
- # robots (9)
- # shadow-cljs (20)
- # sql (12)
- # testing (4)
- # tools-deps (23)
- # vim (55)
Let's say I have a microservice, which has it's own postgres
`
database. Why would I want to use pgbouncer
before reaching postgres
instead of just relying on HikariCP
in my application?
It would make more sense if I have a big postgres database that a lot of applications connects to. But in this case.. i dont know
If using pgbouncer
pools are also shared across service-instances but I am still unsure.
you might find yourself quickly growing from 1 instance of your microservice to 10 and eventually postgres will run out of connections
or you might want to syncrhonous switching of db host from a to b ...
but for now i'm actually in your camp, for a big set of services i use direct connection pools instead of pgbouncer on the side ...
@seancorfield Its a library that I'm using to simplify the SQL. When I had started with Clojure "jdbc.sql" was the first sql library that I founded. Do you have a better library for that?
@U26FJ5FDM no he's asking about a DSL to generate SQL to use with clojure.java.jdbc
@UJWU8FW3A use HoneySQL instead of java-jdbc.sql.sql (I think the readme says that?)
From the readme "Projects like HoneySQL and SQLingvo are always going to be better DSLs"
@seancorfield thanks a lot I will try