| Lists: | pgsql-general |
|---|
| From: | Age Apache <age(dot)apache(at)gmail(dot)com> |
|---|---|
| To: | pgsql-general(at)lists(dot)postgresql(dot)org |
| Subject: | What is the best setup for distributed and fault-tolerant PG database? |
| Date: | 2023-01-04 13:26:07 |
| Message-ID: | CAD80oWYLyQmzbh1NM6DM6MkrF1P1SvJeNA=GLD5Qi8yp+L2cbw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Lists: | pgsql-general |
Dear PG experts,
I am new to postgres, and I am also not a DBA. I am a solo developer who is
trying to evaluate what database to use for my hybrid multi-tenancy
sub-apps i.e. users of the application will be authorised to use part or
whole of the application based on their authorisation levels. This
delineation of user access has to also be supported by the database, if
possible. Also, for audit purposes the data is append only. And the design
is based on just two tables(vertices and edges) to emulate a
document-oriented(jsonb) graph structure.
Postgres is the database I am leaning towards for this project. But as I am
not a DBA and also a solo developer, I am trying to understand how I can
spend less time managing the DB and more time developing the application. I
would like to have a distributed and fault-tolerant DB setup with multiple
read and write nodes with little to no configuration on my part, if
possible. I am looking for a self-hosted open source solution.
Is this possible with PG? What is the best way to achieve this for a
non-DBA solo developer like me?
Thanks and kind regards
| From: | Rob Sargent <robjsargent(at)gmail(dot)com> |
|---|---|
| To: | pgsql-general(at)lists(dot)postgresql(dot)org |
| Subject: | Re: What is the best setup for distributed and fault-tolerant PG database? |
| Date: | 2023-01-04 23:54:03 |
| Message-ID: | [email protected] |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Lists: | pgsql-general |
On 1/4/23 06:26, Age Apache wrote:
> Dear PG experts,
>
> I am new to postgres, and I am also not a DBA. I am a solo developer
> who is trying to evaluate what database to use for my hybrid
> multi-tenancy sub-apps i.e. users of the application will be
> authorised to use part or whole of the application based on their
> authorisation levels. This delineation of user access has to also be
> supported by the database, if possible. Also, for audit purposes the
> data is append only. And the design is based on just two
> tables(vertices and edges) to emulate a document-oriented(jsonb) graph
> structure.
>
> Postgres is the database I am leaning towards for this project. But as
> I am not a DBA and also a solo developer, I am trying to understand
> how I can spend less time managing the DB and more time developing the
> application. I would like to have a distributed and fault-tolerant DB
> setup with multiple read and write nodes with little to no
> configuration on my part, if possible. I am looking for a self-hosted
> open source solution.
>
> Is this possible with PG? What is the best way to achieve this for a
> non-DBA solo developer like me?
>
> Thanks and kind regards
None of the experts chimed in so I ante up my $0.02.
It won't be possible unless you become a serious DBA _and_ solo (full
stack) developer. Or you pay for db support.
| From: | Saul Perdomo <saul(dot)perdomo(at)gmail(dot)com> |
|---|---|
| To: | Rob Sargent <robjsargent(at)gmail(dot)com> |
| Cc: | pgsql-general(at)lists(dot)postgresql(dot)org |
| Subject: | Re: What is the best setup for distributed and fault-tolerant PG database? |
| Date: | 2023-01-05 03:34:11 |
| Message-ID: | CAN3jBgEdVtnLHu2XHPQRD9fvb6HYmwQa0Q9ALWv1YBOma6-A_Q@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Lists: | pgsql-general |
What Rob said... plus, I would urge you to give some more thought to "for
audit purposes the data is append only". If your application is ever
successful, non-insignificant storage costs are something you'll need to
deal with sooner or later.
Anyway, what you ask is certainly achievable, but not without sustained
effort. IMO your options are: spend the time to learn on your own with much
reading + trial and error; pay somebody to set it up for you; or, cross the
high-availability bridge after you've got something of substance developed,
app-wise, on a single local DB.
Best of luck!
On Wed, Jan 4, 2023, 6:54 p.m. Rob Sargent <robjsargent(at)gmail(dot)com> wrote:
> On 1/4/23 06:26, Age Apache wrote:
>
> Dear PG experts,
>
> I am new to postgres, and I am also not a DBA. I am a solo developer who
> is trying to evaluate what database to use for my hybrid multi-tenancy
> sub-apps i.e. users of the application will be authorised to use part or
> whole of the application based on their authorisation levels. This
> delineation of user access has to also be supported by the database, if
> possible. Also, for audit purposes the data is append only. And the design
> is based on just two tables(vertices and edges) to emulate a
> document-oriented(jsonb) graph structure.
>
> Postgres is the database I am leaning towards for this project. But as I
> am not a DBA and also a solo developer, I am trying to understand how I can
> spend less time managing the DB and more time developing the application. I
> would like to have a distributed and fault-tolerant DB setup with multiple
> read and write nodes with little to no configuration on my part, if
> possible. I am looking for a self-hosted open source solution.
>
> Is this possible with PG? What is the best way to achieve this for a
> non-DBA solo developer like me?
>
> Thanks and kind regards
>
> None of the experts chimed in so I ante up my $0.02.
>
> It won't be possible unless you become a serious DBA _and_ solo (full
> stack) developer. Or you pay for db support.
>
>
>
| From: | Bryn Llewellyn <bryn(at)yugabyte(dot)com> |
|---|---|
| To: | age(dot)apache(at)gmail(dot)com, Saul Perdomo <saul(dot)perdomo(at)gmail(dot)com>, Rob Sargent <robjsargent(at)gmail(dot)com> |
| Cc: | pgsql-general list <pgsql-general(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: What is the best setup for distributed and fault-tolerant PG database? |
| Date: | 2023-01-05 04:28:49 |
| Message-ID: | [email protected] |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Lists: | pgsql-general |
>>> age(dot)apache(at)gmail(dot)com wrote:
>>>
>>> I am new to postgres, and I am also not a DBA. I am a solo developer who is trying to evaluate what database to use for my hybrid multi-tenancy sub-apps i.e. users of the application will be authorised to use part or whole of the application based on their authorisation levels. This delineation of user access has to also be supported by the database, if possible. Also, for audit purposes the data is append only. And the design is based on just two tables(vertices and edges) to emulate a document-oriented(jsonb) graph structure.
>>>
>>> Postgres is the database I am leaning towards for this project. But as I am not a DBA and also a solo developer, I am trying to understand how I can spend less time managing the DB and more time developing the application. I would like to have a distributed and fault-tolerant DB setup with multiple read and write nodes with little to no configuration on my part, if possible. I am looking for a self-hosted open source solution.
>>>
>>> Is this possible with PG? What is the best way to achieve this for a non-DBA solo developer like me?
>>
>> robjsargent(at)gmail(dot)com wrote:
>>
>> None of the experts chimed in so I ante up my $0.02. It won't be possible unless you become a serious DBA _and_ solo (full stack) developer. Or you pay for db support.
>
> saul(dot)perdomo(at)gmail(dot)com wrote:
>
> What Rob said... plus, I would urge you to give some more thought to "for audit purposes the data is append only". If your application is ever successful, non-insignificant storage costs are something you'll need to deal with sooner or later.
>
> Anyway, what you ask is certainly achievable, but not without sustained effort. IMO your options are: spend the time to learn on your own with much reading + trial and error; pay somebody to set it up for you; or, cross the high-availability bridge after you've got something of substance developed, app-wise, on a single local DB.
There’s always Internet search. Mention as many key phrases as you see fit. For example:
> Fully managed cloud service for highly available, fault tolerant, Postgres-compatible distributed SQL database
Look at my email address. That outfit is among the hits. So full disclosure is done. But, as they say, “other services are available”. So I don’t think that my suggested search string is inappropriate for a list like this.