The following monorepo demonstrates the communication between two services in NestJS.
To build and run all packages:
pnpm install
pnpm all
The application requires a running RabbitMQ server.
A Lambda function can only be run as a result of an AWS trigger such as an SNS / SQS message, DynamoDB streams, CloudWatch event etc. It's also stateless and short lived (execution time can be a maximum of 15 minutes).