1

I have a rest api developed in spring boot. It has many http methods with different endpoints. Now I want to deploy this code to AWS lambda. My current code is designed using Controllers and Request mapping methods. As per AWS lambda, I have to write request handler functions instead of using typical Java request mapping methods. What is the best way to covert the existing rest api to aws lambda function? When I search some articles I am getting only hello world examples with request handler functions. It is not helpful to convert the whole API. Please share some examples and coding standards to write the request handlers. Thanks in advance.

1 Answer 1

2

There is no out of the box conversion.

But there is a Spring Cloud Project Functions:

https://spring.io/projects/spring-cloud-function

Here you will find the documentation:

https://cloud.spring.io/spring-cloud-function/spring-cloud-function.html

But as I said there is no way to use Controllers because it doesn't make sense to start a whole Spring Boot application as a Function.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.