event-gateway-example icon indicating copy to clipboard operation
event-gateway-example copied to clipboard

Code shared between services

Open PhilippeLaval opened this issue 8 years ago • 1 comments

Thanks for this great example. I still have a question: how would you share code (for example a User class) between different services?

PhilippeLaval avatar Sep 14 '17 10:09 PhilippeLaval

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.

cardoni avatar Jan 18 '18 23:01 cardoni