Node.js and C# are both described as 1st class support in Azure Functions.
Is there any comparative documentation (or feedback) on using Node.js vs C#?
My concerns are about Azure integrations and performances
What are the use cases on choosing either Node.js or C# (except language preference)
If you only look at that aspect, you might think that JavaScript can replace C in every area. However, it can't because C is a compiled language, whereas JavaScript is an interpreted language, and compiled languages tend to be faster as they are compiled to native machine code.
Yes, Node. js has a great portion of it written in C/C++ and a lot of its modules are actually implemented in C/C++. Just like any other javascript project out there, Node. js internally has a collection of dependencies that it uses to actually execute your code.
C++ compiles directly to a machine's native code, allowing it to be one of the fastest languages in the world, if optimized. On the other hand, Node. js is detailed as "A platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications".
C++ uses the CPU and performs up to 10X faster than Node.
We're working hard to make sure there are no functional gaps between the first class languages like C# and Node.
You may notice small performance differences between the two depending on the scenario, but we're trying to make sure those are negligible (for example, currently, you may notice slower startup time with C# because of compilation requirements, but we'll be addressing that by GA, from there, C# functions are executed from a compiled assembly)
C# does offer some deeper integration with the model exposed by the WebJobs SDK, allowing you to bind to any supported binding type, but in Node, we offer mechanisms to address most of the scenarios that would require specific binding types.
Again, we are committed to providing a great experience for the first class languages we support and the choice will come down to personal preference/project requirements.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With