Create new ShareDB backend instance
yarn add @startupjs/backend
nconf: *
import createBackend from '@startupjs/backend'
export default async function runServer () {
const { backend, shareMongo, redis } = await createBackend(options)
// ...
}
where options
are:
pollDebounce
is the minimum delay between subsequent database polls . It is used individually for each collection in database. This is used to batch updates to reduce load on the database.
MIT
(c) Decision Mapper - http://decisionmapper.com