Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node.js vs C# for Azure Functions : How to choose regarding performance and integration

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)

like image 455
Yves M. Avatar asked Jun 21 '16 16:06

Yves M.


People also ask

Is C better than JavaScript?

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.

Does node js use C?

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.

Which is better C++ or node JS?

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".

Is NodeJS faster than C++?

C++ uses the CPU and performs up to 10X faster than Node.


1 Answers

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.

like image 132
Fabio Cavalcante Avatar answered Sep 22 '22 15:09

Fabio Cavalcante