Invoke lamda async from Aurora PostgreSQL

0

A customer has setup Aurora PostgreSQL and any time a CDC occurs they need to trigger lambda function. e.g like in this Blog https://aws.amazon.com/blogs/database/capturing-data-changes-in-amazon-aurora-using-aws-lambda/

However there doesnt seem to invoke lambda from PostgreSQL..?

If there's none, how else have any of your customers accomplished this requirement?

AWS
feita há 4 anos1108 visualizações
2 Respostas
0
Resposta aceita

Calling Lambda from Aurora PostgreSQL is not yet supported. Rather than calling a lambda function in a trigger, you can consider consuming the change stream from PostgreSQL in a lambda function. See: https://aws.amazon.com/blogs/database/stream-changes-from-amazon-rds-for-postgresql-using-amazon-kinesis-data-streams-and-aws-lambda/

Think about the architecture and volume. Do they want to see every change, or only changes on a certain table?

How many changes per minute are they expecting?

If they are looking for the all changes or a high volume of changes, they may prefer using a small EC2 instance and a CDC tool like Debezium which can consume CDC records from PostgreSQL and publish to various targets. See: https://debezium.io/blog/2020/02/25/lessons-learned-running-debezium-with-postgresql-on-rds/ or: https://aws.amazon.com/blogs/apn/how-behalf-met-its-streaming-data-scaling-demands-with-amazon-managed-streaming-for-apache-kafka/

AWS
respondido há 4 anos
0
Resposta aceita
profile pictureAWS
respondido há 3 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas