Is Kubernetes + Docker + AWS = Azure + Service Fabric?

前端 未结 2 641
余生分开走
余生分开走 2021-02-01 23:24

I see advantages of Kubernetes which include Rolling Deployments, Automatic Health check monitoring, and swinging a new server to action when an existing one fails. I also do u

2条回答
  •  -上瘾入骨i
    2021-02-01 23:48

    Let's look first at the similarities between Kubernetes and Service Fabric.

    • They are both cloud-agnostic clustering, orchestration, and scheduling software.
    • They can both be deployed manually, by you, to any set of VMs, anywhere.
    • There are "managed" offerings for both, meaning a cloud provider like Azure or Google Cloud will host a cluster for you, but generally you still own the VMs.
    • They both deploy and manage containers.
    • They both have rich management operations, such as rolling upgrades, health checks, and self-healing capabilities.

    That's a fairly high-level view but should give you an idea of what and where you can run with each.

    Now let's look where they're different. There are a ton of small differences, but I want to focus on two of the really big conceptual differences:

    • Application model:

      • Service Fabric allows you to orchestrate any arbitrary container or EXE (whether that's a small node.js app or a giant legacy application), and in that sense it is similar to Kubernetes. But overall it is more focused on application development specifically, with programming models that are integrated with the platform. In this respect, it is more closely comparable to Cloud Foundry than Kubernetes.
      • Kubernetes is focused more on orchestrating infrastructure for an application. It doesn't really focus on how you write your application. That's up to you to figure out; Kubernetes just wants a container to run, doesn't matter what's in it.
    • State management

      • Kubernetes allows you to deploy stateful software to it, by providing persistent disk storage volumes to containers and assigning unique identifiers to pods. This lets you deploy things like ZooKeeper or MySQL.
      • Service Fabric is stateful software. Service Fabric is designed as a stateful, data-aware platform. It provides HA state and scale-out primitives. So while Kubernetes allows you to deploy stateful things, Service Fabric allows you to build stateful things. This is one of the key differences that's often overlooked. For example:
        • On Kubernetes, you can deploy ZooKeeper.
        • On Service Fabric, you can actually build ZooKeeper yourself using Service Fabric's replication and leader election primitives.
        • Kubernetes uses etcd for distributed, reliable storage about the state of the cluster.
        • Service Fabric doesn't need etcd, because Service Fabric itself is a distributed, reliable storage platform. The system services in Service Fabric make use of this to reliably store the state of the cluster. This makes Service Fabric entirely self-contained.

    The fact that Service Fabric is a stateful platform is key to understanding it and how it differs from other major orchestrators. Everything it does - scheduling, health checking, rolling upgrades, application versioning, failover, self-healing, etc - are all designed around the fact that it is managing replicated and distributed data that needs to be consistent and highly available at all times.

提交回复
热议问题