首页 > 代码库 > Azure Service Fabric

Azure Service Fabric

Concept:

  • Node - a smallest unit within a cluster to provide compute capablity
  • Nodetype - a logical naming of the tier / layer in the architecture so it can easily tag to the node, e.g. Webtier (UI + API) and ServiceTier(Backend)

Highlevel SF

SF provide whole stack for managing deployment of containers (regardless if it node or docker) and provided high availability support using cluster, upgrade individually.

Below example is a aution microservice which have different architectual layers.

  • Website (stateless)
  • API(stateless)
  • Auction (stateful)

Traditionally each tier will take up one node and form a cluster, SF provides flexiblity of placement where you can group layers in same node in the same

技术分享技术分享

Code Structure

A root level of Application project will be created accompany with creating a new sf project  for individual service, either it is stateless or stateful service.

 

技术分享  技术分享

 

Azure Service Fabric