Confession: How I got (my golang piece of SaaS) Multi-Tenant
Tags: showdev, go, webdev, architecture
Published: 2019-07-19 11:58:38

---
title: Confession: How I got (my golang piece of SaaS) Multi-Tenant
published: true
description: My Confession : How I got my software to be multi-tenant
tags: showdev,golang,webdev,architecture
cover_image: https://thepracticaldev.s3.amazonaws.com/i/gt31ed87mpd7s3ubbtkm.jpg
---

Cross Posted: [How I got Multi-Tenant](https://blog.altafino.com/software-development/confession-how-i-got-my-piece-of-saas-multi-tenant/)

As some of my followers may know, I am writing and providing a [Job Board Software](https://www.boardengine.io), on which I run since last weekend, 4 different Job Boards.

and...
###Today, I confess that I did not implement all details from the beginning

One of these boards, the [Full Stack Developer Job Board](https://fullstackjob.com) I run since the end of February of this year, with the same piece of software. However, back then, the software was not multi-tenant at all. However, the plan that the underlying software has to be Multi-Tenant was always there.

Don't know, what Multi-Tenant means and why it can be good? [Good article](https://www.netsolutions.com/insights/5-reasons-why-you-should-choose-multi-tenant-architecture-for-your-saas-application/)

![](https://thepracticaldev.s3.amazonaws.com/i/8ule39semlcohzren70z.jpg)

Now... Why I did not do it multi-tenant from the beginning....
Good question. The last decades I would do precisely that, and remembering some ex-projects, yeah, they started right there... and yeah... mostly then stuck right there...

###Why I got stuck right there?###
No, not because it's impossible and I could not manage it... However, because doing a multi-tenant software add's some levels of complexity to software, which should not be underestimated. Moreover, when you do a new Project as a Maker, you should not loos time to first do something multi-tenant, before you are sure that your product will find customers.

So that's the reason why I started with adding multi-tenancy only the last 3 weeks.

Ok.. 3 week's, working on it only in some very early morning hours and on weekends is not that much for this, but I must confess, that I was always thinking in it when I structured my models, objects, endpoints and even frontend services. Not precisely, how at the end I will implement it, but thinking about where it will be "plugged" later.

So I could implement it +/- fast and today the boardengine.io Software is a SaaS, which can run on the same instance (simplified: 1 DB, 1 backend, 1 frontend piece of code) different job boards, where styling differs, content part differs, data is isolated but can also be shared between tenants and some logic, like filtering, skill-sets etc are configurable per tenant on instance level. I don't have an SSO, but a user can have roles on 1-n tenants etc. The full instance with backend service, 2 http daemons, redis, nsq, arangodb and frontend run in a Rancher 1.6 docker environment. I have the plan (also since the beginning) to move to Kubernetes based environment, but the same way... stay prepared for the move, but do it only, when there is a real need for it.

###What I take from my own confession as learning:

####When you start a new software project, think big, but act doing  small steps
![](https://thepracticaldev.s3.amazonaws.com/i/j0o8q22n9ml465qi8dal.png)

- Identify the minimal architecture needed for the first iterations
- Have the "plug-in" points in mind, to reach the big goal in the future, but
- Don't do over-engineering from the first moment. 

The big picture may change during the time, so even defining a detailed scope makes not much sense IMHO, as this can change. A good point to act small and start early to get feedback from real customers on your first shipped versions of your product is, that you can adjust the big picture and the related scope, *before* you implement a complex layer. But, as listed above. Having the big picture in mind from the beginning is important, to not close doors in architecture and to avoid "mission nearly impossible" kind of data migrations.



At the end the list of boards, which runs on [boardengine.io Job Board Software](https://www.boardengine.io) :

- [Full-Stack Developer Jobs: https://fullstackjob.com](https://fullstackjob.com)
- [React & ReactJS Jobs: https://reactjsjob.com](https://fullstackjob.com)
- [JavaScript Jobs: https://javascriptjob.xyz](https://javascriptjob.xyz)
- [Python Jobs: https://pythonjob.xyz](https://pythonjob.xyz)
- [Rust Developer Jobs: https://rustjob.xyz](https://pythonjob.xyz)
- [Golang Jobs: https://golangjob.xyz](https://golangjob.xyz)

If you are interested in a more technical post, how I implemented it, please comment, as if you have any other feedback :-)


Cheers
Stefan

![](https://thepracticaldev.s3.amazonaws.com/i/7r9mge38ywafhiwg2mwe.gif)

( interested in your own multi-tenant software - contact me through my [Full-Stack Developer](https://www.altafino.com) company)