Service Fabric 应用程序和后续步骤Your Service Fabric application and next steps

已创建 Azure Service Fabric 应用程序。Your Azure Service Fabric application has been created. 本文包含许多资源、你可能感兴趣的更多信息以及可能的后续步骤This article includes a number of resources, some more information you might be interested in, and potential next steps.

新用户可能会发现教程、演练和示例有所帮助。New users may find tutorials, walkthroughs, and samples helpful. 检查所创建应用程序项目的结构也很有用。It can also be useful to examine the structure of the created application project. 还包括 Service Fabric 编程模型服务通信应用程序安全应用程序生命周期的说明。Also included are descriptions of Service Fabric's programming models, service communication, application security, and application lifecycle.

较有经验的用户可能会发现 Service Fabric 最佳做法部分对了解如何以最大效率利用平台和构造应用程序非常有用。More experienced users may find the Service Fabric best practices section useful to learn how to take advantage of the platform and structure applications with maximum efficacy.

如有疑问或反馈,或想要报告问题,请参阅相应部分For those with questions or feedback, or who are looking to report an issue, see the corresponding section.

快速入门教程、演练和示例Get started with tutorials, walk-throughs, and samples

准备好开始了吗?Ready to get started?

按照 .NET 应用程序教程进行操作。Work through the .NET application tutorial. 了解如何使用 ASP.NET Core 前端和监控状态的后端构建应用,如何为群集部署应用程序配置 CI/CD 以及如何设置监视和诊断Learn how to build an app with an ASP.NET Core front-end and a stateful back-end, deploy the application to a cluster, configure CI/CD, and set up monitoring and diagnostics.

或尝试以下某个演练并创建第一个...Or, try out one of the following walk-throughs and create your first...

还可以尝试示例应用程序You may also be interested in trying out our sample applications.

应用程序项目The application project

每个新应用程序都包含一个应用程序项目。Every new application includes an application project. 根据选择的服务类型,可能有一个或两个附加的项目。There may be one or two additional projects, depending on the type of service chosen.

应用程序项目包括:The application project consists of:

  • 对构成应用程序的服务的引用集。A set of references to the services that make up your application.
  • 三个发布配置文件(1-本地节点、5-本地节点和云),可用于维护首选项以适应不同的环境,诸如与群集终结点相关的首选项,以及是否按默认执行升级部署。Three publish profiles (1-Node Local, 5-Node Local, and Cloud) that you can use to maintain preferences for working with different environments--such as preferences related to a cluster endpoint and whether to perform upgrade deployments by default.
  • 三个应用程序参数文件(同上),可用于维护环境特定的应用程序配置,例如,要为服务创建的分区数目。Three application parameter files (same as above) that you can use to maintain environment-specific application configurations, such as the number of partitions to create for a service. 了解如何为多个环境配置应用程序Learn how to configure your application for multiple environments.
  • 可使用部署脚本从命令行部署应用程序,或者通过自动持续集成和部署管道来部署应用程序。A deployment script that you can use to deploy your application from the command line or as part of an automated continuous integration and deployment pipeline. 深入了解如何使用 PowerShell 部署应用程序Learn more about deploying applications using PowerShell.
  • 用于描述应用程序的应用程序清单。The application manifest, which describes the application. 可以在 ApplicationPackageRoot 文件夹下查找清单。You can find the manifest under the ApplicationPackageRoot folder. 深入了解应用程序和服务清单Learn more about application and service manifests.

了解有关编程模型的详细信息Learn more about the programming models

Service Fabric 提供了多种方法来编写和管理服务。Service Fabric offers multiple ways to write and manage your services. 以下是无状态与有状态 Reliable ServicesReliable Actors容器来宾可执行文件无状态与有状态 ASP.NET Core 服务的概述和概念信息。Here's overview and conceptual information on stateless and stateful Reliable Services, Reliable Actors, containers, guest executables, and stateless and stateful ASP.NET Core services.

了解服务通信相关信息Learn about service communication

Service Fabric 应用程序由不同的服务组成,其中每个服务执行专门任务。A Service Fabric application is composed of different services, where each service performs a specialized task. 这些服务之间可以相互通信,并且存在连接到服务并与之通信的群集外客户端应用程序。These services may communicate with each other and there may be client applications outside the cluster that connect to and communicate with services. 了解如何在 Service Fabric 中设置与服务进行的通信以及服务之间的通信Learn how to set up communication with and between your services in Service Fabric.

了解配置应用程序安全性的相关信息Learn about configuring application security

可以保护群集中以不同用户帐户运行的应用程序。You can secure applications that are running in the cluster under different user accounts. 使用用户帐户进行部署时,Service Fabric 还有助于保护应用程序所使用的资源,例如文件、目录和证书。Service Fabric also helps secure the resources that are used by applications at the time of deployment under the user accounts--for example, files, directories, and certificates. 这样,即使是在共享托管环境中,运行应用程序会更加安全。This makes running applications, even in a shared hosted environment, more secure from one another. 了解如何配置应用程序的安全策略Learn how to configure security policies for your application.

应用程序可能包含敏感信息,例如存储连接字符串、密码或其他不应以明文形式处理的值。Your application may contain sensitive information, such as storage connection strings, passwords, or other values that should not be handled in plain text. 了解如何管理应用程序中的机密Learn how to manage secrets in your application.

了解应用程序生命周期的相关信息Learn about the application lifecycle

与其他平台一样,Service Fabric 应用程序通常将经历以下几个阶段:设计、开发、测试、部署、升级、维护和删除。As with other platforms, a Service Fabric application usually goes through the following phases: design, development, testing, deployment, upgrading, maintenance, and removal. 本文提供了有关 API 的概述,并且介绍了在 Service Fabric 应用程序生命周期的各个阶段,它们如何被不同角色所使用。This article provides an overview of the APIs and how they are used by the different roles throughout the phases of the Service Fabric application lifecycle.

了解最佳做法Learn about best practices

Service Fabric 有许多介绍最佳做法的文章。Service Fabric has a number of articles describing best practices. 利用此信息来帮助确保群集和应用程序尽可能正常地运行。Take advantage of this information to help ensure your cluster and application run as well as possible. 涵盖的主题包括:The topics covered include:

还包括一个生产就绪情况清单,其中以一种易于使用的格式集成了所有最佳做法信息。Also included is a production readiness checklist that integrates all of the best practice information in an easy-to-consume format.

有问题或反馈?Have questions or feedback? 需要报告问题?Need to report an issue?

请浏览常见问题,了解有关 Service Fabric 的功能及用法方面的解答。Read through common questions and find answers on what Service Fabric can do and how it should be used.

疑难解答指南有助于诊断和解决 Service Fabric 群集中的常见问题。Troubleshooting guides can be useful to help diagnose and solve common problems in Service Fabric clusters.

支持选项列出了 StackOverflow 和 MSDN 的相关论坛和选项,可通过论坛提问并通过选项报告问题、获得支持和提交产品反馈。Support options lists forums on StackOverflow and MSDN for asking questions as well as options for reporting issues, getting support, and submitting product feedback.

后续步骤Next steps