Serverless Gps tracking Server

0

Hi all! i wish a great year with health!

Currently i am looking to implement a gps server that i have created with c# to aws and i would appreciate if i had any hint from you about the following case: I have created in an on Premise windows server, a gps server with c# that accept HEX messages from gps devices. The server run on specific port that i have declared and the devices needs and IP:PORT in which they could send the messages. Also the server can send back to the device commands. I am struggling on how i could create a similar aws serverless setup . I have find aws API gateway with socket but cant setup a port there and also accept messages only in json format as i have seen. Also i looked around aws iot but works with mqtt protocol but the majority of the devices cant support it now. Is there any way to create the same setup that i have on-premise to aws with serveless setup and not to need to create ec2 windows instance and upload there my c# gps server?

My ideal setup is to create a serverless flow that the device can send messages to IP:PORT with a bi-directional communication Thank you all for your time

已提問 1 年前檢視次數 258 次
2 個答案
1

API Gateway supports Web Sockets, which are based on HTTP. It does not support generic TCP connections.

You will need to use an NLB that front maybe some containers that run on Fargate, so you do not need to manage the infrastructure. This is not a serverless solution though.

profile pictureAWS
專家
Uri
已回答 1 年前
0

You can use Lambda function for your code and host an Application load balancer with required port listener and target group to run your lambda function.

已回答 1 年前
  • ALB only supports HTTP traffic, not arbitrary TCP connections. An NLB supports TCP traffic, but it does not support Lambda in the taaget group.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南