IBM Cloud Functions Adds Support for .NET Core 2.2
5 min read
What’s happening with IBM Cloud Functions and .NET Core?
I’m excited to announce that IBM Cloud Functions officially supports .NET Core 2.2 natively. Now, you can join the serverless revolution and start building cloud-native apps without worrying about scaling or infrastructure management by using Functions as a Service.
Ready to try it out?
-
Create a C# project called `Example.`
-
Install the Newtonsoft.Json NuGet package.
-
Edit the Example/Class1.cs file.
-
Compile the code.
-
Create a .zip of the out directory.
-
Create a web action with the IBM Cloud Functions CLI plugin by running the following command.
-
Get the URL for the web action by running the following command.
-
Open the URL in your browser.
How fast are .NET Core Functions?
Actions using the .NET Core runtime are very performant with an overhead similar to the fast Node.js runtime.
Here is a chart that compares the latency of a hello world Action in .NET vs. Node.js.
How do I learn more?
To see how easy it is to set up a project and compile your .NET Core Actions, check out the documentation.