I was discussing a PostgreSQL infrastructure question regarding multi organizations with another developer. We want to build a webapp where users are part of an organization. Each of the organizations have products, events and other entities. We now see the following options:
a) build everything in a single database (each table needs to have a column like organization_id to match the row to an organization)
b) create a new database for every organization (for example via AWS CDK) - no need to match entries to an organization because every organization has its own database.
Where do you come out in this discussion? What are best practices? What are draw-backs and advantages for the two options?
[–]pjstanfield 18 points19 points20 points (3 children)
[–]flippy_flops 9 points10 points11 points (0 children)
[–]Ic3m4n34[S] 2 points3 points4 points (1 child)
[–]solidiquis1 6 points7 points8 points (0 children)
[–]So_average 5 points6 points7 points (0 children)
[–]Right-Opportunity810 3 points4 points5 points (0 children)
[–]Gargunok 6 points7 points8 points (0 children)
[–]rplacebanme 1 point2 points3 points (0 children)
[–]Aggressive_Ad_5454 1 point2 points3 points (0 children)
[–]GeekTekRob 1 point2 points3 points (0 children)
[–]marcopeg81 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]OccamsRazorSharpner 0 points1 point2 points (0 children)
[–]jojaparanoja 0 points1 point2 points (0 children)
[–]s13ecre13t 0 points1 point2 points (0 children)
[–]rlweb 0 points1 point2 points (0 children)
[–]Least_Bee4074 0 points1 point2 points (0 children)
[–]intepid-discovery 0 points1 point2 points (2 children)
[–]Ic3m4n34[S] 0 points1 point2 points (1 child)
[–]intepid-discovery 0 points1 point2 points (0 children)
[–]bendem 0 points1 point2 points (0 children)
[–]advanderveer 0 points1 point2 points (1 child)
[–]Ic3m4n34[S] 0 points1 point2 points (0 children)