Link to home
Start Free TrialLog in
Avatar of raimunda k
raimunda k

asked on

spring boot microservice to aws lambda

Hi,

Am trying to create a solution to convert spring boot microservices to AWS Lambda. Am getting mixed opinions on if spring boots should even be considered suitable for aws lambda.
Under what circumstances would it make sense for me to go ahead with the conversion?
What type of assessment checks should I do before I try to re-write a Java based microservice to a serverless function?
Avatar of David Favor
David Favor
Flag of United States of America image

1) Am trying to create a solution to convert spring boot microservices to AWS Lambda. Am getting mixed opinions on if spring boots should even be considered suitable for aws lambda.

Describe your exact current microservice first.

2) Under what circumstances would it make sense for me to go ahead with the conversion?

See #1 + also any microservice can be ported to run on a normal LAMP Stack or any other stack.

3) What type of assessment checks should I do before I try to re-write a Java based microservice to a serverless function?

Well... firstly... you can't rewrite a microservice to run without a Web server.

So you'd start by rewriting Apache in Java... shudder... Not recommended.

Unless you have a an unlimited development budget, you'll build your service on some existing Web server.

Also, using Java as a target language... Having written Java for many years as a contractor, the big joke with contractors was everyone was after a Java or C++ contract, because projects to so much longer to do development in Java or C++, verses something like PHP.

If you're looking for a learning experience, use Java.

If you're looking to put food on your table in the shortest amount of time, use PHP.
Why do you need to go for AWS Lambda? What problems will it solve that are not solved by your current spring boot micro services? Why not go with the "traditional" AWS cloud (EC2) where you will not need to do any changes at all? Is it because of the different charging model?
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.