I am writing Kafka(MSK) subscriber(consumer) using GO (golang) and want to push metrics like message consumed count, error count etc. into cloudwatch metrics.
Pushing data directly using AWS-SDK PutMetricData() methods is making the function slow.
I am writing Kafka(MSK) subscriber(consumer) using GO (golang) and want to push metrics like message consumed count, error count etc. into cloudwatch metrics.
Pushing data directly using AWS-SDK PutMetricData() methods is making the function slow.
Copyright © 2021 Jogjafile Inc.
If you often publish individual metric data points that can slow you down. The solution proposed by AWS documentation is to use statistical sets:
This is true for any programming language, whether it is Go or Java. Slowness usually comes from calling the external API to frequently, not due to nature of the language.