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개 답변
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
지원 엔지니어
답변함 8달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠