Skip to content
This repository was archived by the owner on Mar 17, 2023. It is now read-only.
This repository was archived by the owner on Mar 17, 2023. It is now read-only.

RangeError: Invalid string lenght #24

@pontarolli

Description

@pontarolli

Hello, I am a graduate student in electrical engineering from the State University of São Paulo, Brazil - SP and we are using the molecular framework as the basis for our project.

We would like to do the orchestration and choreography of microservices applied in an industrial plant to control a level mesh comparing the total execution time as well as the time of each route.

To do this we saw that you have the molecular-console-tracer module, we created a basic orchestration service to call each node's hello services sequentially:

// services/ orchestration.service.js

"use strict";

module.exports = {
	name: "orchestration", 
	actions: {   
		async start(ctx){			
			await ctx.call("greeter.hello",{},{nodeID: "node-12"})
			await ctx.call("greeter.hello",{},{nodeID: "node-13"})
			await ctx.call("greeter.hello",{},{nodeID: "node-21"})
	   }
	},
};

We did 2 tests before we ran our application to understand it better. The provision of services was distributed as follows in the tests:

Test 1:
image

Result 1
image

Test 2:
image

Result 2

image

As you can see in our test 2 when calling node-21's greeter.hello service that is on raspberry we got an error (RangeError: Invalid string lenght) show in the figure above in results.

Could you help me remedy this mistake?

Taking advantage of the post I would like to better understand how these times are measured, ie when the time starts and when it ends, and know where these values ​​are stored if you want to build a mean and standard deviation graph. I say this because I got a little confused in test 1, because we have two api.rest in the result should not be just one, api.rest gives two different times api.rest 28ms and api.rest 3ms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions