Architecture & Patterns
Forum › Category
Multi-tenant SaaS design, data modelling, access design and retries.
- 0 votes, 1 answers, solved
Our Postgres stays the system of record: connect it or migrate it?
We're rebuilding an internal tool on Supero. Its Postgres is also written by our billing system and a nightly ETL job. Do we copy those tables into Supero…
- 0 votes, 1 answers, solved
Keeping Stripe and SendGrid keys out of the frontend
Our app sends receipts through SendGrid and takes payments through Stripe. Right now the keys sit in a config file the frontend loads. Where should they live?
- 0 votes, 1 answers, solved
Workflow or transactional service for what happens after a booking?
When a member books a class we need to reserve the slot, email a confirmation and mark the booking processed. Should all of that be one workflow, or does the…
- 0 votes, 1 answers, solved
Modelling a many-to-many relation (students and courses)
A student takes many courses and a course has many students. In Postgres we'd have an enrolment join table. Should the student schema get a course_uuids array…
- 0 votes, 0 answers
Testing access rules as each role before launch
We keep a test user for every role and run the same small script as each one: list, read someone else's record, update a readonly field, delete. Then we…
- 0 votes, 0 answers
Owner-scoped rows or separate tenants?
Two ways to keep customers' data apart. Owner scoping (filter_field plus filter_match) works when each row belongs to one person and people never share data.…
- 0 votes, 0 answers
Retrying payment and booking calls without doing them twice
Our rule: before retrying anything that moves money or stock, know whether that call is cumulative or guarded by state. Cumulative calls need a key the server…