by sqs · 3y ago · 0 comments
For self-hosted products, offering a single-tenant cloud product is much easier than multi-tenant because single-tenant cloud "just" requires automating and managing infrastructure, not completely changing the core application to support multi-tenancy. This also means nobody should be worried about self-hosted being deprecated in favor of a single-tenant cloud product; companies generally find it easy to keep both.
Single-tenant cloud is also a lot more appealing to large customers because the security is (arguably) fundamentally better and scalability is easier to prove (you can just point to scalability on a self-hosted instance, which has the same scaling characteristics).
Expect to see more single-tenant cloud offerings come out for dev tools, especially those that have a big self-hosted offering (like GitLab, GitHub, and Sourcegraph).
Our figurative ideas, ephemera, seem to be in a loop of taking a simple mental model, branching it into a mess, feeling over extended, circling back to a simpler mental model, branching it into an over extended mess.
Monotheism versus polytheism, and dozens of flavors of a religion rooted in a central umbrella idea.
Nation states allow creating over leveraged branches of economic Ponzi schemes.
And we’re all certain this is net new and never before seen of humans because the labels are all different!
Sure generated book sales, crowning of thought leaders, and busy work to soak up easy money for anyone paying attention.
I've seen monoliths that fit that description.
Once you've automated the deployment and configuration of load balancers, firewalls, caches, proxies, and have a DB with automatic failover, that is also sharded for performance, spreading the code out across a few machines is not the hard part.
Monorepo, single Go binary, dump on an instance via cloud init, run it as auto scaling group with count of 1. Only dependency is S3 and database service like RDS.
Super simple for us to build, maintain and operate. Still get a reasonable economy of scale in right sizing the instance / db for the customer workload.
Easy to have a customer set the same thing up themselves for self-managed / any IaaS or on prem version.
More portable than any pre-containerized contraption, because all our enterprise clients all know how to manage instances, and only a few have container expertise, and its trivial to wrap it your container of choosing anyway.
It's pretty standard, the pendulum swings to one side and then eventually swings back to the other. If you stay flexible you can just ride it back and forth throughout your career.
here's an old Dilbert that shows the same
https://www.sambridger.com/wp-content/uploads/2012/01/dilber...
Aren't you grossly extrapolating a tad? Nothing suggests there's a "code monolith" involved in the story. Just because the topic is single-tenant instances. Also, single-box deployments are completely orthogonal to "code monolith". Finally, just because a company offers a product that does not mean there's a major architectural shift in the industry.
What this is trying to solve for is companies that can’t buy their other offerings which they said are enterprise companies and or heavily regulated .
Single tenant != Monolith. These things are orthogonal.
Always has been
"Resource pooling. The provider’s computing resources are pooled to serve multiple consumers using a multi-tenant model..."
But I believe language and communication are emergent, decentralized phenomena. Single-tenant cloud is a good and useful term.
I wouldn’t be surprised if they pivoted back, but they lost a lot of talent on that team
Interesting to note that you mentioning mostly devtime solutions (version control, source navigation).
I think the proposition is even more compelling for components of your application that are used at runtime (like auth servers, databases or message queues).
Wins for the company offering the self-hosted solution:
* Easier to build the SaaS offering as you mention.
* Can leverage same code for SaaS and self-hosted versions.
* Unique value proposition: "run it yourself or let us run it, or migrate between these as needed" has been a compelling message for some of our clients
Wins from the developer perspective:
* Easier to version the tool like a library. No more surprise upgrades. Especially when you using a component that other pieces of code depend on, devs want control over the upgrade process.
* No noisy neighbor problem (at least, no more than you'd have using a VM in a public cloud).
* Still a SaaS, so you get ease of delivery/usage/maintenance.
The major cons:
* it costs more.
* deployment time can take longer (you're not just adding a row in a database and configuring a hostname).
* making sure folks know when/how to upgrade (it's still a learning experience for many devs to have a single tenant SaaS solution).
I had an interesting discussion with the Cloudility folks about the three models for multi-tenancy:
* logical (in a db)
* with k8s namespaces
* with VMs
That's here: https://cloudify.co/blog/podcast-episode-twenty-five-the-end...
Do you have infrastructure in place to deploy all at once? All I can think about is a time back in the dark ages where I had 50 different instances of an application deployed and some clients didn't want to upgrade. Some didn't care. And some did. It was an absolute nightmare trying to keep all of the individual systems in sync?
I get the feeling that's not what you're describing here though? It sounds like a really convenient setup you guys have, but I just can't envision it very clearly.
Anyhow, thank you for sharing a bit of your infrastructure.
That is correct.
We've written a lot of code against our cloud provider's APIs to spin up a new instance of our application. The application itself is pretty simple: java runtime, java code and a relational database (plus optional elasticsearch).
> It was an absolute nightmare trying to keep all of the individual systems in sync?
We don't try to keep all the applications in sync. We let folks upgrade on their schedule, not ours. We inform them of features and security issues and let them make the assessment on when is best to upgrade. These are devs and this is sensitive user data, so they tend to be receptive to upgrading when needed.
It's absolutely a tradeoff between more granular control and operational simplicity (for us; the end user doesn't really care).
FYI, I gave a conference talk about our infra evolution which led to that podcast interview I linked. I can try to dig up the PDF if that would be of interest (it wasn't recorded).
We in essence do that. We have about 300 customers, each with their own deployment.
We have a set of active major versions which our customers can run, and then bug fixes etc in minor versions gets deployed automatically.
When the customer is ready they can bump the preferred major version, and the database etc gets upgraded over the following night/weekend (depending on activity level).
When signing on, the user can select the version to run, defaulting to the highest minor version of the preferred major version (after upgrade is ready of course). They can select one of the 5 latest minor versions per major version.
The update service checks for any new builds once per hour and grabs them, informing the "boss users" of any new major version if available.
This makes bugs and issues have less impact. If we screw up, the user can always just use one of the previous versions until we fix it. And once we fix a bug we just have to make a new build and tell the user to log back out and in again in an hours time.
As for keeping it in sync, our installations are fairly stand-alone as such. However we have to take locally. So we make sure database upgrades are backwards compatible as far as possible, ie old code should run fine on a newer db schema. Automated services follow the default version policy (so get upgraded automatically). And we don't have too many major versions around, about a year, so they have to upgrade at some point. At least if they want to receive support.
For us it's what's allowed us to do customer specific solutions and logic within our general application, which has been one of our strong points compared to many of our competitors.
But yeah, one of the downsides is when, like last week, we discover a bug in a library of ours which we've used for a while. Then there's like a dozen branches to patch and build. And as mentioned, upgrading the db schema might require care and/or preparation to ensure older versions can still run against it.
For other products needing cross-customer features, I think you'd need to define clear APIs and pipelines for exporting some form of the data that the customer can inspect to be certain it is not violating their security/privacy expectations. I'd love to hear from people who have built such a system!