Sending a Modbus TCP request over a Sonicwall NSV firewall tunnel connection wondering best practices

0

Current setup Currently I have a tunnel connection on my sonicwall firewall that I set up that uses a site to site connection to connect the X0 LAN (Private Subnet on a VPC) to the X0 LAN of my on site premise. What I would like to do is send a modbus TCP request over this tunnel connection to a DDE server on the LAN of site, but I am wondering what the best practices are. I have a few solutions thought up and I am wondering what sounds like the best option to start developing. One way is I can put a lambda on the same subnet in AWS and send the Modbus requests using a library like pymodbus in python, or I am thinking that I could set up an EC2 instance to run the modbus TCP requests.

Also secondary question then would be once I have the modbus TCP requests being sent to the server would it be best practice to hold a cache of the information held on the server?

1 Answer
0

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.

AWS
SUPPORT ENGINEER
answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions