Time for #DEVDiscuss — right here on DEV 😎


How To Build a Scalable SaaS Backend in 10 Minutes With 100 Lines of Code 🚀
JS for ZenStack ・ Jun 21 '23
Inspired by @jiasheng's Top 7 post, tonight’s topic is...developing SaaS (software as a service) products!
In their post, @jiasheng shares about their project @zenstack and how it can be used to build "a scalable SaaS backend in 10 minutes with 100 lines of code" 🔥
It’s hard to build a scalable SaaS system. Having been involved in the development of four commercial SaaS products at my previous company, I've come to realize the multitude of complexities that arise compared to typical consumer products. Among these complexities, one prominent area lies in the intricate realm of permission control and access policies.
Questions:
- What's more important to you when building a SaaS: reducing complexity, or having lots of features and functionality?
- How have you approached access control with SaaS apps in the past?
- How does building SaaS at the startup level differ from working on a SaaS at the larger, commercial level?
- Any triumphs, fails, or other stories you'd like to share on this topic?
Let me throw a brick to get you started 😁
In my humble view, I believe that reducing complexity does not necessarily conflict with adding functionality. However, it does demand expertise, knowledge, and skill to pursue simplification effectively. Check out our own experience shared by my partner @ymc9
For Most of Us, Simplification Rules
ymc9 for ZenStack ・ May 7 ・ 4 min read
Yes, we have built more than 5 SaaS products. There are some common things we have to implement every time with different stacks like:
It’s not only tedious but also hard to make it right. That’s one of our own pain points and the big reason why we built ZenStack.
Based on my personal experience, I have found that at the startup level, prioritizing speed is crucial as it allows for rapid validation of product-market fit. This agility enables quick adjustments and changes in direction if needed. However, at the commercial level, you need to put more focus on stability and extensibility because there are people running business on it already.
If you are planning to build a new product, you could verify people’s responses before building it. In one of our cases, we simply created a website with the normal registration process as if it’s already fully launched. Then we did SEM to get traffic to our website to see what’s the click rate and conversion rate for our website. If it doesn't meet the expectation, we know we went in the wrong direction. Of course, for the people who registered, you should tell them the truth and give them some credit as your early adopters. Most people are actually very nice about it.