amqp nodejs connect on setup api or on route
问题 Hello i have doubts about amqp lib nodejs about the connection, should i create the connection when uploading my api? Or just at the end point when requested? like this: import express from 'express'; import {connect} from 'amqplib' connect(this.rabbitUrl), 10, 1000) const app = express(); app.get('/', (req, res) => { return res.send('service A'); }); app.listen(3001, () => { console.log(`⚡️ Service A on port 3001`); }); I have another question: I have 10 requests for 10 different clients,