This commit is contained in:
Emily
2024-09-19 14:00:12 +02:00
parent 3c59551f88
commit ac7ba7abd3
2 changed files with 3 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ async function processStreamEntry(data: Record<string, string>) {
const duration = Date.now() - start; const duration = Date.now() - start;
console.log('Entry processed in', duration, 'ms'); // console.log('Entry processed in', duration, 'ms');
} catch (ex: any) { } catch (ex: any) {
console.error('ERROR PROCESSING STREAM EVENT', ex.message); console.error('ERROR PROCESSING STREAM EVENT', ex.message);

View File

@@ -1,10 +1,10 @@
module.exports = { module.exports = {
apps: [ apps: [
{ {
name: 'Producer', name: 'producer',
port: '3000', port: '3000',
exec_mode: 'cluster', exec_mode: 'cluster',
instances: '2', instances: '1',
script: './dist/broker/src/index.js', script: './dist/broker/src/index.js',
env: { env: {
PORT: "", PORT: "",