Lambda Framework was created for this use case. Lambda Framework accomplishes this target by implementing the most common JAX-RS annotations and providing a Maven plugin to deploy easily to the AWS cloud. Briefly, JAX-RS is a standard annotation set of J2EE which can be used to map regular Java methods to HTTP paths and methods. For instance, you can look at the following method:
@GET @Path("/helloworld/{id}") public Response indexEndpoint(@PathParam int id) { return Response.status(200).entity("Hello world: " + id).build(); }
This is a very lean method marked with the @GET and @Path annotations, which mean that this method is called when a GET request comes to URLs in the /helloworld/{id} format, with the id parameter as an argument. Finally, it returns a Response object within this method with a 200 response code and...