TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Solo developer – Recommended architecture/patterns for building a SaaS?

11 pointsby kisamotoalmost 5 years ago
Across SaaS offerings there are some common functionalities that must be built but as a solo developer my time and resources are limited.<p><pre><code> * Authentication &#x2F; Authorization * Usage monitoring * API Gateway * Billing calculations * Invoice generation and sending * Customer support (including portal to manage account) </code></pre> I have left the specifics of the software out on purpose however it is primarily REST API based.<p>So far I have looked at building on top of Kubernetes with Keycloak for auth; Kong (free) for API gateway; cron jobs to calculate daily bills, update a database and send monthly invoices. It&#x27;s ugly, takes more time than I would like to spend to maintain and develop and means I lose time spent working on my core business.<p>Are there any best practices&#x2F;design patterns&#x2F;architectures for building a small-medium scalable SaaS platform?<p>I am open to experiences with managed services and heavy vendor lock-in as previously I tried to avoid it but the flexibility (that I have not used) is a tradeoff with time and effort required.

5 comments

hazz99almost 5 years ago
These are the things that gave me (a solo developer) a <i>huge</i> speed boost:<p>- Use React with NextJS. Stopping messing with state and routing issues.<p>- Use GraphQL instead of REST. Stop spending so much time writing well-structured API endpoints.<p>- Purchase TailwindUI [0]. Stop pretending to be a UI designer and start implementing features.<p>- Put everything in containers and host on Render [1] or Heroku. Stop spending time managing infra before you&#x27;ve found product-market fit.<p><i>Remove everything that stands between you and solving a business problem</i>. Everything else is completely irrelevant. Do whatever you can to get to market.<p>It makes more business sense to pay $50&#x2F;mo for Heroku and Auth0 than spending a month building infra and authentication, which you&#x27;ll probably get wrong anyway.<p>If I were to do this all over again, I&#x27;d probably go with PHP+Symfony&#x2F;Laravel or Ruby on Rails. Something hyper-practical. I thought I&#x27;d never say this, but it&#x27;s true. Development is fast. Recruiting is cheap. There are builtin patterns so it&#x27;s easy to get help online.<p>That being said, I do love React.<p>[0] <a href="https:&#x2F;&#x2F;tailwindui.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;tailwindui.com&#x2F;</a><p>[1] <a href="https:&#x2F;&#x2F;render.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;render.com&#x2F;</a>
评论 #23517955 未加载
kugelblitzalmost 5 years ago
What is the application stack you are using? Something like Laravel or Symfony (PHP) or Django (Python) would come with auth stuff already and it wouldn&#x27;t take too much effort to make it API-oriented.<p>Connect it to something like Stripe, deploy it on e.g. Heroku or so (I personally use AWS Elastic Beanstalk for almost all my projects, mostly because I feel most comfortable there) and you should be almost there.<p>I have 2 side projects where I&#x27;m the solo developer, one runs on Symfony, the invoices are generated, but after they&#x27;re sent, I need to manually check them (but each invoice is 100-200 US$, so it&#x27;s ok).<p>A second project runs on Django and is subscription based, here the invoices are higher in volume but only 5 US$ each. There billing goes via Stripe (among others) and is handled automatically.<p>Check out <a href="https:&#x2F;&#x2F;www.indiehackers.com" rel="nofollow">https:&#x2F;&#x2F;www.indiehackers.com</a> as well for some inspiration.
onelastjobalmost 5 years ago
I think JumpStartRails.com offers a lot of what you are looking for <a href="https:&#x2F;&#x2F;jumpstartrails.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jumpstartrails.com&#x2F;</a>
tucazalmost 5 years ago
I’m on the same boat and have been building these things for the past year
noninesalmost 5 years ago
Maybe stack overflow would be a better place to ask. Please post back a link if you do.
评论 #23499325 未加载
评论 #23498759 未加载