简体   繁体   English

我可以使用 AWS Lambda 来满足我的要求吗?

[英]Can I use AWS Lambda for my requirements?

I recently visited "AWS Free Tier".我最近访问了“AWS 免费套餐”。 Under that in "serverless" option is "AWS Lambda".在“无服务器”选项下是“AWS Lambda”。 I am trying to develop an application.我正在尝试开发一个应用程序。 I want to know what will be the best resource to use.我想知道什么是最好的资源。

USAGE: I need to connect to server through mobile app using HTTP POST.用法:我需要使用 HTTP POST 通过移动应用程序连接到服务器。 1st it will register the bus number.第一,它将注册公交车号码。 Then it will add the corresponding bus stops and the fare between each bus stop.然后它会添加相应的公交车站和每个公交车站之间的票价。 The app will next time send bus number and get all bus stops.该应用程序将在下次发送公交车号码并获取所有公交车站。 Then it will select 2 bus stops and send to server.然后它将 select 2 个巴士站发送到服务器。 It will pay the required fare.它将支付所需的票价。 Server will generate the bus ticket and store in database.服务器将生成公交车票并存储在数据库中。 It will send 1 copy to the mobile.它将向手机发送一份副本。

I need an web server for development and testing purpose.我需要一个 web 服务器用于开发和测试目的。 I had started with JSP. But due to some reasons I was not able to access the JSP page through android app.我从 JSP 开始。但由于某些原因,我无法通过 android 应用程序访问 JSP 页面。 However I was able to access the JSP through browser.但是我能够通过浏览器访问 JSP。 In android app, I can access other websites.在android app中,我可以访问其他网站。 I think the url was the problem.我认为 url 是问题所在。 So, I decided to use AWS server.所以,我决定使用 AWS 服务器。 Please let me know where I can use JSP. If you have any other server and database, please let me know.请告诉我在哪里可以使用JSP。如果您有任何其他服务器和数据库,请告诉我。 Currently I will be using it for development and testing purpose.目前我将把它用于开发和测试目的。 So, 1-5 users may use it.因此,1-5 个用户可能会使用它。 But later I will run it as a business.但以后我会把它作为一项业务来经营。 Then more users will be using it.然后会有更多的用户使用它。 (So, please let me know about the payments for business use also, if you have idea about that) I will need database also. (所以,请让我知道商业用途的付款,如果你知道的话)我也需要数据库。

You could write a service which recieves an HTTP request and accesses a database as part of the logic it performs to generate a response and host that service with AWS Lambda.您可以编写一个服务来接收 HTTP 请求并访问数据库,作为它执行的逻辑的一部分以生成响应并使用 AWS Lambda 托管该服务。

You would need a database in addition to AWS Lambda (there are many database services available from AWS and other providers).除了 AWS Lambda 之外,您还需要一个数据库(AWS 和其他提供商提供了许多数据库服务)。

You can't just drop your JSP files onto Lambda. It does not support JSP (although it does support programs written in Java).不能将 JSP 文件拖放到 Lambda 上。它不支持 JSP(尽管它支持用 Java 编写的程序)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM