hemerajs / hemera

🔬 Writing reliable & fault-tolerant microservices in Node.js https://hemerajs.github.io/hemera/
MIT License
806 stars 70 forks source link

Benchmarks #83

Closed expelledboy closed 7 years ago

expelledboy commented 7 years ago

Hi Dustin

Have been following your project, and evaluating all alternatives for a project I am about to rewrite. Have you seen the results posted at https://github.com/icebob/microservices-benchmark?

Do you feel its a fair comparison?

Also I see you have files to do benchmarks, how do I run them?

StarpTech commented 7 years ago

Hi @expelledboy thanks for the information I didn't notice that. Please follow the contribution guide https://github.com/hemerajs/hemera/blob/master/CONTRIBUTING.md don't forget to install and run NATS. After that you can run it as any other node script.

StarpTech commented 7 years ago

Do you feel its a fair comparison?

Hemera has not been designed for high performance on a single process. It has been designed to create lots of microservices doesn't matter where they live. It choose simplicity and reliability as primary goals. It act together with NATS as central nervous system of your distributed system. Transport independency was not considered to be a relevant factor. In addition we use pattern matching which is very powerful. The fact that Hemera needs a broker is an argument which should be taken into consideration when you compare hemera with other frameworks. The relevant difference between microservice frameworks like senecajs, molecurer is not the performance or modularity its about the complexity you need to manage. Hemera is expert in providing an interface to work with lots of services in the network, NATS is the expert to deliver the message at the right place. Hemera is still a subscriber of NATS with some magic in routing and extensions. We don't have to worry about all different aspects in a distributed system like routing, load-balancing, service-discovery, clustering, health-checks ... I hope you can get now a better picture of what hemera is.

UPDATE: I request an update of the benchmark to test the frameworks under similiar conditions https://github.com/icebob/microservices-benchmark/issues/2

StarpTech commented 7 years ago

If you have any questions join the gitter channel. Thanks.