As asked
Design the full technical architecture for a B2B SaaS product that needs web app, REST API, background jobs, and multi-tenant data. You have two engineers and three months. Draw the components and explain every technology choice.
Sample answer outline
Strong answer picks a deployable stack (Next.js full-stack, or Express + Next.js), Postgres as the single database, a Postgres-backed job queue (pg-boss or similar) to avoid Redis ops overhead, and a single cloud account with containerised deploys. Explicitly rules out microservices, Kubernetes, and message brokers as premature. Covers auth, file storage (S3), transactional email, and the single DNS+TLS entry point.
Expect these follow-ups
- Six months in, the single Postgres instance is the bottleneck. What is your first move?
- How does your architecture change when a customer requires data residency in the EU?