RabbitMQ使用NodeJS进入AWS Redshift

时间:2022-08-11 23:08:30

I have a RabbitMQ consumer listening to a queue in RabbitMQ and receiving event data in NodeJS. I would like to have the consumer send each data event to AWS Redishit (possibly using their JavaScript SDK), but I cannot find any examples of how to do this, nor can I find any clarification of the process in Amazon's documentation.

我有一个RabbitMQ使用者在RabbitMQ中侦听队列并在NodeJS中接收事件数据。我希望让消费者将每个数据事件发送到AWS Redishit(可能使用他们的JavaScript SDK),但我找不到任何如何执行此操作的示例,也无法在Amazon文档中找到有关该过程的任何说明。

How do I send data in NodeJS to Redshift using the AWS JavaScript SDK?

如何使用AWS JavaScript SDK将NodeJS中的数据发送到Redshift?

Thanks, Drew

1 个解决方案

#1


Using node-postgres I was able to open a connection pool to Redshift and perform INSERT commands from there. Fast, and lightweight - even under considerable load.

使用node-postgres我能够打开一个连接池到Redshift并从那里执行INSERT命令。快速,轻便 - 即使在相当大的负载下。

#1


Using node-postgres I was able to open a connection pool to Redshift and perform INSERT commands from there. Fast, and lightweight - even under considerable load.

使用node-postgres我能够打开一个连接池到Redshift并从那里执行INSERT命令。快速,轻便 - 即使在相当大的负载下。