The following forum(s) have migrated to Microsoft Q&A (Preview): Azure Service Fabric!
Visit Microsoft Q&A (Preview) to post new questions.

Learn More

FabricClient cross cluster RRS feed

  • Question

  • Hi,

    Is there an example of using FabricClient to make cross cluster communications?

    e.g. sateless WebAPI in Cluster A can call Stateful Actor service in Cluster B?


    Wednesday, December 7, 2016 2:02 PM


All replies

  • FabricClient is about "Creates and manages Service Fabric services and other entities.", here is the link:

    When you want to access a service on another cluster, it is still about accessing a public endpoint exposed by the service of that cluster, using remoting, WebAPI, WCF, etc.


    Wednesday, December 7, 2016 5:31 PM
  • Thanks Franks. I have read the page but still not very clear how to make the cross cluster calls.

    Can you please provide a code sample?

    Thursday, December 8, 2016 4:41 PM
  • Stratford,

    I suppose the fastest approach to demonstrate cross fabric call is to do the following:

    1. Install the 'AlphabetPartition' service in a local Cluster. The service is stateful and contains partitions and can be called using something like http://localhost:8081/partitionservice/?lastname=asdf.

    2. Once this is working, move the service into Azure and confirm that it still works (url will be different of course) calling from the internet.

    3. Then create a Stateless service and call 'AlphabetPartition' using the same url.

    I think this will be the simplest demonstration. There will need to be other configurations to make this production grade.

    Hope this helps.


    Thursday, December 8, 2016 9:02 PM