4 ms·
Here is a practical approach, how we do it: 1. We write everything in ES6, following code styling from Airbnb - https://github.com/MitocGroup/javascript https:
by eistrati 11y ago
Here is a practical approach, how we do it:
1. We write everything in ES6, following code styling from Airbnb - https://github.com/MitocGroup/javascript https://github.com/MitocGroup/javascript
2. Every Lambda is separate npm package, therefore npm is managing all the dependencies; We include node_modules folder into the .zip file and upload it to AWS
3. Using Babel, transpile ES6 to ES5 - https://github.com/MitocGroup/deep-microservices-todo-app/blob/master/src/DeepNgToDo/Backend/src/Todo/Create/package.json#L25 https://github.com/MitocGroup/deep-microservices-todo-app/bl...
4. To support 0.10.x, we're requiring Babel Polyfill - https://github.com/MitocGroup/deep-microservices-todo-app/blob/master/src/DeepNgToDo/Backend/src/Todo/Create/bootstrap.es6#L4 https://github.com/MitocGroup/deep-microservices-todo-app/bl...
As anticipated, the performance is not the best one, but functional for some of our use cases where time is not a constrain. That's why the combination with Amazon ECS is perfect complimentary match when AWS Lambda doesn't perform well, as required by the application.
- smt88 11y agoThanks so much for posting this! I was really curious and found this to be helpful.