Comments (6)
Unfortunately I have not (yet) documented the design decisions that this tool is based on. They are based on the experience we had with running AWS Lambda based microservice architecture. We started using Lambda service when it was still in its infancy (there were no versioning, aliases and definitely no API Gateway). So some things here might not make that much sense anymore...
That said, the way the tool works is that every environment specified in configuration is totally separate instance of AWS Lambda (and API GW too). So if you have defined test
and production
two separate Lambda functions will be created (instead of aliases to certain versions). I chose to use same kind of design in API Gateway too. It will always create separate APIs (instead of separate stages).
from clj-lambda-utils.
I updated example in README.md to have unique api name in test and production config.
from clj-lambda-utils.
OK, got you. Thanks for the explanation.
from clj-lambda-utils.
FYI, I've subsequently created a Leiningen plugin of my own, which handles stages in the way that I outlined above:
https://github.com/paulbutcher/lein-lambda
Not that I'm suggesting that either approach is "right" or "wrong", you understand - just different.
I've included a link to this repository in the readme, as the inspiration.
from clj-lambda-utils.
Thanks for the info. The way you handle the stages definitely makes sense and is nowadays more official way for handling the stages. I will still think if that could be used in this plugin too. However, I don't want to break the backwards compatibility. So it needs some thinking...
from clj-lambda-utils.
NP - different approaches are all valid ;-)
Might be nice if we could cross-link to each other so that people who are evaluating which to use know about the options?
from clj-lambda-utils.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clj-lambda-utils.