'A better way of retrieving interval data for AWS lambda function other than DynamoDB?

I have a lambda function running every 10 seconds(24/7), basically the only thing it does is writing a value (Z) to TimestreamDB. This value (Z) is the result of the multiplication X*Y. X is the sensor's reading value and Y is a multiplier fetched from DynamoDB.

This thing may work, but i don't want to read dynamoDB table every 10 seconds just for a value that is going to change mostly 2-3 times per year. I would like to know if there is a way (cheaper and faster) to save this (Y) value and access it every time from the Lambda function,instead of reading it from dynamoDB as i mentioned.

Take notice, that this app will serve different users, so the X and Y value will be different for every user. Meaning that i can't for example "hard-code" the (Y) value to the function an change it manually every 6 months.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source