pinned lambda blocking on socket connection

0

I need to talk to a legacy system via TCP socket.
My thought was to create a pinned Greengrass Lambda in python3 that blocks on the client connection, does some handshaking with the client, then keeps the socket open as long as the Greengrass Core is running. The protocol to the legacy client as various back and forth messaging I will have to emulate.

I would use some of the data received from the socket to publish some MQTT messages but the trigger function would essentially be a stub and never be called. So the only data the lambda would receive would be from outside the AWS ecosystem.

Is this sane or will it light the atmosphere on fire?

질문됨 5년 전296회 조회
1개 답변
0

Hi wmilliron,

What you've described is a perfectly valid use case and should work just fine to bridge your legacy application with the AWS ecosystem.

Best of luck with your implementation,
-joe

AWS
답변함 5년 전

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

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

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