How to execute AWS lambda with Open JDK 11 as custom runtime?

眉间皱痕 提交于 2019-12-04 03:10:21

I was also curious as to why we haven't seen any custom runtimes for Java yet, so about a month ago I started playing around with the idea of building one in Java 11 using Jigsaw to produce small runtime. While it's not exactly a tutorial, I did write a fairly detailed Readme on how to build this and the code is simple enough to follow.

Here's my project on GitHub:

https://github.com/andthearchitect/aws-lambda-java-runtime

I just published this recently and it's most certainly a POC so use at your own risk.

Corretto seems interesting but I would guess there will still be people out there who are more comfortable with the official OpenJDK release. I'm hoping maybe this can be the starting point for a production ready open source runtime for Java.

As Arun Gupta said, they are working on Corretto 11 builds corresponding to Open JDK 11 and will release with time for testing before April, 2019...

However, it is still possible to add a custom runtime, which allow to "implement an AWS Lambda runtime in any programming language".

There is no example for JDK 11 in official AWS documentation, but I found a project, which use a custom runtime of 25MB, build from JDK 11, with jlink. You can take a look at this link

I doubt you can do that yet. According to AWS:

"We are working on Corretto 11 builds corresponding to Open JDK 11 and will release with time for testing before April, 2019."

https://forums.aws.amazon.com/thread.jspa?messageID=875742&tstart=0 https://aws.amazon.com/blogs/opensource/amazon-corretto-no-cost-distribution-openjdk-long-term-support/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!