Skip to content

Instantly share code, notes, and snippets.

View adrnbttr's full-sized avatar
🏠
Working from home

Adrien Bouttier adrnbttr

🏠
Working from home
View GitHub Profile
@adrnbttr
adrnbttr / api.js
Created October 14, 2017 13:51
Microservice NodeJs RabbitMQ
'use strict';
const express = require('express');
const app = express();
const port = process.env.PORT || 4001;
const rabbit = {
generateMessage: function(nbMessage) {
let lists = [];
for (let i = 0; i < nbMessage; i++) {