Thursday, April 25, 2024

SaaS deployment and tech stack advice needed


full image - Repost: SaaS deployment and tech stack advice needed (from Reddit.com, SaaS deployment and tech stack advice needed)
Hi Everyone,I am a noob in programming and have recently started shaping a project of a small B2B SaaS app and I am looking for advice from actual people with experience in deploying apps (not AI)I have compiled it in Visual Studio, the stack is React, FastAPI (logic,validation and endpoints), PostgreSQL (db, initially was mongoDB compass with Motor, but now I am working on changing that, as I think it will be simpler to query with SQL and the data needs to be ACID for dashboard reports and csv exports) For deployment: I have been considering renting out dedicated base server running on Windows in central location for our customers (Like Amsterdam for Europe, 64GB RAM with 2TB SSD unlimited traffic costs around 80-100 euro/month).For deployment: I am thinking of deploying the web app as a monolith isolated service for each customer - basically splitting the dedicated server into 2-4GB Ram VMs (incl. front end, backend and db) running bare Linux os (OpenSuse potentially) as a web server distro to serve only that customer’s web app on a unique public web address (like customer1.domain-name.com). If the customer has a larger set of users can increase the VM size and RAM respectively.Each customer data is backed up and isolated on a NAS drive (or a cheap cloud data backup-up service) (no share permissions between VMs, hence if a bad actor compromises a VM it will affect only 1 customer). Snapshots to be used for updating OS and service as a temp back-up.What do you guys think about this approach in tech stack and deployment? Do you see any fundamental issues that could bite me in the ass (deployment wise)? Am I approaching this completely wrong?Keep in mind that I don’t expect to have more than 50 customers, so maintenance is not going to be such a big issue that I need large network of microservices. Each customer will be paying as of day 1, no free tier service (maybe a free trial service, for a week or two) so I expect to run a profit on each service.I am also considering of reducing the HTTP requests to minimal by running next.js for front end on server side as well, but for now this is not a priority and since rendering will be done on end-client side, the VM web server distro would use most processing power for backend requests.What would be your advice regarding that?Feel free to be brutally honest, especially if you think this is idiotic (of course with back-up of your argument, so I can understand it too). For me it’s better to change direction now than later…


Mining:
Bitcoin, Cryptotab browser - Pi Network cloud PHONE MINING
Fone, cloud PHONE MINING cod. dhvd1dkx - Mintme, PC PHONE MINING


Exchanges:
Coinbase.com - Stex.com - Probit.com


Donations:
Done crypto



Comments System

Disqus Shortname

Disqus Shortname

designcart
Powered by Blogger.