I'm building a patroni postgres cluster, however, I can't decide which is better architecture
App > HAproxy > Pgbouncer > PostgreSQL (patroni)
App > PGBouncer > HAproxy > PostgreSQL (patroni)
I can't seem to get an answer upon my search and a lot of conflicted answers. Some say its better to have haproxy in front and others say the opposite .
I would appreciate your opinion on this matter