迁移用Java编写的Azure函数到AWS Lambda函数

huangapple go评论66阅读模式
英文:

Migrating Azure function written in java to AWS Lambda function

问题

作为云迁移的一部分,我需要将我的应用程序迁移到AWS平台,该应用程序是一个使用Java编写的Azure函数,用于向Cosmosdb插入值。我需要将Azure函数迁移到AWS Lambda,并且我们将使用文档数据库/Mongodb来存储这些值。
请提供一种简单的实现方法。提前感谢。

我正在估算所需的更改。需要帮助完成这个过程。

英文:

As a move to cloud initiative I need to migrate my application which is an azure function written in java inserting values to a Cosmosdb to AWS platform, I need to move the azure function to an AWS Lambda and we would use document Db/Mongodb as the database for storing the values.
Please provide any simple way to implement this. Thanks in advance.

I am estimating the changes required. Need help with the process for it

答案1

得分: 1

没有自动将Azure Java代码迁移到AWS Lambda函数的方法。执行此操作的方法是创建一个新的AWS Lambda项目,使用Java运行时API

创建项目后,您可以构建业务逻辑以满足您的业务目标。如果您不知道如何编写使用Lambda Java API的AWS Lambda函数,那么可以查看此示例,该示例构建了一个可以检测个人防护装备的Lambda函数。

创建一个能够检测带有个人防护装备的AWS Lambda函数

通过按照此示例,您将了解如何使用Java Lambda API编写AWS Lambda函数的代码。此示例还展示了如何将数据持久化到Amazon DynamoDB表中。

英文:

There is no automatic way to port Azure Java code to an AWS Lambda function. The way to perform this is to create a new AWS Lambda project that uses the Java runtime API.

Once you create the project, you can build the business logic to meet your business goals. If you do not know how to program an AWS Lambda function that uses the Lambda Java API, then look at this example that builds a Lambda function that can detect PPE.

Creating an AWS Lambda function that detects images with Personal Protective Equipment

By following this example, you will gain an understanding of how to code an AWS Lambda function using the Java Lambda API. This example also show how to persist data into an Amazon DynamoDB table.

huangapple
  • 本文由 发表于 2023年7月20日 15:45:38
  • 转载请务必保留本文链接:https://go.coder-hub.com/76727699.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定