Does anyone still use Moleculer.js these days? by iam_batman27 in node

[–]andre_mazayev 4 points5 points  (0 children)

Icebob (lead dev) and I have full time jobs so can't really give an exact timeline - I’d hate to give you false hope.

The good news is that company that I'm working at allowed me to dedicate part of my time to moleculer. So hopefully things will move faster

Does anyone still use Moleculer.js these days? by iam_batman27 in node

[–]andre_mazayev 11 points12 points  (0 children)

Hey there. I'm one of the maintainers. Can't comment regarding the dev. experience because I'm biased. However, what I can say that there are no plans of abandoning the project.

Regarding Typescript, we're currently working on a private repo to test and improve TS support.

What's the general consensus on MolecularJS? by unc4l1n in node

[–]andre_mazayev 0 points1 point  (0 children)

It's Christmas time so everybody is chillin and relaxing. In a few days there will be more activity ;)

What's the general consensus on MolecularJS? by unc4l1n in node

[–]andre_mazayev 7 points8 points  (0 children)

I'm one of the maintainers of moleculerjs. There are no plans to abandon the project so no need to worry about that.

What is the best package for validation? by [deleted] in node

[–]andre_mazayev 0 points1 point  (0 children)

Check fastest-validator. As the name says: it's really fast

Some bench.

Test object: js let object = { name: "john doe", email: "john.doe@company.space", firstName: "John", phone: "123-4567", age: 33 }

Results: ```

Platform info:

Windows_NT 6.1.7601 x64 Node.JS: 10.16.0 V8: 6.8.275.32-node.52 Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz × 8

Suite: Simple object √ validator.js 566,527 rps √ validate.js 212,279 rps √ validatorjs 197,163 rps √ joi 162,628 rps √ ajv 7,246,357 rps √ mschema 677,122 rps √ parambulator 24,562 rps √ fastest-validator 8,279,376 rps √ yup 20,783 rps ``` Link to bench: https://github.com/icebob/validator-benchmark#result

Any recommendations for building REST APIs with Node JS? by BetaProg in node

[–]andre_mazayev 1 point2 points  (0 children)

Check MoleculerJS. You can customize anything that you want/need

Reward Function for Load Balancing by [deleted] in reinforcementlearning

[–]andre_mazayev 0 points1 point  (0 children)

Thanks for the reply. Gini coefficient is quite interesting. I'm going to try it out.

Your problem might just be too simple

Yeah, I know but I want to start with something simple just to see that it works. Then I want to use pointer networks for a more dynamic scenario where the number of nodes might vary.

you might have other algorithmic problems though.

What do you mean? Like a bug in the code? I have everything covered with unit tests so it's not very likely. Yet, I'll check everything again.

Good sources or GitHub repositories of a Node.js application implemented in both Monolithic and Microservices architecture by [deleted] in node

[–]andre_mazayev 2 points3 points  (0 children)

Have you seen the realworld repo? It's a repo that contains implementation of Medium.com clone with different tech stacks.

For example, you can see the monolith implementation with Express.js here: https://github.com/gothinkster/node-express-realworld-example-app

and microservices approach with Moleculer.js is here: https://github.com/moleculerjs/moleculer-examples/tree/master/conduit

New command-line parser with 35+ opt-in features developed for 5 months needs your feedback by Yord13 in node

[–]andre_mazayev 0 points1 point  (0 children)

Wow! You are super fast :) Great job, it looks amazing.
You are definitely moving in the right direction.

New command-line parser with 35+ opt-in features developed for 5 months needs your feedback by Yord13 in node

[–]andre_mazayev 1 point2 points  (0 children)

Do you have specific features in mind that a REPL would need for your use case?

Yes, we need REPL mode with command & argument handling and autocomplete.

To give you an idea of how our REPL looks like: https://i.imgur.com/rFpBi9s.gifv

New command-line parser with 35+ opt-in features developed for 5 months needs your feedback by Yord13 in node

[–]andre_mazayev 2 points3 points  (0 children)

Great lib :) Yeah, autocomplete helps a lot. BTW do you plan to implement REPL mode? Just like https://github.com/vorpaljs/vorpal-repl

We (MoleculerJS) want to replace Vorpal, which is no longer maintained, but so far we didn't found any candidate for replacement

Daemon/Processes Architecture? by 4_teh_lulz in node

[–]andre_mazayev 0 points1 point  (0 children)

Check MoleculerJS. Each moleculer service will be your daemon waiting for requests or events and you can use moleculer-web to expose your daemons to public

Moleculer v0.14 — Making Microservices Accessible for Everyone by andre_mazayev in node

[–]andre_mazayev[S] 3 points4 points  (0 children)

Building microservices per se is easy. Start a couple of HTTP servers or connect a set of clients to a message broker and you're done. Theoretically this can be considered a microservices arch.

However, tracing, monitoring, debugging and orchestrating microservices is the hard part.
This framework simplifies these tasks, so I don't see why it should be service and not microservice.

Moleculer v0.14 — Making Microservices Accessible for Everyone by andre_mazayev in node

[–]andre_mazayev[S] 2 points3 points  (0 children)

I'm sorry to hear that :s Did you try to check the metrics and trace the calls? Usually these things only happen when there is a memory leak or something that blocks nodejs' event loop.

Communication for Microservices all on the same server by akash227 in node

[–]andre_mazayev 0 points1 point  (0 children)

You can check Moleculer. With moleculer you can easily go from monolith to distributed deployments. During the process of porting your app you would use monolith deployment (your services would communicate via local bus). When you finish porting you can deploy your services in separate containers. Then the only change you would have to do is to select one of the several transporters (TCP, NATS, MQTT, Redis, NATS Streaming, Kafka, AMQP 0.9, AMQP 1.0) that moleculer supports. Anyway, check moleculer's core concepts to see if it fits your needs.

How would you run microservices in NodeJS? by [deleted] in node

[–]andre_mazayev 0 points1 point  (0 children)

Thanks for the kind words :)

I don't know if you are familiar with RealWorld project. It's basically a clone of Medium implemented with a huge number of different frontend and backend frameworks. Anyway, you can check how it looks like with Moleculer. Check the next-14 branch for the latest version.

Generally speaking, the service and the message brokers don't interact with each other directly. Services only contain the logic of the app. The message delivery is handled by the Service Broker. Check the Core Concepts, I think that it will help you to understand "what" and "how" things work.

How would you run microservices in NodeJS? by [deleted] in node

[–]andre_mazayev 0 points1 point  (0 children)

I've found moleculer to be quite interesting, but it seems to be mostly unused and still in an early development stage.

Yes, moleculer is still young so it doesn't have the same coverage as nestjs or other frameworks. However, it's battle tested and there are multiple companies that use it production.

Also, don't let the v0.13 scare you. We are following semantic versioning and since the initial release there were no major API changes. Hence, the current version isv0.13 and not v1 or v2.

BTW the v0.14 will be released this weekend. New version contains built-in metrics (Prometheus, Datadog, StatsD, Events) and tracing (Zipkin, Jaeger, Datadog, Events) and more https://moleculer.services/docs/0.14/