lem

lemans

Virtual actor framework for node.js

Showing:

Popularity

Downloads/wk

7

GitHub Stars

13

Maintenance

Last Commit

4yrs ago

Contributors

0

Package

Dependencies

2

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

LeMans: Virtual actor framework for node.js

LeMans is a framework to writing distributed systems using virtual actors in JavaScript. It allows developers to write scalable applications while simplifying concurrency, state management and actor lifetime.

LeMans was inspired by the fine work of Microsoft Research on Orleans for the .NET framework. LeMans shares many of the same concepts and syntax as Orleans, but has a much different implementation due to the single-threaded nature of node and the use of isolated worker processes.

Basic Example

npm install --save lemans

const { Silo, GrainFactory, Grain } = require('lemans');

(async () => {
  const silo = new Silo({
    grains: {
      HelloGrain: class extends Grain {
        async sayHello() {
          return `Hello from HelloGrain with key ${this.key}`;
        }
      }
    }
  });

  await silo.start();

  if (silo.isWorker) {
    try {
      const grain = await GrainFactory.getGrain('HelloGrain', 'someGrainKey');
      console.log(await grain.sayHello());
    } catch (e) {
      console.error(e);
    }
  }
})();

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial