75

I have worked on Kubernetes and currently reading about Service Fabric, I know Service Fabric provides microservices framework models like stateful, stateless and actor but other than that it also provides GuestExecutables or Containers as well which is what Kubernetes also does manage/orchestrate containers. Can anyone explain a detailed difference between the two?

Ali Kahoot
  • 3,371
  • 2
  • 22
  • 27

2 Answers2

101

Caveat: as noted by joniba in the comments, the original answer (see below) presents Fabric and Kubernetes are somehow similar, with the differences being nuanced.

That contasts with Ben Morris's take, which asked in Feb. 2019: "Now that Kubernetes is on Azure, what is Service Fabric for?":

One of the sticking points of Service Fabric has always been the difficulty involved in managing a cluster with patchy documentation and a tendency towards unhelpful error messages.
Deploying a cluster with Azure Service Fabric spares you some of the operational pain around node management, but it doesn't change the experience of building applications using the underlying SDKs.

For the "nuances" differences, read on (original answer):


Original answer:

You can see in this project paolosalvatori/service-fabric-acs-kubernetes-multi-container-appthe same containers implemented both in Service Fabric, and in Kubernetes.

Their "service" (for external ingress access) is different, with Kubernetes being a bit more complete and diverse: see Services.

The reality is: there are "two slightly different offering" because of market pressure.
The Microsoft Azure platform, initially released in 2010, has implemented its own Microsoft Azure Fabric Controller, in order to ensure the services and environment do not fail if one or more of the servers fails within the Microsoft data center, and which also provides the management of the user's Web application such as memory allocation and load balancing.

But in order to attract other clients on their own Microsoft Data Center, they had to adapt to Kubernetes, released initially in 2014, which is now (2018) either adopted or closely considered by... pretty much everybody (as reported in late December)
(That does not mean one is "better" than the other,
only that the "other" is more "visible" than the first ;) )

So it is less about "a detailed difference between the two", and more about the ability to integrate Kubernetes-based system on Microsoft Data Centers.

This is in line (source: detailed here) with Microsoft continued its unprecedented shift toward an open (read: non-proprietary) staging platform for Azure (with Deis).
And Kubernetes orchestrator is available on Microsoft's Azure Container Service since February 2017.


You can see other differences in their architecture of a deployed application:

Service Fabric:

https://github.com/paolosalvatori/service-fabric-acs-kubernetes-multi-container-app/raw/master/Images/ServiceFabricArchitecture.png

Vs. Kubernetes:

https://github.com/paolosalvatori/service-fabric-acs-kubernetes-multi-container-app/raw/master/Images/KubernetesArchitecture.png


thieme mentions in the comments the article "Service Fabric and Kubernetes comparison, part 1 – Distributed Systems Architecture", from Marcin Kosieradzki.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • There is a nice artikel about Service Fabric and Kubernetes: [link](https://blogs.msdn.microsoft.com/azuredev/2018/08/15/service-fabric-and-kubernetes-comparison-part-1-distributed-systems-architecture/) – Thieme Aug 20 '18 at 12:58
  • "a bit more complete?" so you are saying it in a nice way it is better – Blue Clouds Sep 06 '18 at 06:03
  • @BlueClouds That is your interpretation. https://blogs.msdn.microsoft.com/azuredev/2018/08/15/service-fabric-and-kubernetes-comparison-part-1-distributed-systems-architecture/ shows they are actually quite different. – VonC Sep 06 '18 at 06:45
  • 2
    This is a great answer to me – nonemaw Jul 18 '22 at 08:39
  • I think this answer misleads inexperienced users into thinking that service fabric and kubernetes are somehow similar, with the differences being nuanced. IMO this is not at all the case. I strongly suggest users do not rely on this answer in choosing a container orchestration technology. – joniba Apr 16 '23 at 14:20
  • @joniba Good point, thank you for the feedback. I have included your comment in the answer for more visibility. – VonC Apr 16 '23 at 18:33
-20

Both are different. Kubernetes manages rkt or other containers.

Service Fabric is not for managing containers. In case it manages some, that does not make it its purpose. That does not enable it for a comparison with Kubernetes.

eg: When a pod dies Kubernetes puts it to other nodes immediately. The part of SF that manages containers does not do this, it is done by some other area of Service Fabric. And outside containers. And was not designed with containers in mind.

Blue Clouds
  • 7,295
  • 4
  • 71
  • 112
  • while I agree that this is not a well-explained answer to the question, I feel that the downvoting here is a bit exaggerated. It does seem to me that this answer has merit. You may see some well-thought out explanations elsewhere, e.g.: https://www.ben-morris.com/azure-service-fabric-kubernetes/ – joniba Apr 16 '23 at 14:14