7.2.6 • Published 6 years ago

muon-core v7.2.6

Weekly downloads
124
License
AGPLv2
Repository
github
Last release
6 years ago

|=== | Master Build | NPM Stable | Snapshots | image:https://img.shields.io/teamcity/http/teamcity.simplicityitself.com/e/OpenSource_MuonReleases_Libraries_ReleaseMuonNode_2.svg[Status] | image:https://img.shields.io/npm/v/muon-core.svg[NPM] | image:https://img.shields.io/npm/v/muon-core/next.svg[NPM] |===

Muon Core - Node.js

This repo contains the Nodejs implementation of Muon Core.

What is Muon?

Microservices today are optimised for building systems that can continue to change as you need them to. The achieve this, you decompose an application into its component parts, then recompose it back together again using some form of integration technology. The most common form of integration today is RPC based, whether HTTP, gRPC or one of its friends.

RPC is a fairly simplistic model for integration, with well known flaws and foibles. The other options, messaging and event collaboration are much harder to get started with, and so are often avoided until the "v2 rewrite". Muon lets you adopt messaging and events from the start of a project, by making it easy to do the right thing with them.

Muon is fully polyglot, give you very well defined, easy to use apis that take advantage of messaging, and eventing, to recompose your distributed system in highly performant, rich communication styles, beyond RPC.

What is Muon Core?

Muon is a modular system, allowing it to be easily extended to take advantage of the best of breed technologies and leverage what you may call "legacy", giving it a new lease of life and protecting your investment.

Muon Core is the library that defines the central programming model of the system. It creates channel based communicaiton between microservices, enabling message based communication to happen. Each runtime we support has its own implementation of Muon Core. This repository is for Node.js.

It can be extended by adding one of more of:-

  • Protocol Stacks - The most important extension. This defines a messaging interaction between systems, and gives it an easy to use, language idiomatic API for you to use.
  • Transports - Take advantage of different integration technologies, service meshes, brokers. These are all enabled by a network transport.
  • Discovery - Enable a Muon system to integrate with your existing infrastructure and locate other systems across your deployment.
  • Codec - Convert objects for transport and enable defining of Schemas for client side validation. Not often extended, but available. We currently support JSON and Avro.

Using Muon Node

To use Muon, you need to use Muon Core, a transport, a discovery and one or more protocol stacks.

Install Muon, a transport, discovery and simple protocol stack (RPC) into an Npm project like so

npm install --save muon-core@next
npm install --save muon-amqp@next
npm install --save muon-stack-rpc@next

You can then create a new instance of Muon with the Discovery and Transport activated. This will appear on the network.

Setting this up is somewhat specific to the transport and discovery in question. Assuming AMQP (as above), the creation looks similar to.

source, javascript

var Muon = require("muon-core")

require("muon-amqp").attach(Muon)

var muon = Muon.create("amqp://localhost")

require("muon-stack-rpc").create(muon)

muon.handle('/', (request, respond) => { respond({ message: "Hi there!" })

})

Run this, and it will appear on the network with an RPC endpoint available for you to interact with. Read more at the RPC stack to see what you can do.

You can also see more stacks that you can include that give very different models of interaction.

Find out more about about the https://github.com/muoncore/muon-amqp[AMQP support]

Contributing to Muon Core

Contributions to Muon are very welcome.

You can contribute by filing bugs on any of the repositories, pull requests for existing issues are also welcome (please note the licensing/ copyright assignment requirements)

Apart from the existing repositories, the most useful areas to extend Muon are :-

  • Add a new stack. Got an idea or requirement for how systems should communicate? In Muon, this is expressed as a stack, with an idiomatic API. Write your own and contribute it to the community!
  • Add a transport. Is your broker not supported? Do you want to go brokerless, use direct TCP? Are you rolling out a service mesh? This is a transport.
  • Add a discovery. Etcd, Eureka, DNS. These are discovery systems, and Muon can be updated to work with any of them, and in fact, all of them at once. Write a Discovery to take advantage of them.

See documentation

License

All code is Copyright (c) Muon Core Ltd 2017.

Muon is Free Software, licensed under the terms of the LGPLv3 license as included in link:LICENSE[]

Muon has a commercial-friendly license allowing private forks and closed modifications of all projects, alongside enterprise support and extended support for enterprise technologies and patterns.

This will enable you to use Muon in any situation where your legal team will not accept a Free Software license.

Please see http://muoncore.io/pro/ for more detail. You can find the commercial license terms in COMM-LICENSE.

7.3.0-79

6 years ago

7.3.0-78

6 years ago

7.3.0-77

6 years ago

7.3.0-76

7 years ago

7.3.0-75

7 years ago

7.3.0-74

7 years ago

7.3.0-73

7 years ago

7.3.0-72

7 years ago

7.3.0-71

7 years ago

7.3.0-70

7 years ago

7.3.0-69

7 years ago

7.3.0-68

7 years ago

7.3.0-67

7 years ago

7.3.0-66

7 years ago

7.3.0-65

7 years ago

7.3.0-64

7 years ago

7.3.0-63

7 years ago

7.3.0-62

7 years ago

7.3.0-61

7 years ago

7.3.0-60

7 years ago

7.3.0-59

7 years ago

7.3.0-58

7 years ago

7.3.0-57

7 years ago

7.3.0-56

7 years ago

7.3.0-55

7 years ago

7.3.0-54

7 years ago

7.3.0-53

7 years ago

7.3.0-52

7 years ago

7.3.0-51

7 years ago

7.3.0-50

7 years ago

7.3.0-49

7 years ago

7.3.0-48

7 years ago

7.3.0-47

7 years ago

7.3.0-46

7 years ago

7.3.0-45

7 years ago

7.3.0-44

7 years ago

7.3.0-43

7 years ago

7.3.0-42

7 years ago

7.3.0-41

7 years ago

7.3.0-40

7 years ago

7.3.0-39

7 years ago

7.3.0-38

7 years ago

7.3.0-37

7 years ago

7.3.0-36

7 years ago

7.3.0-35

7 years ago

7.3.0-34

7 years ago

7.3.0-33

7 years ago

7.3.0-32

7 years ago

7.3.0-31

7 years ago

7.3.0-30

7 years ago

7.3.0-29

7 years ago

7.3.0-28

7 years ago

7.3.0-27

7 years ago

7.3.0-26

7 years ago

7.3.0-25

7 years ago

7.3.0-24

7 years ago

7.3.0-23

7 years ago

7.3.0-22

7 years ago

7.3.0-21

7 years ago

7.3.0-20

7 years ago

7.3.0-19

7 years ago

7.3.0-18

7 years ago

7.3.0-17

7 years ago

7.3.0-16

7 years ago

7.3.0-15

7 years ago

7.3.0-14

7 years ago

7.3.0-13

7 years ago

7.3.0-12

7 years ago

7.3.0-11

7 years ago

7.3.0-10

7 years ago

7.3.0-9

7 years ago

7.3.0-8

7 years ago

7.3.0-7

7 years ago

7.3.0-6

7 years ago

7.3.0-5

7 years ago

7.3.0-4

7 years ago

7.3.0-1

7 years ago

7.2.6

7 years ago

1.2.3

7 years ago

7.1.23

7 years ago

7.1.22

7 years ago

7.1.21

7 years ago

7.1.20

7 years ago

7.1.19

7 years ago

7.1.18

7 years ago

7.1.17

7 years ago

7.1.16

7 years ago

7.1.15

7 years ago

7.1.14

7 years ago

7.1.13

7 years ago

7.1.12

7 years ago

7.1.11

7 years ago

7.1.10

7 years ago

7.1.9

7 years ago

7.1.8

7 years ago

7.1.7

8 years ago

7.1.6

8 years ago

7.1.5

8 years ago

7.1.4

8 years ago

7.1.3

8 years ago

7.1.2

8 years ago

7.1.1

8 years ago

7.1.0

8 years ago

7.0.55

8 years ago

7.0.54

8 years ago

7.0.53

8 years ago

7.0.52

8 years ago

7.0.51

8 years ago

7.0.50

8 years ago

7.0.49

8 years ago

7.0.45-CHANNEL

8 years ago

7.0.45

8 years ago

7.0.43

8 years ago

7.0.42

8 years ago

7.0.41

8 years ago

7.0.40

8 years ago

7.0.39

8 years ago

7.0.38

8 years ago

7.0.37

8 years ago

7.0.36

8 years ago

7.0.35

8 years ago

7.0.34

8 years ago

7.0.33

8 years ago

7.0.32

8 years ago

7.0.31

8 years ago

7.0.30

8 years ago

7.0.29

8 years ago

7.0.28

8 years ago

7.0.27

8 years ago

7.0.26

8 years ago

7.0.25

8 years ago

7.0.24

8 years ago

7.0.23

8 years ago

7.0.22

8 years ago

7.0.21

8 years ago

7.0.20

8 years ago

7.0.19

8 years ago

7.0.17

8 years ago

7.0.16

8 years ago

7.0.15

8 years ago

7.0.14

8 years ago

7.0.13

8 years ago

7.0.12

8 years ago

7.0.11

8 years ago

7.0.10

8 years ago

7.0.9

8 years ago

7.0.8

8 years ago

7.0.7

8 years ago

7.0.6

8 years ago

7.0.4

8 years ago

7.0.3

8 years ago

6.0.1

8 years ago

6.0.0

8 years ago

5.4.8

9 years ago

5.4.7

9 years ago

5.4.6

9 years ago

5.4.5

9 years ago

5.4.4

9 years ago

5.4.2

9 years ago

5.4.1

9 years ago

5.4.0

9 years ago

5.3.5

9 years ago

5.3.4

9 years ago

5.3.2

9 years ago

5.3.1

9 years ago

5.3.0

9 years ago

5.2.0

9 years ago

5.1.0

9 years ago

39.2.0-0

9 years ago

39.1.0-0

9 years ago

39.0.0-0

9 years ago

38.0.0-0

9 years ago

37.0.0-0

9 years ago

36.0.0-0

9 years ago

30.0.0-0

9 years ago

29.0.0-0

9 years ago

28.0.0-0

9 years ago

27.0.0-0

9 years ago

21.0.0-0

9 years ago