Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Serverless | 44,440 | 1,618 | 830 | 9 hours ago | 1,987 | September 19, 2022 | 994 | mit | JavaScript | |
⚡ Serverless Framework – Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more! – | ||||||||||
Sst | 12,666 | 4 | 9 hours ago | 681 | September 23, 2022 | 613 | mit | JavaScript | ||
💥 SST makes it easy to build full-stack serverless apps. | ||||||||||
Awesome Aws | 11,283 | 14 days ago | 1 | December 21, 2015 | 63 | other | Python | |||
A curated list of awesome Amazon Web Services (AWS) libraries, open source repos, guides, blogs, and other resources. Featuring the Fiery Meter of AWSome. | ||||||||||
Examples | 10,749 | a day ago | 19 | April 25, 2021 | 167 | other | JavaScript | |||
Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework on AWS Lambda, Microsoft Azure, Google Cloud Functions, and more. | ||||||||||
Chalice | 9,597 | 126 | 31 | 14 days ago | 86 | June 01, 2022 | 430 | apache-2.0 | Python | |
Python Serverless Microframework for AWS | ||||||||||
Serverless Application Model | 8,946 | 84 | 15 | a day ago | 59 | June 07, 2022 | 133 | apache-2.0 | Python | |
The AWS Serverless Application Model (AWS SAM) transform is a AWS CloudFormation macro that transforms SAM templates into CloudFormation templates. | ||||||||||
Up | 8,687 | 68 | 13 | 17 days ago | 11 | March 02, 2018 | 291 | mit | Go | |
Deploy infinitely scalable serverless apps, apis, and sites in seconds to AWS. | ||||||||||
Webiny Js | 6,462 | 113 | 8 hours ago | 251 | September 07, 2022 | 201 | other | TypeScript | ||
Open-source serverless enterprise CMS. Includes a headless CMS, page builder, form builder, and file manager. Easy to customize and expand. Deploys to AWS. | ||||||||||
Aws Sam Cli | 6,235 | 31 | 12 | 8 hours ago | 129 | June 29, 2022 | 360 | apache-2.0 | Python | |
CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM | ||||||||||
Docker Lambda | 5,852 | 38 | 14 | 2 months ago | 15 | June 30, 2018 | 68 | mit | C# | |
Docker images and test runners that replicate the live AWS Lambda environment |
This code base is an example API built with the Java 8 runtime for AWS Lambda, in the context of a common use case: an API backed by Amazon DynamoDB as its data store. In a production deployment, you would use Amazon API Gateway to proxy RESTful API requests to the Lambda functions, each of which corresponds to a single API call. When API Gateway is added, the architecture is as follows:
By using Lambda together with DynamoDB and API Gateway, there is no need to deploy or manage servers for either the application tier or database tier. If the front end consists of mobile devices and a web app statically hosted on Amazon S3, the result is a completely serverless architecture with no need to deploy or manage servers anywhere in the system, in either the front end or back end. For further information, see the following blog post series:
The example use case is a company which maintains a catalog of sports events, and has decided to build an API for that catalog backed by DynamoDB. For each event, the company needs to have a record that includes the name of the home team, the event date, the name of the other (away) team, the sport involved (e.g. basketball, baseball etc.), city, country, etc. The home page of the company’s application must display all local events for a user’s favorite home team, as well as all other sports events in the user’s home city. Other queries regarding events must be supported, but queries to support the home page are the most important.
To keep this example simple, only a single Event table in DynamoDB is used to model the data, which essentially is a catalog of available events. Within this table, events are modeled using a composite key having the home team name as partition key, and event date as sort key, with the away team name as an ordinary attribute. This allows an event to be modeled as a single item in the table.
The primary prerequisite for running the code for this example is to create a table in DynamoDB. The following attributes are required, with types indicated and whether the attribute functions as a partition or sort key for the table or a Global Secondary Index (GSI):
homeTeam: String, Partition Key
eventDate: Number, Sort Key
awayTeam: String, GSI Partition Key
city: String, GSI Partition Key
eventId: Number
sport: String
country: String
Follow these steps to deploy the application:
Create a DynamoDB table with the keys and attributes mentioned above.
Create Lambda functions, one for each handler in the EventFunctions class.
Create a API Gateway API. Note that even if you don't do this step, you can still test the Lambda functions via the Lambda console "test function" tab.
To automate deployment of the Lambda functions and API Gateway, consider using AWS SAM (Serverless Application Model). Using SAM can simplify deploying an API, such as this one, built with a single code base that supports multiple Lambda functions. See http://docs.aws.amazon.com/lambda/latest/dg/deploying-lambda-apps.html.