When developing serverless functions, you often need additional dependencies or libraries for the function to work. For Lambda functions in java, you need amazon dependencies of the services used in the function. Then you zip the function and its dependencies into a fat jar and upload it to the Lambda function. If you are not familiar with creating lambda function in java then refer to this post for a quick start.
Hello Everyone! Today we are going to see how you can generate dynamic content in Lamdba. We are going to use Java 8, Apache Maven, AWS SDK for Java, Apache Velocity to achieve this.
Uses Cases There are several scenarios where you want to create dynamic content. For example, to create an HTML page response for an API method instead of returning just data in JSON/ XML. The other scenario is to generate a file or message with dynamic content.
For those who don’t know, IKEA is a Swedish multinational group designs and sells ready-to-assemble furniture, kitchen appliances, home accessories, etc.
What is IKEA Effect The IKEA effect is a cognitive bias in which consumers place a disproportionately high value on products they partially created. A 2011 study found that subjects were willing to pay more for furniture they had assembled themselves, than for equivalent pre-assembled items.
Now you might be wondering why we are discussing it on a tech blog?
Today we are going to see how one can write a serverless application using Serverless Application Model (SAM). First, let’s understand what Serverless Application Model is.
What is Serverless Application Model? What do you do when you want to create a resource on AWS, for example, Lambda function? You log in to the AWS console and manually go to the Lambda service to create a function. Now say you want to create 10 such functions you have to do the same process 10 times.
In the previous post, , we looked at a simple Lambda handler using the AWS Java SDK. In this post, we’re going to implement Rest API with Lambda (using Lambda Proxy Integration).
What is Lambda Proxy Integration When a client submits an API request, API Gateway passes the request to the integrated Lambda function as-is, except that the order of the request parameters is not preserved. This request data includes the request headers, query string parameters, URL path variables, payload, and API configuration data.
If you like the post ,feel free to share and follow me on Twitter for updates!