Subscribe to my newsletter and never miss updates!

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply

How to create dynamic content using AWS Lambda?

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.

What Is IKEA Effect and How to Benefit From It?

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?

AWS Serverless Application Model : Guide to writing your first AWS SAM Application

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.

REST API using AWS Java SDK

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.

AWS Lambda Performance Optimizations

In this post we are going to see how you can optimize performance of AWS Lambda function. Although Lambda is a managed service by AWS and it automatically scales, based on shared responsibility model, the underlying service details will be managed by AWS but its client’s responsibility to correctly use the service. By using these optimizations you can lower your Lambda bill. Lets look at some of the Lambda Performance Optimizations Execution context Reuse When a Lambda function is invoked, AWS Lambda launches an execution context based on the configuration settings you provide like Memory, runtime, etc.