Getting to know Lambda Framework

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 ...

Get Building Serverless Architectures now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.