msg-fabric-oaas
builds persistent object state as a plugin to msg-fabric-core
.
Inspired by:
- Alan Kay's vision of messaging between objects in Smalltalk
- Erlang's distributed messaging
- Uber's Ringpop and TChannel
import FabricHubBase from 'msg-fabric-core'
import pi_rpc from 'msg-fabric-core/esm/plugin-rpc.js'
import pi_oaas from 'oaas/esm/index.js'
const FabricHub = FabricHubBase
.plugin( pi_rpc(), pi_oaas() )
const hub = FabricHub.create()
hub.initOaaS({ loadConfig })
function loadConfig(key) {
// load OaaS config from any datastore as an object
return JSON.parse(window.localStore.getItem(key))
}