event-gateway-example
event-gateway-example copied to clipboard
Code shared between services
Thanks for this great example. I still have a question: how would you share code (for example a User class) between different services?
You could have a shared libs folder outside of the services folder—in this example app—and then configure each lambda to use webpack to tree-shake and/or do whatever it needs in order to wrap up all and only its dependencies before they execute.