867f1c2962
* Fix analytic vaa metric and close metric client * Add analytic component manifest * Add metrics for cross chain activity endpoint * Feature/add endpoint get vaa count (#171) * Add trasaction controller + service * Init getLastTrx endpoint * Add endpoint for chain activity * Add configmap and secrets for influx Change Dockerfiles to support common library * Add vaa_count endpoint * Add cross-chain activity endpoint * Fix vaa_count endpoint * Add influx to api-service manifest * Make response and add docs for chain activity endpoint * Fix api deploy * Fix lasl-trx json name * Fix chain activity endpoint * Fix doc and endpoint route last-txs --------- Co-authored-by: Agustin Pazos <agpazos85@gmail.com> |
||
---|---|---|
.. | ||
cmd | ||
config | ||
consumer | ||
http/infrastructure | ||
metric | ||
queue | ||
.env.example | ||
.gitignore | ||
Dockerfile | ||
Makefile | ||
README.md | ||
go.mod | ||
go.sum |
README.md
Config sns topic
aws --profile localstack --endpoint-url=http://localhost:4566 sns create-topic --name vaas-pipeline.fifo --attributes FifoTopic=true,ContentBasedDeduplication=false
Config SQS FIFO with dead letter queue localstack
aws --profile localstack --endpoint-url=http://localhost:4566 sqs create-queue --queue-name=wormhole-vaa-analytic-dlq-queue.fifo --attributes "FifoQueue=true"
aws --profile localstack --endpoint-url=http://localhost:4566 sqs create-queue --queue-name=wormhole-vaa-analytic-queue.fifo --attributes FifoQueue=true,MessageRetentionPeriod=3600,ReceiveMessageWaitTimeSeconds=5,VisibilityTimeout=20,RedrivePolicy=""{\"deadLetterTargetArn\":\"arn:aws:sqs:us-east-1:000000000000:wormhole-vaa-analytic-dlq-queue.fifo\",\"maxReceiveCount\":\"2\"}""
Subscribe SQS FIFO to vaas-pipeline.fifo topic
aws --profile localstack --endpoint-url=http://localhost:4566 sns subscribe --topic-arn arn:aws:sns:us-east-1:000000000000:vaas-pipeline.fifo --protocol sqs --notification-endpoint http://localhost:4566/000000000000/wormhole-vaa-analytic-queue.fifo
Check message in the dead letter queue localstack
aws --profile localstack --endpoint-url=http://localhost:4566 sqs receive-message --queue-url=http://localhost:4566/000000000000/wormhole-vaa-analytic-dlq-queue.fifo