420 Followers
·
Follow

Image for post
Image for post
Photo by Kelli McClintock on Unsplash

In this article, I will show you how you can bundle your Moleculer-based microservices project into an executable with pkg.

Why do we want to bundle a microservices project?

  • Making a commercial application which is executed on-premise without source code
  • Deploy it as a single file; no need to install Node.js, npm, and download millions of files via npm install
  • Minimizing the Docker image size
  • …just for fun :)

Create a sample project

To generate a Moleculer microservice project, I’m using the official “project” template with Moleculer CLI.

$ moleculer init project moleculer-demo
Image for post
Image for post
Generating a Moleculer project

Install pkg library

I’m installing the pkg library which will package the project into an executable. …


Image for post
Image for post
Photo by Maxime Le Conte des Floris on Unsplash

I would like to announce that the v0.12 version of Moleculer has been released. It is the biggest release in the history of the project with more than 200 commits and 17k additions. It has brought a plenty of excellent new features to the framework. In this post, I wish to share some useful information about the new version.

First of all, I would like to tell that I have created a Patreon profile. If you enjoy using Moleculer, this is your opportunity to support my work. You can read more here about supporting. Become a patron!

If you want to upgrade your project to v0.12, please read the full detailed Changelog because it contains breaking changes. …


Image for post
Image for post
Photo by Oli Dale on Unsplash

A few weeks ago I conducted a survey among the Moleculer users to gain information about how they use Moleculer in their projects. I also asked them to tell why they love it and what they miss.

In brief, most users love Moleculer because it is fast, simple, flexible and it has excellent and up-to-date documentation.

Here is the result of the survey:

How did you hear about Moleculer?

Image for post
Image for post

What kind of project do you use Moleculer framework in?

Image for post
Image for post

How many services do you have in your major project?

Image for post
Image for post

Do you use Moleculer in production?

Image for post
Image for post

How many nodes run your services?

Image for post
Image for post

What kind of transporter do you use?

Image for post
Image for post

What kind of cacher do you use?

Image for post
Image for post

What kind of serializer do you use?

Image for post
Image for post

Which Node version do you use?

Image for post
Image for post

What kind of logger do you use?

Image for post
Image for post

Do you use Moleculer Runner?

Image for post
Image for post

Which official package(s) do you use?

Image for post
Image for post

What kind of database(s) do you use?

Image for post
Image for post

What kind of other technologies do you use?

Image for post
Image for post

Stay tuned! Follow us on Medium and Twitter, our join the Moleculer community on Gitter chat.

About

Icebob

A full-stack javascript developer, founder of Moleculer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store