I am building a mobile app and am talking to postgres in the cloud. Imagine if my app ends up being a success, what is the recommended pattern to talk to the postgres database in the cloud -
Is it
a) Mobile App -> (some sort of authentication check) - > some queue like kafka-> database .
or
b) Mobile App -> (some sort of authentication check) -> pgbouncer + postgres ?
or
c) Mobile App -> (some sort of authentication check) -> queue -> pgbouncer + postgres ?
I am trying to build an app that will stand the test of many many users concurrent using it , partly to become better at distributed systems. I expect the queries to return quickly.