是否可以将AWS Lambda优先于AWS Glue Job?

问题描述:

在AWS Glue作业中,我们可以编写一些脚本并通过作业执行脚本.

In AWS Glue job, we can write some script and execute the script via job.

在AWS Lambda中,我们也可以编写相同的脚本并执行上述作业中提供的相同逻辑.

In AWS Lambda too, we can write the same script and execute the same logic provided in above job.

因此,我的查询不是AWS Glue作业与AWS Lambda之间的区别,但是我想弄清楚何时应该优先使用AWS Glue作业而不是AWS Lambda,尤其是当两者都执行同一作业时?如果两者都做同样的工作,那么理想情况下,我会盲目地喜欢使用AWS Lambda本身,对吗?

So, my query is not whats the difference between AWS Glue Job vs AWS Lambda, BUT iam trying to undestand when AWS Glue job should be preferred over AWS Lambda, especially while when both does the same job? If both does the same job, then ideally I would blindly prefer using AWS Lambda itself, right?

请尝试理解我的查询.

Lambda的生命周期为15分钟.它可用于触发胶粘作业,作为基于事件的主动性.也就是说,例如,当文件在S3中着陆时,我们可以有一个事件触发器,该事件触发器可以运行粘合作业.胶水是用于所有数据处理的托管服务.

Lambda has a lifetime of fifteen minutes. It can be used to trigger a glue job as an event based acttivity. That is, when a file lands in S3 for example, we can have an event trigger which can run a glue job. Glue is a managed services for all data processing.

如果数据非常低,也许您可​​以在lambda中进行处理,但是由于某些原因,该过程超过了15分钟,那么数据处理将失败.

If the data is very low maybe you can do it in lambda, but for some reason the process goes beyond fifteen minutes, then data processing would fail.