Questions tagged [moleculer]

Moleculer is a progressive microservices framework for Node.js

Moleculer is a progressive microservices framework for Node.js. It helps you to build efficient, reliable & scalable services. Moleculer provides many features for building and managing your microservices.

84 questions
0
votes
1 answer

PostgreSQL connection (through pg-promise) service problem

I have created the following db_postgres service which works fine. db_postgres.service.js "use strict"; const Promise = require('bluebird'); const initOptions = { promiseLib: Promise, capSQL: true }; const pgp =…
SONewbiee
  • 363
  • 2
  • 15
0
votes
1 answer

any idea when the Moleculer TCP transport will graduate from experimental?

I see in git that the Moleculer TCP transport is about 4 months old, and is still flagged as experimental. Any idea when this may be production ready ?
0
votes
1 answer

moleculer add validation rule on date format

I have below api created by moleculer framework, there is EventDate parameter, how can I specify the format and apply validation rule to check receiving date createEvent: { params: { UserId: { type:…
Safwan Hijazi
  • 2,089
  • 2
  • 17
  • 29
-1
votes
1 answer

How to access post parameters from bodyParser using moleculer.js

I am digging into moleculer.js the only thing i am finding difficult to understand;how to get parameters inside actions of a service below given is my code const ApiGateway = require("moleculer-web"); module.exports = { name: "api", mixins:…
Benson OO
  • 477
  • 5
  • 22
-1
votes
1 answer

Statically configure a microservice to run on a specific machine

I created a 4 micro-services using the Moleculer framework with docker-compose. How do I statically configure each micro-service to run on a specific machine.
-1
votes
1 answer

Loading services methods before and after broker has started

Please, clarify the methods that can be used for loading services before and after broker has started. Tia
SONewbiee
  • 363
  • 2
  • 15
-2
votes
3 answers

Nodejs with molecular micro services application, how to keep running server

I am using NodeJS with Molecular, using "npm run dev" to run the application. When the console closes the application is getting down, how to run the application as background service, while in NodeJS I use "Forever" module, can i use it or any…
Pvvd Prasad
  • 179
  • 1
  • 1
  • 8
-3
votes
1 answer

Understand how middleware works in Moleculer

I understand Mix-ins are to extend a common functionality across services. But Im not able to understand how middleware works in molecular and what problems It could help me solve.
1 2 3 4 5
6