Deploying NodeJs to Service Fabric Cluster

1.2k views Asked by At

Has Anyone had any experience to deploy a RESTFul nodejs service to service fabric?

What tools are possible, Jenkins or even code ship

2

There are 2 answers

0
MicroMan On

Found a knowledge base article from Microsoft here, looks like you just package it up and drop in into a folder location for Service fabric to consume

https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-deploy-multiple-apps

4
Aleksey On

To deploy a RESTFul node.js service to service fabric you need to have a Node.js host - to actually run your JavaScript. There are three options for doing that:

  1. Create custom executable and deploy it as a Service Fabric guest. Example: https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-deploy-multiple-apps

  2. Use Docker containers on Service Fabric: https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-tutorial-package-containers

  3. Use SupercondActor to host Node.js API natively inside Service Fabric stateless service. See GitHub repo: https://github.com/SupercondActor/platform-app-angular