Skip to content

RFC: Aurora streams handler to process Kinesis events #750

Open
@joanbonilla

Description

@joanbonilla

Key information

  • RFC PR:
  • Related issue(s), if known:
  • Area: Aurora Postgresql streams
  • Meet tenets: Yes

Summary

Processing database activity streams from Amazon Aurora in AWS Lambda requires heavy lifting work to process the events from kinesis (encryption, serializing, ...).

Motivation

Improve the developer experience reducing the heavy lifting work to process aurora streams

Proposal

With this new module, and a simple functional interface the customers can process easily the event without worrying to decrypt and use the SDK to get the java object with the stream information

A functional interface (like the SQS module) to process every single aurora stream event to allow developers get the stream information to do something with it.

This functional interface includes the sdk utilities to decrypt the message from the KinesisEvent object and serialize the object

More details here: https://github.com/joanbonilla/aws-lambda-powertools-java/tree/aurora-das-handler

Example of use: https://github.com/joanbonilla/sample-db-stream-pw

Drawbacks

At the moment is has been tested for postgresql streams only

  • What other designs have been considered? Why not them?
  • What is the impact of not doing this?

Unresolved questions

mysql implementation

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Ideas

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions