Skip to content

Instantly share code, notes, and snippets.

View lehno's full-sized avatar
🛠️
Building applications

Leandro Hoffmann lehno

🛠️
Building applications
View GitHub Profile
@lehno
lehno / sqs.mixin.js
Last active October 26, 2019 20:28
SQS Mixin
'use strict';
// Use this produce and consume jobs from AWS SQS as a normal queue list.
// Just add as a mixin and listen to your queues
const { Consumer } = require('sqs-consumer');
const Producer = require('sqs-producer');
const _ = require('lodash');
const AWS = require('aws-sdk');