142 points · by deegles · 8y ago · 43 comments
And, yes, I know... whatever feature I could name from Service Fabric has some sort of open-source thing for Kubernetes from someone that probably/almost/kind-of/sort-of/some-assembly-required does the same thing as Service Fabric. Or I could just use Service Fabric, and not play the Kubernetes equivalent of "what's in your node_modules directory?"
Microsoft has an existential-level bet on Service Fabric. It's 1) not going anywhere, 2) only getting better, 3) is already a better container orchestrator than Kubernetes, if that's all you want to use it for.
First-off, you mentioned micro-services. The mechanisms that support service and application versioning seem well-intentioned and well-designed. In many ways the mechanisms run counter to some of the key benefits of a micro-service architecture (especially surrounding decoupling development teams).
If your latency is high, deployment times out. We had to use a remote desktop session to a VM near the cluster to deploy manually (solved with CI/CD). This impedes teams who are trying it out, when they are remote.
It has a pretty hostile development experience. Before you can even open a project in Visual Studio, you need the entire SDK installed. "Which SF installer did you use?" was a frequent question in Slack, because there are a bunch of places where it resides.
Whenever you add a project to your solution, you have to ensure that it targets x64 (not AnyCpu). Strange compilation errors abound if you don't. We get it Microsoft: the runtime only supports x64 - you don't have to enforce it to this degree. AnyCpu runs just fine on x64. It sounds like nitpicking, but it gets horribly frustrating.
They do (or used to do) strange things their .targets files. It doesn't behave like the C# build system, with a very clear happy-path. I spent about a week working around $(MSBuildProjectDir) not working. I would fix this by making the entire thing nothing more than a Nuget package. Anyone can understand having to have an emulator installed to debug, but the project system is hostile.
It's a big pity because the tech is amazing. I've personally started championing Orleans+Docker as a more friendly alternative, but as I said: others on my team adore it.
Eventually ported to .net core and Orleans 2 on k8s and it's been a more pleasant experience.
Trying to get .net core app running on SF was extremely frustrating and confusing. K8s was a MUCH more natural experience.
I was really disappointed in the tooling. The sfproj files were this incomprehensible mess. If the ui didn't quite work you are hosed.
I would go on but I'm on mobile
Of course, the stateful service feature is lost. But k8s does not have that feature either.
Till now, I see its `guest executable` solution a good balance.
Persistent Volume Claims go a long way toward the stateful service "feature".
To go another step further on stateful services, SF's stateful services are only supported in a couple languages. Where mounting a volume in K8s which will follow your container is pretty darn accessible to any language.
The biggest problem imo, is that so very few people are using it, at least who talk about it, that this might be the first mention I've seen outside of MSDN, and I started looking hard at it three years ago or more.
I'd start with Erlang. The track record of Erlang for those parameters is just about unbeatable. And then there is the very careful way in which they deal with backwards compatibility, which is a major asset for any long lived project. If your projects live (or are intended to live) for a decade or more such details really matter.
Edit: As noted in the comments, SF is on Github. The following paragraph is incorrect and I retract what I said; leaving this here for context.
"Also, by going the K8S route, you potentially avoid being locked into a proprietary offering -- SF is only available from one vendor, whereas K8S is available almost anywhere."
The naming is confusing and there is a Service Mesh offering from Azure that lets you run your own applications easily if they're using the Service Fabric framework already, but SF can run containerized code in any language, and it has bindings for C# and Java (for now) if you want to use the primitives directly.
SF is also now open-source and you can run it all yourself in whatever environment you want: https://github.com/Microsoft/service-fabric
[1] https://blogs.msdn.microsoft.com/azureservicefabric/2018/03/...
[2] https://docs.microsoft.com/en-us/azure/service-fabric/servic...
[3] https://social.msdn.microsoft.com/Forums/en-US/b5045fe1-51a2...
The links you point to are about developing with SF, which doesn't natively run on Mac OSX. It can run on Linux but has fewer features for now, but this is being worked on. It's not the same as K8S/Mesos/Swarm though so if container orchestration is all you need then you shouldn't use SF.
SF is open source on GitHub and you can run it on-premise or on any cloud, Windows or Linux.
The tooling is probably easier on Azure; but you can also happily run it on AWS; as well as the Service Mesh variant which is sort of "Serverless Clusters" or "Clusterless Clusters", applying the strange naming of "Serverless".
1. It's poorly positioned against K8s. The "it can do containers" people are really not helping their case; SF's value proposition is clearly not in running arbitrary containers. Unless you're writing a new .NET app and will go all in on their SDK and replicated state model, it just doesn't make sense.
1a. It has no community. It has no presence outside of MS doc pages, the repo they threw over the wall, and the one external user that I'm aware of (who is already in this thread).
2. SF was operationally not-fun. I'm being nice. Though, neither is Kubernetes, most days.
3. SF is losing to Kubernetes, even internally, and even despite pressure from high-up-ish people.
4. The rumors about SFs fate would not seem to lend themselves toward adopting it for new projects.
Many of those signals are not easily faked, as Microsoft itself painfully learned when spending billions in an attempt to artificially prop up a developer community around Windows Phone. If, as the grandparent suggested, Service Fabric is losing out even internally at MS where they can apply management pressure in addition to marketing, that’s a very bad sign.
Shortly after, we adopted Docker which was nice because we could run some Node.js services and some .NET Core services.
Although Docker introduced its own problems, namely orchestration.
I don't care about the "k8s 4 life" thing that other people seem invested in. The space that SF is useful in n is pretty large. There's room for multiple options.
>>Azure SQL DB (100K machines, 1.82M DBs containing 3.48PB of data)
Makes you realize how different the scale of the top cloud companies is, compared to the average service/site. Pretty amazing.
—-
In my estimation, now would be a rather poor time to adopt SF.
1. It's poorly positioned against K8s. The "it can do containers" people are really not helping their case; SF's value proposition is clearly not in running arbitrary containers. Unless you're writing a new .NET app and will go all in on their SDK and replicated state model, it just doesn't make sense.
1a. It has no community. It has no presence outside of MS doc pages, the repo they threw over the wall, and the one external user that I'm aware of (who is already in this thread).
2. SF was operationally not-fun. I'm being nice. Though, neither is Kubernetes, most days.
3. SF is losing to Kubernetes, even internally, and even despite pressure from high-up-ish people.
4. The rumors about SFs fate would not seem to lend themselves toward adopting it for new projects.
[1]: http://www.davidchappell.com/writing/Introducing_SCA.pdf