简体   繁体   English

是否可以从 AWS Lambda 调用 Azure 队列

[英]Is it possible to call Azure Queue from AWS Lambda

My requirement is to send data received in Lambda from DynamoDB to Azure Queue in node.js.我的要求是将 Lambda 中收到的数据从 DynamoDB 发送到 node.js 中的 Azure 队列。

Steps taken - AWS Side采取的步骤 - AWS 端

   1. Created DDB Table
   2. Added Stream and Trigger
   3. Wrote Lambda

Steps taken - Azure Side采取的步骤 - Azure Side

1. Created an Azure Queue (Service Bus)

So far so good.到现在为止还挺好。 I can see DDB Events making its way to Lambda.我可以看到 DDB 事件正在向 Lambda 发展。

Question - My ask is now I want to send these events to Azure Queue, I could not find any online google result for this.问题 - 我的问题是现在我想将这些事件发送到 Azure 队列,我找不到任何在线谷歌结果。 Is it possible to put elements in Azure Queue from AWS Lambda.是否可以将元素从 AWS Lambda 放入 Azure 队列。 Please guide.请指导。

You can use Azure Service Bus REST API in order to send your messages:您可以使用 Azure 服务总线 REST API 来发送消息:

POST    http{s}://{serviceNamespace}.servicebus.windows.net/{queuePath|topicPath}/messages

https://docs.microsoft.com/en-us/rest/api/servicebus/send-message-to-queue https://docs.microsoft.com/en-us/rest/api/servicebus/send-message-to-queue

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM