- Newest
- Most votes
- Most comments
Lambda functions are a good option for applications that need to be scalable and cost-effective. Lambda functions are serverless, so you only pay for the time that the function is running.
On other hand, EC2 instances are also a good option for applications that need to be more powerful and customizable. EC2 instances give you full control over the operating system and software that is running on the instance. If you are not sure which option is best for you, we recommend starting with a Lambda function. Lambda functions are relatively easy to set up and manage, and they are very cost-effective.
Whether or not you should cache Modbus TCP data depends on your specific application. Caching can improve performance by reducing the number of Modbus TCP requests that need to be made. However, caching can also introduce stale data if the data on the Modbus TCP server changes frequently.
Please note that there is no inbuilt caching feature in lambda as it is a serverless service and we suggest to implement a caching mechanism on top of any external database that suits your use-case. If you do decide to cache Modbus TCP data, we would recommend using a cache invalidation mechanism to ensure that the cached data is always up-to-date.
Relevant content
- asked a year ago
- asked 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago