AWS Dynamodb/Firehose Based Reccomendation Engine Based on Graphs.
const {
App,
handlers
} = require('dynamodb-recs');
module.exports = new App('spec', 'partition', {
recs: {
jobs: {
viewView: [{
entity: 'view'
}, {
entity: 'view'
}],
viewBuy: [{
entity: 'view'
}, {
entity: 'buy'
}]
}
},
recsLogs: {
firehose: {
stream: 'stream'
}
}
});
export.recs = handlers.recs(app);
export.recsLogsFirehose = handlers.recsLogsFirehose(app);
export.recsLogsHit = handlers.recsLogsHit(app);
export.recsLogsProcess = handlers.recsLogsProcess(app);