简体   繁体   English

Azure Service Fabric 应用程序

[英]Azure Service Fabric Application

Can you guys explain你们能解释一下吗

  1. Service Fabric can be packaged with MULTIPLE SERVICES to be shipped but then how do you reuse some of these services into other Application? Service Fabric 可以与 MULTIPLE SERVICES 打包在一起进行传输,但是如何将其中一些服务重用于其他应用程序?

  2. Is there a way Reliable Dictionary or Reliable Queue may be shared among services deployed on Same Cluster?是否可以在同一集群上部署的服务之间共享可靠字典或可靠队列?

    I tried reading on google but no clear understanding.我尝试在谷歌上阅读,但没有明确的理解。 Your help will be really appreciated.您的帮助将不胜感激。

... how do you reuse some of these services into other Application? ...您如何将其中一些服务重用于其他应用程序?

What do you mean with reuse?重用是什么意思? Sharing the code?共享代码? You could have a service in Application A talk to a service in Application B instead of having the same service in Application A.您可以让应用程序 A 中的服务与应用程序 B 中的服务对话,而不是在应用程序 A 中使用相同的服务。

Is there a way Reliable Dictionary or Reliable Queue may be shared among services deployed on Same Cluster?是否可以在同一集群上部署的服务之间共享可靠字典或可靠队列?

No there is not.不,没有。 A Reliable Dictionary or Reliable Queue provides data locality to a service removing the need for additional network calls. Reliable Dictionary 或 Reliable Queue 为服务提供数据局部性,无需额外的网络调用。 As soon as you need this same data for multiple services you should consider using other storage solutions like CosmosDB, Blob storage or another database.一旦您需要为多个服务使用相同的数据,您就应该考虑使用其他存储解决方案,如 CosmosDB、Blob 存储或其他数据库。

If you are looking for some kind of distributed cache you can take a look at Azure Redis.如果您正在寻找某种分布式缓存,您可以查看 Azure Redis。

It is, however, entirely possible to expose the data of a Reliable Dictionary or Reliable Queue using a service.然而,完全有可能使用服务公开可靠字典或可靠队列的数据。 Then that service acts like a data provider / repository.然后该服务就像一个数据提供者/存储库。 You can expose methods like Add() or Delete() in such a service that results in an update of the Reliable Dictionary or Reliable Queue.您可以在此类服务中公开诸如 Add() 或 Delete() 之类的方法,从而导致 Reliable Dictionary 或 Reliable Queue 的更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM