Use Serverless contracts
Serverless contracts are a central point of Swarmion.
📄️ Use ApiGateway contracts
ApiGateway is an AWS service that makes it possible to trigger lambda functions through HTTP. There are two types of ApiGateways (for more details, see AWS documentation):
📄️ Use EventBridge contracts
In event-driven architectures, events enable interactions between loosely coupled services of an application. In Serverless applications, EventBridge is a stable and sure way to implement asynchronous flows.
📄️ Use SQS contracts
Amazon Simple Queue Service (SQS) is a fully managed message queuing service that enables you to decouple and scale microservices, distributed systems, and serverless applications.
📄️ Pass additional arguments to Lambda handlers
A powerful feature of Serverless contracts is its ability to provide type-safe additional arguments to your lambda handler.
📄️ Use CloudFormation contracts
AWS CloudFormation is used by the Serverless Framework to manage resources. In certain cases, it may be necessary to share these resources between services. For example, authentication may be handled by a common authorizer, which should not be re-implemented on each service.
📄️ Serverless Plugin
This is a beta feature of Swarmion.
If you want to learn more about the motivation for using Serverless contracts, please check out the contracts explanation
We will continue to add new types of contracts, stay tuned!