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
7
votes
3 answers

rdkit: How to show molecular's atoms number

Hello1 I was trying to use rdkit pack to finish the work of displaying the molecular's atom numbers in Jupyter Notebook ,"import IPython.core.interactiveshell" and "import InteractiveShell" ,and "from rdkit.Chem.Draw import DrawingOptions"…
jFang
  • 71
  • 1
  • 3
3
votes
1 answer

NATS with moleculer. How can I change NATS max_payload value?

My problem is that I need to increase max_payload value that NATS receive but I have no idea where I can do it. The project is using Moleculer and NATS is created as a container with docker. When I try to make a request which is bigger than 1MB…
2
votes
1 answer

I cannot run up the docker compose of moleculer demo with error `Service name can't be empty!`

I follow this moleculer tutorial: When I execute the 7th step: 7. We create docker-compose.yml and define our services in it: and run it up. I get issue, I cannot start up the other three containers: the error info is below : Service name can't…
qg_java_17137
  • 3,310
  • 10
  • 41
  • 84
2
votes
0 answers

How to mock MongoDB client event listeners?

I am confused when trying to mock event listeners using jest. Any suggestions are welcome. MongoDB Node.js Driver version 4.1.2 index.js const { MongoClient } = require('mongodb'); const service = { name: 'mongo', created() { this.client =…
2
votes
0 answers

Moleculer custom metrics not exported when running inside container

I'm using moleculer with prometheus reporter and I have a strange situation. I created a simple service that export a custom metric like so: created() { this.broker.metrics.register({ type: "gauge", name: "firebase_push_total", …
jamalazza
  • 21
  • 3
2
votes
1 answer

How to implement swagger, when we are using moleculer framework for Microservices

I am not able to find how to implement swagger when we are implementing Microservice using Moleculer framework, as i am using Api-gateway to parse and map the request and send to specific Node or service using NATS transporter.
2
votes
1 answer

Is it possible create a moleculer service with many Validator instances?

I would like to have more than one Validator instance on my service to handle different languages. Is there any way to implement that? Something like that: { en: new Validator({ messages: { ... }}), de: new Validator({ messages: { ... }}) …
aquilesb
  • 2,182
  • 1
  • 19
  • 19
1
vote
0 answers

Moleculer Framework- Download a file from MongoDB where the data is in binary format

I need to develop an API which when gets a GET response with an ID it should download a file where it is stored in MongoDB as a Binary buffer. If I try to print the binary buffer to console.log it works fine but cannot store it to a file or download…
1
vote
1 answer

How to resolve populate with different field instead of _id in MoleculerJS

I am creating a service to query Tasks collection from the MongoDB. It have a custom id field called uId, and a task store other uId of other taks in its field named subtask. I want to populate the field subtask, the task model is this task model I…
1
vote
1 answer

How are Moleculer transporters are different from http request calls?

I am implementing microservices architecture, there I learned a new topic "Transporter" which is used for the communication between different services. But the same thing we can also build with request calls using packages like "axios",…
ADITYA HAZARIKA
  • 300
  • 1
  • 4
  • 13
1
vote
0 answers

Data are wiped at least once a day (docker instance)

My data is deleted every day. The mongo server run under docker, and i never encounter this issue on my local computer. On the docker side: The mongo setup is set to persistant data volumes: - mongodata:/data/db There is no rebuild of the mongo…
RockerOne
  • 11
  • 1
1
vote
1 answer

Using moleculer for microservices in monolith

I am in the process of implementing the backend for a business idea in moleculer microservice framework. It works quite well for now using the NATS transporter. In the near future the number of messages will stay quite low (compared to this example…
StephanB
  • 315
  • 2
  • 17
1
vote
1 answer

how to change the result of a map by another format React

I would like to explain my problem of the day. I am currently making a request on postman (which works correctly) My back getPackIntegrations: { rest: "GET /:id/integrations", resource: { name: "/packs/${id}", scope:…
Neff
  • 199
  • 2
  • 17
1
vote
1 answer

How to use MongoDB aggregate in Moleculer

I am new to moleculer framework. I want to use MongoDB's aggregate with moleculer framework it is possible ? Can anybody tell me how to write MongoDb's aggregate query in moleculer framework. Thanks in advance.
1
vote
1 answer

MoleculerJs with Jaeger tracing: how to trace follow up action calls (new spans) in one trace

I would like to display all my traces like in the examples from the moleculer-jaeger package: But what i get is something like this: All spans you can see in this picture should be within the main trace (gateway). Here is my…
JustAMicrobe
  • 427
  • 6
  • 15
1
2 3 4 5 6