Serverless Synergy: Building a Full-stack Serverless Application with Sentiment Analysis from Image Capabilities with the AWS Suite
Lesmon Andres Lenin Saluta2023-11-30T06:11:01+00:00Plenty of full-stack web applications are scattered across the internet nowadays, with varying tech stacks and services utilized to serve their varying purposes. Like with other technologies, as popularity increases, so does the surrounding ecosystem, which manifests in significant improvements in the development cycle. In this article, we will discuss how to build a simple but purposeful, full-stack web application using multiple features of Amazon Web Services. We will focus on the orchestration of the many various services used, with an emphasis on making a streamlined process. Application Use Case This application is intended for anyone monitoring reviews, feedback messages, [...]
Serverless Model Deployment in AWS: Streamlining with Lambda, Docker, and S3
John Patrick Laurel2023-11-30T06:08:01+00:00Welcome back to our series on model deployment in AWS! In the fast-paced world of machine learning and data science, the ability to deploy models efficiently and reliably is crucial. This is where AWS services, with their vast array of tools and capabilities, come into play. In this second installment, we will delve into the potent combination of AWS Lambda and Docker, coupled with the convenience of storing models in S3. This trio offers a scalable, cost-effective, and streamlined solution for deploying machine learning models in a production environment. If you recall, in the first part of our series, we [...]
AWS Lambda Response Streaming Demo
Carlo Acebedo2023-07-13T20:17:08+00:00Introduction Response streaming is a new invocation method that enables your functions to progressively stream response payloads back to the clients. Instead of waiting for the entire data to be ready, your applications can now receive chunks of data as soon as they become available. This means faster loading times and a more responsive user experience. Response Streaming vs. Non-Streaming (Buffering) To quickly get an idea of how it works, we need to see it in action. Below, we show two functions that have the simple task of displaying a message in HTML. The non-streaming function introduces a delay of [...]
Building Serverless APIs with AWS API Gateway and AWS Lambda
Bill Junidez Liad2023-08-11T19:49:27+00:00Are you looking to create robust and scalable APIs without dealing with infrastructure management? In this article, we'll look at how to use AWS Lambda and AWS API Gateway to create serverless APIs. You may build APIs that automatically grow, are simple to manage, and offer a seamless user experience by using these services. Your APIs' front door is AWS API Gateway, and AWS Lambda handles the backend computation. Using this integration, you can create reliable and adaptable APIs without worrying about managing infrastructure or servers. Let's examine the relationship between Lambda and API Gateway in more detail. Two ways [...]
Redacting PIIs Using S3 Object Lambda
Carlo Acebedo2023-06-30T01:06:40+00:00The Challenge Data privacy is a top priority for businesses, especially amid the rising global data regulations. One common challenge is ensuring sensitive data, like personally identifiable information (PII), remains protected when data is accessed or transferred. Imagine you have a bunch of employee profiles stored as CSV files in an S3 bucket. These profiles include sensitive information such as real names, social security numbers, and email addresses, along with non-sensitive data like job titles and office locations. Various teams within your company often need to access these files for their work. For instance, HR may need to understand the [...]
Setting Up AWS Billing Alerts on Slack
Carlo Acebedo2023-06-16T03:19:15+00:00Introduction Let's first get familiar with the AWS Cost Explorer. It's essentially a dedicated financial advisor for your AWS expenses, helping you make sense of where your spending goes. With an easy-to-use interface, AWS Cost Explorer provides detailed visual analytics of your past, present, and predicted AWS usage and costs. Why Slack for AWS bill? We've all been there, trying to stay on top of our monthly bills. AWS does provide budget alerts, which are pretty handy in preventing spending overruns. But those alerts only chime in when you hit certain thresholds. If you want to see how your [...]
AWS Lambda: Synchronous vs Asynchronous Invocation
Carlo Acebedo2024-07-17T03:30:08+00:00You can invoke a Lambda function in two ways. Synchronous Invocation The first one is called Synchronous invocation, which is the default mode. Synchronous invocation is pretty straightforward. When you invoke a function synchronously, AWS Lambda waits until the function is done processing, then returns the result. Let’s see how this works through the following example: The diagram illustrates a Lambda function-backed API that is managed by API Gateway. When API Gateway receives a GET request from the /getOrder resource, it invokes the getOrder function. The function receives an event containing the payload, processes it, and then returns the result. [...]
Connecting your Lambda Function to a Private Database
Carlo Acebedo2023-05-15T02:11:53+00:00If you want your Lambda function to interact with resources (e.g., RDS database, EC2 instance) inside a private subnet, you won't be able to do so by default. The reason for this is that Lambda functions live in an isolated and secured VPC managed by AWS. This is why when you create a Lambda function, you don’t go through any networking configurations (VPC, subnet, ENIs), unlike when creating EC2 instances. Also, you cannot establish a VPC peering connection between the VPC where Lambda functions are run and the VPC where your private resources are located because the former is not [...]
Retrieving Parameter Values from SSM Parameter Store through AWS Lambda
Amiel Palacol2023-03-27T04:01:09+00:00In today's world, serverless computing is gaining popularity as it offers technologies for running code, managing data, and integrating applications, all without managing servers. It eliminates the infrastructure management tasks so developers can focus on application development. One of the requirements of serverless development is storage for configuration data management and secrets management. Developers need to store data such as passwords, database strings, etc., at some point. Luckily, Parameter Store, a capability of AWS Systems Manager, provides secure, hierarchical storage for configuration data management and secrets management that works well in serverless development. Developers can store values as plain text [...]