wormhole-explorer/analytics
gipsh 32e67a5824
Use new custom storage for redis (#425)
* allow prefix for redis keys on rate limiter

* use storage module from lib

---------

Co-authored-by: Hernan Gips <hernangips@OnoSendai.local>
2023-06-20 12:25:04 -03:00
..
cmd Persist symbol and price for VAAs (#384) 2023-06-07 12:18:38 -03:00
coingecko Fix and refactor of analytics (#376) 2023-06-01 16:32:00 -03:00
config Persist symbol and price for VAAs (#384) 2023-06-07 12:18:38 -03:00
consumer Fix and refactor of analytics (#376) 2023-06-01 16:32:00 -03:00
http/infrastructure Fix and refactor of analytics (#376) 2023-06-01 16:32:00 -03:00
metric Ignore metric when emitter or destination chains are unset (#390) 2023-06-08 13:03:15 -03:00
parser Fix and refactor of analytics (#376) 2023-06-01 16:32:00 -03:00
prices Fix and refactor of analytics (#376) 2023-06-01 16:32:00 -03:00
queue Fix and refactor of analytics (#376) 2023-06-01 16:32:00 -03:00
scripts Fix intermittent failure in x-chain-activity endpoint (#420) 2023-06-20 10:34:20 -03:00
support Fix and refactor of analytics (#376) 2023-06-01 16:32:00 -03:00
.env.example Fix and refactor of analytics (#376) 2023-06-01 16:32:00 -03:00
.gitignore Fix and refactor of analytics (#376) 2023-06-01 16:32:00 -03:00
Dockerfile Fix and refactor of analytics (#376) 2023-06-01 16:32:00 -03:00
Makefile Fix and refactor of analytics (#376) 2023-06-01 16:32:00 -03:00
README.md Fix and refactor of analytics (#376) 2023-06-01 16:32:00 -03:00
go.mod Use new custom storage for redis (#425) 2023-06-20 12:25:04 -03:00
go.sum Use new custom storage for redis (#425) 2023-06-20 12:25:04 -03:00

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