---
title: "Discussion on \"Hexagonal Architecture with CDK, Lambda, and TypeScript\" | Hashnode"
description: "Discussion on \"Hexagonal Architecture with CDK, Lambda, and TypeScript\". In this post we look at how we can adopt a hexagonal architecture approach when developing Lambda functions. I am not proposing that this approach is the one true way, but I think it is useful to be aware of the concept and the advantages that it can..."
url: "https://hashnode.com/posts/hexagonal-architecture-with-cdk-lambda-and-typescript/62d3a4d4e52a5d129a0c21f8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Hexagonal Architecture with CDK, Lambda, and TypeScript](https://blog.awsfundamentals.com/hexagonal-architecture-with-cdk-lambda-and-typescript?utm_source=hashnode&utm_medium=feed)

In this post we look at how we can adopt a hexagonal architecture approach when developing Lambda functions. I am not proposing that this approach is the one true way, but I think it is useful to be aware of the concept and the advantages that it can...

Jul 17, 2022 · 8 min read · blog.awsfundamentals.com  
Updated Dec 12, 2024  
Read the article

## Written by

[Andy Blackledge](https://hashnode.com/@andyblackledge)

@andyblackledge · Milton Keynes, UK

  
[View profile](https://hashnode.com/@andyblackledge)

Curious adventures in software

## Responses 1

Markdown supported · ⌘↵ to post

[Emilio](https://hashnode.com/@obiwabrakenobi)

[Oct 7, 2022](https://hashnode.com/posts/hexagonal-architecture-with-cdk-lambda-and-typescript/62d3a4d4e52a5d129a0c21f8/comment/63402b786971ffceb982015e)

Your approach is good but what you should mention is that in DDD there is a concept of Aggregates and a necessary rule for it to have only one transaction on one Aggregate (see here Page 7: [dddcommunity.org/wp-content/uploads/files/pdf\_art…](https://www.dddcommunity.org/wp-content/uploads/files/pdf_articles/Vernon_2011_2.pdf)). The reason why this is so important is that people build architectures calling tons of lambdas to keep their objects in sync while missing the point of event driven applications and create non scalable systems
