4 ms·
Hey, author of the post here! Thanks for your comment. Yes, you hit the nail on the head :) 99% of our code actually lives in domain packages that are infrastr
by akos-kri 5y ago
Hey, author of the post here! Thanks for your comment.
Yes, you hit the nail on the head :) 99% of our code actually lives in domain packages that are infrastructure agnostic. Our lambda handlers are very lightweight adapters that take the input and transform it to a domain input and transform the output back.
That said, our serverless architecture does leak a bit into our domain thinking. E.g. certain things are built async since it's just so easy to hook up a lambda to listen to an EventBridge event.