aws

Drew Verlee 2022-04-07T21:57:03.268189Z

I need to run a very short (less then a minute) function on a very loose (hours) schedule. Does aws Lambda seem like the best fit for this? If so, what path to setting that up have people had success with? Any experience reports with Holy Lambda https://fierycod.github.io/holy-lambda/#/ Additionally, I don't need GraalVM startup speed but i suppose it would be nice to have the option or easily transition. I'm just not sure even considering the trade offs is worth it. I would be curious what others have done and learned though.

Daniel Jomphe 2022-04-07T22:00:02.503509Z

No experience yet but you may also want to ask there too #holy-lambda. BTW Lambdas can now expose URLs without having to be fronted by API Gateway, so they're even easier to expose than before.

Daniel Jomphe 2022-04-07T22:00:53.347689Z

Remember that you've got million(s) of free Lambda calls per month (I suppose it's for small-sized CPU and RAM ones). Looks like it's really worth checking out.

Drew Verlee 2022-04-07T22:11:04.583409Z

Thanks Daniel, i don't need to expose this to a public endpoint/url as it will only need to make http calls then send an email. It's good to know there are free calls per month.

👍🏼 1
Max 2022-04-07T23:49:18.462019Z

I've been itching for an excuse to try holy lambda’s babashka backend. If you do end up going the holy lambda route I'd love to see an experience report!

Karol Wójcik 2022-04-08T06:39:54.962369Z

@drewverlee I think the easiest option for you is HL on the custom Java17 Layer, since: • your use case doesn't require a fast startup time, • going with GraalVM would be an overkill for now since this is another tool you have to learn about. This repository contains a ready-to-go template with mentioned above configuration. In the future, you can always "easily" migrate to the Native backend with this.

Karol Wójcik 2022-04-08T06:40:06.994619Z

https://github.com/FieryCod/holy-lambda-on-java-17

Karol Wójcik 2022-04-08T06:44:04.719499Z

What is cool about this layer is it enables TieredCompilation=1 by default and by that speeding the startup time significantly. https://aws.amazon.com/blogs/compute/increasing-performance-of-java-aws-lambda-functions-using-tiered-compilation/

👀 1
Drew Verlee 2022-04-08T15:42:30.422859Z

thanks Karol, i'm taking a look now

Karol Wójcik 2022-04-08T16:03:22.813959Z

Cool!

ghadi 2022-04-07T22:05:14.494109Z

@drewverlee CloudWatch scheduled trigger -> Lambda

👍 3
➕ 3