Coder Social home page Coder Social logo

Comments (6)

mhjort avatar mhjort commented on May 18, 2024

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.

mhjort avatar mhjort commented on May 18, 2024

I updated example in README.md to have unique api name in test and production config.

from clj-lambda-utils.

paulbutcher avatar paulbutcher commented on May 18, 2024

OK, got you. Thanks for the explanation.

from clj-lambda-utils.

paulbutcher avatar paulbutcher commented on May 18, 2024

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.

mhjort avatar mhjort commented on May 18, 2024

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.

paulbutcher avatar paulbutcher commented on May 18, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.