Wednesday, 22 July 2020

Pointers to build Multi-tenant saas

I'm planning to build a SaaS product where customer1 signs up my website and the product is available on cust1.mysite.com which can be mapped to customer1site.comI have absolutely no idea how to execute this. Ideally I'd want to use aws to host clients' apps and connect their domains. Any pointers to execute this will be helpful. Thank you.This is how I'm envisioning: 1. I will deploy the saas app on aws lambda with api gateway 2. Customers can signup on mysite.com and launch their app on customer1.mysite.com 3. Customer can add thier via gui on mysite.com 4. When customer points their customer1.com's nameservers, A records, etc to my aws servers, they should be able to access their app via rootdomain 5. I don't want to create new lambdas, databases, api gateways for each new customer. I just want to connect all subdomains and clients' domains to the single lambda function (via api gateway) through code and fetch appropriate data from single database to render the app. If this is a bad approach kindly suggest alternatives.A bit about myself- I had built desktop, mobile and web apps. Currently, my stack consists of node, express, react, nextjs, gatsbyjs, postgres, Mongo, graphql, puppeteer, svelte/sapper, caprover. I have experience using aws api gateway, rds, ec2, lambda.

Submitted July 22, 2020 at 08:43PM by _skris

No comments:

Post a Comment