设置DynamoDB触发使用lambda [英] Setup DynamoDB Trigger using Lambda

查看:605
本文介绍了设置DynamoDB触发使用lambda的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图创建一个使用DynamoDB流和AWS LAMBDA一个DynamoDB触发。我研究了很多,但我找不到任何方法来读取和处理DynamoDB流事件中的Java 8.我是完全新的这两种技术,所以不知道如何与这个工作。

I'm trying to create a DynamoDB trigger using DynamoDB Streams and AWS Lambda. I researched a lot but I couldn't find any way to read and process a DynamoDB Stream event in Java 8. I'm completely new to both these technologies so don't know how to work with this.

从本质上讲,我想要做的就是创建表B中的记录,只要记录在表A中创建的。

Essentially, what I want to do is create a record in table B whenever a record is created in table A.

难道任何你请点我到code或交处理这个用例中的Java?

Could any of you please point me to a code or post that handles this use case in Java?

感谢:)

推荐答案

DynamoDB流将JSON发送到处理程序。只要创建一个处理程序,需要一个Java InputStream和从InputStream反序列化的JSON。我发布一个例子类似的问题<一href="http://stackoverflow.com/questions/31789078/aws-dynamodb-trigger-using-lambda-in-java">here.

DynamoDB Streams will send JSON to the handler. Just create a handler that takes a Java InputStream and deserialize the JSON from the inputstream. I posted an example to a similar question here.

这篇关于设置DynamoDB触发使用lambda的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆