Hi Nie Xin,
Actually, in the context of API Gateway + Lambda, there isn’t a huge performance benefit for Node.js since each function runs in isolation, and cost is calculated per call. Therefore, the boost you would get thanks to Node’s async model in a typical web-app isn’t really helpful here. If you’re doing multiple I/O calls in your function which can be handled concurrently (i.e output of one doesn’t dictate the input of the second) then you would actually benefit from it being really easy to implement in Javascript.
The real reason for choosing Node here is that we try to optimize for developer productivity and happiness and we just really like writing in it :-)
Cheers,
Rotem