This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // pm2 실행 | |
| // NODE_CLUSTER_SCHED_POLICY = SCHED_RR pm2 start index.js - i max | |
| const amqp = require("amqplib/callback_api"); | |
| const express = require('express') | |
| const app = express() | |
| const port = 3000 | |
| var channel; | |
| const qname = "input_queue"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from("timer://scheduler?period=30s") | |
| .log("get access token") | |
| .to("direct:authService"); | |
| from("direct:authService").tracing() | |
| .setHeader(Exchange.HTTP_PATH) | |
| .simple("<auth service context>/oauth2/token") | |
| .setHeader("CamelHttpMethod") | |
| .simple("POST") | |
| .setHeader("Content-Type") |
OlderNewer