Skip to content

This demo is a Spring Boot Function Application as a GraalVM Native image to a Amazon Lambda custom runtime

Notifications You must be signed in to change notification settings

James96315/Lab17-Lambda-Spring-Cloud-Function-Graalvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lab 14 在Amazon Lambda上通过使用Graalvm,优化基于Spring Boot Function框架项目的冷启动性能

部署步骤如下:

1.环境说明,详细内容可参考Dockerfilepom.xml

1.jpg

2.执行build.sh,生成部署文件

$ ./build.sh

3.创建Lambda函数,输入函数名称,并使用定制运行时Amazon Linux2

2.jpg

4.编辑运行时设置,在处理程序处输入apiGwHandler,该内容与来com.example.demo.DemoApplication.java定义的bean名称要一致

3.jpg 4.jpg

5.选择build目录下生成的lambda-spring-cloud-function-graalvm-0.0.1-native-zip.zip文件上传,并保存

5.jpg

6.配置测试事件,并选择事件模版apigateway-aws-proxy进行测试

6.jpg

7.系统将触发com.example.demo.function.ApiGwHandler类的apply方法

7.jpg

About

This demo is a Spring Boot Function Application as a GraalVM Native image to a Amazon Lambda custom runtime

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published