Home > Enterprise >  REST API with methods using different programming languages
REST API with methods using different programming languages

Time:07-07

  • I assume that an App Service as part of an App Service Plan
    • could have methods not all in the same language.

Someone I work with stated you should have 2 App Services, e.g. one for python and one for Scala. Is this so?

CodePudding user response:

Correct, you will need different App Services per runtime/language. They can share the same App Service Plan, if the runtime is supported by the Operating System of the App Service Plan.

A linux based App Service Plan gives the most choices, according to the docs

Supported languages include: Node.js, Java (JRE 8 & JRE 11), PHP, Python, .NET Core, and Ruby.

CodePudding user response:

No

You can have more than one app running on app service, each app runs in its own sandbox. Note that you will be charged on collective usage of resources on your app service. Although I can understand why one would want two independent app service plans - management is much simpler. You can scale your services independent of each other. If service A is being consumed 10 times more than service B, you have the flexibility of scaling it independently of the other service with it being on separate plan.

App service vs. VM - https://karansinghreen.medium.com/azure-virtual-machine-or-azure-app-service-which-one-should-you-choose-d4ba7d4a120d

VMs are preferable solution in certain scenarios. Not all languages are supported on app service plans.

Read more here about app services - https://docs.microsoft.com/en-us/azure/app-service/overview

  • Related