Difference Between NestJS and Moleculer Js

Anshul Basandani
2 min readMay 28, 2021

--

If you are planning to have your MicroServices created in NodeJs. Below Differences will help choose better Framework for your upcoming MicroServices as per your requirements.

As per the NPM download trends so far NestJs is winning the game (as shown below) link:

But still I feel instead of following the flock let’s just find the difference between the two as per the common design requirements for new MicroServices.

Load Testing

Below load testing is done via apache ab. where

Services were running on: C5.large Ec2 instances

moleculerJS
-n -c p50 p95 p99 p100
100 10 4 8 8 8
10000 100 13 37 58 61
100000 500 24 46 1044 3063
100000 700 36 60 1055 7822
1000000 500 40 53 1029 65310
100000 1000 38 78 1294 15336
nest (with fastify)
-n -c p50 p95 p99 p100
100 10 3 5 6 6
10000 100 12 25 43 45
100000 500 12 26 1036 3055
100000 700 26 50 1047 4354
1000000 500 13 34 1032 7311
100000 1000 13 55 1228 7297
nest (without fastify)
-n -c p50 p95 p99 p100
100000 500 68 107 1054 13174
100000 700 72 113 1075 26459
100000 1000 72 118 1310 20563

References

--

--

Responses (1)