- Microservices with Azure
- Namit Tanasseri Rahul Rai
- 240字
- 2021-07-02 22:18:27
Automatic fault tolerance
The cluster manager of Service Fabric ensures failover and resource balancing in case of a hardware failure. This ensures high availability of the services while minimizing manual management and operational overhead.
For a stateless service, Service Fabric lets you define an instance count, which is the number of instances of the stateless service that should be running in the cluster at a given time. The service can be scaled up by increasing the number of instances.
When Service Fabric detects a fault on an instance, it creates a new instance of the service on a healthy node within the cluster to ensure availability. This process is completely automated.
The story becomes a bit more complex for a stateful service. Service Fabric replicates a stateful service on different nodes to achieve high availability. Each replica will contain code used by the service and the state. All write operations are performed on one replica called the primary replica. All other replicas are called secondary replicas. Changes to state on the primary replica are automatically replicated to the secondary replicas by the framework. Service Fabric supports the configuration of a number of active secondary replicas. The higher the number of replicas, the better the fault tolerance of a service.
If the primary replica fails, Service Fabric makes one of the secondary replicas the primary replica and spins up a new instance of a service as a secondary replica.
- 微服務設計(第2版)
- Java高手真經(高級編程卷):Java Web高級開發技術
- 名師講壇:Spring實戰開發(Redis+SpringDataJPA+SpringMVC+SpringSecurity)
- Mastering Drupal 8 Views
- Python Data Analysis Cookbook
- Learning OpenCV 3 Computer Vision with Python(Second Edition)
- Visual Basic程序設計實驗指導(第二版)
- Access 2010中文版項目教程
- 深入實踐Kotlin元編程
- 硬件產品設計與開發:從原型到交付
- 大規模語言模型開發基礎與實踐
- Applied Deep Learning with Python
- Hadoop Blueprints
- Android項目實戰:博學谷
- Vue.js從入門到精通