UDP服务用Amazon Web Services [英] UDP Service with amazon web services

查看:231
本文介绍了UDP服务用Amazon Web Services的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天,

我一直在使用AWS颇有几分我的基于云计算的系统硬件项目。使用SimpleDB的和提供的通知服务是伟大的。

I have been using AWS quite a bit for my cloud based system for a hardware project. Using SimpleDB and the notification service provided is great.

不过,我需要在AWS上后端基本上监听请求进来,处理它,并把它发送回一个特定的地址。一些UDP服务的。

However, I need a backend on AWS that basically listens to requests coming in, processes it and sends it back to a particular address. Some kind of UDP service.

我可以很容易地编写C#/ C ++应用程序吧,但我不知道我是否可以在AWS托管它。有谁知道这是如何工作?

I could easily write a c#/c++ app for it, but i am not sure if I can host it on AWS. Does anyone know how this works?

推荐答案

简短的回答:是的,

EC2实例就像任何其他虚拟机,很明显,你可以把监听到的UDP服务器。配置网络为这是当然的,稍微复杂一些,但可能的。有一件事使问题更加复杂的是,使用UDP您将无法享受负载均衡服务,亚马逊提供的,因为它(目前)只支持基于TCP的协议。

EC2 instances are just like any other virtual machine, obviously you can put in a server that listens to UDP. Configuring the network for this is, of course, slightly more complicated, but possible. The one thing making it more complicated is that with UDP you will not be able to enjoy the load balancer service that Amazon offers, as it (currently) only supports TCP-based protocols.

所以,如果你有你希望把在互联网上的一台服务器,该过程可能是一样的,你会做一个TCP服务器什么:建立了一个服务器和弹性IP指向它,然后有你客户端连接到它(通过了解你已经分配的弹性IP,或通过DNS解析指的是IP)。如果你有你想设置,回答同一个地址的多台服务器,生活更复杂一些。使用TCP,你可能会建立一个亚马逊的负载均衡和分配您的弹性IP负载平衡器。如果你想有一个负载平衡器UDP,亚马逊股票负载平衡器不能做到这一点,但你仍然可以找到一个软件负载均衡器(也有数百人在亚马逊的公开图片库)成立。

So, if you have one server you wish to put on the internet, the procedure is probably same as what you'd do with a TCP server: set up a server and an elastic IP pointing to it, and then have your clients connect to it (by knowing the elastic IP you've been allocated, or by referring to that IP via a DNS resolution). If you have multiple servers you wish to set up, answering the same address, life is a bit more complicated. With TCP, you could have set up an Amazon load balancer and assign your elastic IP to the load balancer. If you'd want a load balancer for UDP, the Amazon stock load balancer can't do that, but you can still find a software load balancer (there are hundreds of them on Amazon's public images library) to set up.

这篇关于UDP服务用Amazon Web Services的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆