当前位置: 首页 > 软件库 > 云计算 > Serverless 系统 >

aws-serverless-java-container

授权协议 Apache-2.0 License
开发语言 JavaScript
所属分类 云计算、 Serverless 系统
软件类型 开源软件
地区 不详
投 递 者 甄胡非
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Serverless Java container Build Status

The aws-serverless-java-container makes it easy to run Java applications written with frameworks such as Spring, Spring Boot, Apache Struts, Jersey, or Spark in AWS Lambda.

Serverless Java Container natively supports API Gateway's proxy integration models for requests and responses, you can create and inject custom models for methods that use custom mappings.

Follow the quick start guides in our wiki to integrate Serverless Java Container with your project:

Below is the most basic AWS Lambda handler example that launches a Spring application. You can also take a look at the samples in this repository, our main wiki page includes a step-by-step guide on how to deploy the various sample applications using Maven and SAM.

public class StreamLambdaHandler implements RequestStreamHandler {
    private static SpringLambdaContainerHandler<AwsProxyRequest, AwsProxyResponse> handler;
    static {
        try {
            handler = SpringLambdaContainerHandler.getAwsProxyHandler(PetStoreSpringAppConfig.class);
        } catch (ContainerInitializationException e) {
            // if we fail here. We re-throw the exception to force another cold start
            e.printStackTrace();
            throw new RuntimeException("Could not initialize Spring framework", e);
        }
    }

    @Override
    public void handleRequest(InputStream inputStream, OutputStream outputStream, Context context)
            throws IOException {
        handler.proxyStream(inputStream, outputStream, context);
    }
}
  • ubuntu14.04下sam本地测试, 把sam和dynamoDB连起来!!! 本文档对于windows 可能支持的并不是很好,目前已测试linux系统。 因为sam本地调试这一块网上的文档参差不齐,我在实践的过程中也遇到了很多坑,这里整理下来。 sam 和dynamoDB连起来主要参考下面两个链接: https://stackoverflow.com/questions/48926260/co

  • aws工具 by Yan Cui 崔燕 完整的AWS开发工具包到底有多贵? (Just how expensive is the full AWS SDK?) If you’re not familiar with how cold start works within the context of AWS Lambda, then read this post first. 如果您不熟悉冷启动在

 相关资料
  • aws-serverless-koa This library enables you to utilize AWS Lambda and Amazon API Gateway to respond to web and API requests using the Koa.js application framework Installation $ npm install --save aws

  • Wild Rydes Serverless Workshops This repository contains a collection of workshops and other hands on content that will guide you through building various serverless applications using AWS Lambda, Ama

  • AWS Serverless Airline Booking Serverless Airline Booking is a complete web application that provides Flight Search, Payment, Booking and Loyalty points including end-to-end testing, GraphQL and CI/CD

  • AWS Serverless Ecommerce Platform Status: Work-in-progress. Please create issues or pull requests if you have ideas for improvement. The Serverless Ecommerce Platform is a sample implementation of a s

  • Serverless AWS Alerts Plugin A Serverless plugin to easily add CloudWatch alarms to functions Installation npm i serverless-plugin-aws-alertsORyarn add --dev serverless-plugin-aws-alerts Usage Basic U

  • SpaceFinder - Serverless Auth Reference App SpaceFinder is a reference mobile app that allows users to book conference rooms, work desks, and other shared resources. The app showcases serverless authe