5 ms·
In case someone is looking to move their java REST server to Lambda, here are a few lessons I learnt: a) fragment your REST war into smaller micro services war
by manishsharan 10y ago
In case someone is looking to move their java REST server to Lambda, here are a few lessons I learnt:
a) fragment your REST war into smaller micro services wars. The load time for big REST application will impact your caller. Small micro services will boot up on Lambda much faster and respond quicker.
b) If you use spring dependency injection, you may want to rethink that and tweak/optimize it. I had a database tier with over 20 hibernate/ebj beans . The load time was horrendous. I had to eliminate all beans not needed by the microservice.
- minalecs 10y agoYou're right, don't make a big war, but think of it as micro functions. Also if you're going to use spring check out this guide. https://cloud.google.com/appengine/articles/spring_optimization https://cloud.google.com/appengine/articles/spring_optimizat... its relevant to aws lambda as well.
- deleted 10y ago[deleted]