Skip to content

A project which provides samples and examples of serverless microservice architectural patterns. Examples include patterns like: "Simple Web Service", "Gatekeeper", "Internal Web Service", "Aggregator", and more to be added over time.

License

Notifications You must be signed in to change notification settings

leanstacks/serverless-microservice-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Microservice Patterns

This repository contains a collection of sample projects that demonstrate common serverless microservice architectural patterns using AWS Serverless services such as AWS Lambda, Amazon API Gateway, Amazon DynamoDB, and more. Each pattern is implemented as a standalone project, providing practical examples and reference implementations for building scalable, event-driven microservices in the cloud.

Patterns

The following patterns are currently included in this repository:

  • Simple Web Service: A basic serverless web service pattern using API Gateway, Lambda, and DynamoDB.
  • Gatekeeper: Builds on the Simple Web Service, adding an Auth microservice to authenticate and authorize API requests.
  • Internal API: Similar to Simple Web Service but without the API Gateway to allow public API consumption. Facilitates synchronous, internal microservice-to-microservice integration.
  • Internal Handoff: Similar to the Internal API pattern, however, the calling service invokes the called service asynchronously rather than synchronously.
  • Publish Subscribe: Demonstrates the Pub/Sub pattern where services publish events to SNS topics and other services subscribe through SQS queues, enabling loose coupling and event-driven architecture.

More patterns, such as Aggregator, Router, Notifier, Fan Out/Fan In, Circuit Breaker, and others, will be added over time.

Lambda Starter Project

The pattern projects in this repository provide a great reference for various serverless implementation techniques. However, they focus on the implementation of specific requirements in the code and do not illustrate all aspects of a complete software project. For example these pattern samples do not have examples of:

  • CI/CD pipelines
  • Full suite of documentation
  • Pre-commit verifications
  • AI coding assistant instructions

The Lambda Starter Project provides an example of a complete serverless microservice project. Reference this project when starting your next serverless microservice application component.

License

This project is licensed under the terms of the MIT License.

About

A project which provides samples and examples of serverless microservice architectural patterns. Examples include patterns like: "Simple Web Service", "Gatekeeper", "Internal Web Service", "Aggregator", and more to be added over time.

Topics

Resources

License

Stars

Watchers

Forks