Documentation

Welcome to the Moleculer documentation. Navigate through the documentation to learn more. If you encounter any problems when using Moleculer, open an issue on GitHub or write to us on Gitter.

What is Moleculer?

Moleculer is a fast, modern and powerful microservices framework for NodeJS. It helps you to build efficient, reliable & scalable services. Moleculer provides many features for building and managing your microservices.

Features

  • Promise-based solution
  • request-reply concept
  • support event driven architecture with balancing
  • built-in service registry & auto discovery
  • load balanced requests & events (round-robin, random, custom)
  • supports middlewares
  • service mixins
  • multiple services on a node/server
  • built-in caching solution (memory, Redis)
  • pluggable transporters (NATS, MQTT, Redis)
  • pluggable serializers (JSON, Avro, MsgPack, Protocol Buffer)
  • pluggable validator
  • every nodes are equal, no master/leader node
  • parameter validation with fastest-validator
  • distributed timeout handling with fallback response
  • health monitoring, metrics & statistics
  • supports versioned services
  • official API gateway module and many other modules…
Requirements

Moleculer is written in ES2015. The minimum version of NodeJS is v6.x.x.

How fast?

We spent a lot of hours to improve the performance of Moleculer and create the fastest microservices framework for NodeJS.

Result chart
Result chart

You can check the results in your computer! Just clone this repo and run npm install && npm start.

Check out our benchmark results.