<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Durgadas Kamath</title>
    <description>The latest articles on DEV Community by Durgadas Kamath (@durgadas).</description>
    <link>https://dev.to/durgadas</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F999425%2F7107a51b-cda3-4ed1-b028-428e630dd5dd.jpg</url>
      <title>DEV Community: Durgadas Kamath</title>
      <link>https://dev.to/durgadas</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/durgadas"/>
    <language>en</language>
    <item>
      <title>BreathOfLife: How a Serverless App Built on AWS Helped Meet Critical Covid-19 Needs</title>
      <dc:creator>Durgadas Kamath</dc:creator>
      <pubDate>Fri, 24 Mar 2023 09:19:54 +0000</pubDate>
      <link>https://dev.to/aws-builders/breathoflife-how-a-serverless-app-built-on-aws-helped-meet-critical-covid-19-needs-2l73</link>
      <guid>https://dev.to/aws-builders/breathoflife-how-a-serverless-app-built-on-aws-helped-meet-critical-covid-19-needs-2l73</guid>
      <description>&lt;p&gt;The Covid-19 pandemic changed our lives in many ways and one of the most significant impacts has been in the healthcare domain. Hospitals and medical facilities were overwhelmed by a large number of patients and the scarcity of hospital beds and oxygen machines became a very major issue. There was panic all around.&lt;/p&gt;

&lt;p&gt;During this time, we (a group of friends from an IT background) realized that many people were struggling to get access to oxygen machines, which were critical for patients with Covid-19. We knew that we needed to act fast and find a way to help people in need.&lt;/p&gt;

&lt;p&gt;As we were from IT backgrounds, we decided to leverage technology to build an application that could help people reserve oxygen machines quickly and efficiently. Our focus was to build an application that could be deployed quickly and was cost-effective. After brainstorming and developing a plan, we named the application “&lt;strong&gt;BreathOfLife&lt;/strong&gt;”&lt;/p&gt;

&lt;p&gt;We chose AWS as it offered a serverless architecture that was perfect for our needs. The serverless architecture meant that we did not have to worry about managing servers or scaling the infrastructure. The platform could automatically scale based on the traffic, ensuring that our application remained responsive and fast 24x7.&lt;/p&gt;

&lt;h2&gt;
  
  
  Journey begins…
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;We started building the React UI (as we were most comfortable with), which we hosted on S3 with CloudFront. The serverless Lambda function was used to handle the API requests, while API Gateway was used as the interface between the API and the application. We chose DynamoDB as the database as it is a highly scalable and cost-effective NoSQL database that can handle large volumes of data ( p.s: we didn’t have that much data ;-) ).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;One of the key features of our application was the ability to upload medical certificates or Doctor’s notes to confirm the need for oxygen machines. We also set up email triggers for the admins to approve or reject the reservations, which helped us to manage the large number of requests we were receiving. Notifications were also sent to the users on approval or rejection and when the machine was due for return. We used SES to send emails.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Next, we created a subdomain and registered it with Route 53, which allowed us to create a custom URL for the application and make it easily accessible to the public. This helped us to reach more people in need and made the application more user-friendly.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Cost-effectiveness was a crucial factor for us as we were building this application in our spare time and with limited resources. So, we took advantage of the AWS free tier, and the pay-per-use pricing model allowed us to keep the costs low. We were able to run the entire application for under 1$ per month (the major being route53 hosted domain cost), thanks to decent low traffic and usage.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The partnership with the NGO group was instrumental in the success of the application. The group arranged/purchased oxygen machines and helped us to reach more people in need and spread the word about the application.&lt;/p&gt;

&lt;p&gt;As the pandemic continued, we worked to improve the application based on feedback from users and the NGO group. We added new features and simplified the request process thereby ensuring that the machines were made available quickly.&lt;/p&gt;

&lt;p&gt;One of the biggest challenges faced was managing the large number of reservations we were receiving. The traditional approach of using spreadsheets and manual record-keeping was not going to be sustainable, which is why we built BreathOfLife. The application allowed us to manage the reservations efficiently and provide real-time updates to the users.&lt;/p&gt;

&lt;h2&gt;
  
  
  Simple Architecture (Nothing Fancy)
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xaD2-gb5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jwsi9vcnw9vsx1npe68x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xaD2-gb5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jwsi9vcnw9vsx1npe68x.png" alt="Image description" width="880" height="397"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To conclude, the Covid-19 pandemic was a challenging time for everyone, but it also showed us the power of technology and how it can be used to help people in need. By leveraging the serverless architecture of AWS and the commitment of the Rotary group, we were able to build an efficient and cost-effective application that helped people reserve oxygen machines quickly and easily.&lt;/p&gt;

&lt;p&gt;What is satisfying is we were able to help many people during a time of crisis. The outcome also highlighted the importance of innovation and creativity during difficult times. As the pandemic continued, many businesses and organizations were forced to adapt to new circumstances, and the ones that were able to innovate and find new ways to solve problems were the ones that thrived.&lt;/p&gt;

&lt;p&gt;The experience of building this application taught us many valuable lessons about the power of collaboration and the importance of community. Looking ahead, we believe that the lessons learnt from this experience will continue to be relevant in the post-pandemic world. The importance of technology and innovation will only continue to grow, and the need for collaboration and community support will remain as critical as ever.&lt;/p&gt;

&lt;p&gt;Hope this post inspires many more people to come forward and respond to critical situations. Cheers!!&lt;/p&gt;

</description>
      <category>aws</category>
      <category>serverless</category>
      <category>technology</category>
      <category>cloud</category>
    </item>
    <item>
      <title>The Serverless Mindset: Strategies for Building Scalable, Event-Driven Applications</title>
      <dc:creator>Durgadas Kamath</dc:creator>
      <pubDate>Mon, 13 Mar 2023 14:28:15 +0000</pubDate>
      <link>https://dev.to/aws-builders/the-serverless-mindset-strategies-for-building-scalable-event-driven-applications-282</link>
      <guid>https://dev.to/aws-builders/the-serverless-mindset-strategies-for-building-scalable-event-driven-applications-282</guid>
      <description>&lt;p&gt;Serverless computing has gained popularity in recent years as a way to build and deploy applications without having to worry about the underlying infrastructure. In this article, we will explore the concept of serverless computing and discuss some strategies for thinking about and building serverless applications.&lt;/p&gt;




&lt;h2&gt;
  
  
  What is serverless computing?
&lt;/h2&gt;

&lt;p&gt;Serverless computing is a model of cloud computing in which the cloud provider (AWS, Azure, Google Cloud, IBM Cloud etc) manages the infrastructure and automatically allocates resources as needed to run applications. This means that developers can focus on writing code, rather than managing servers or infrastructure.&lt;/p&gt;

&lt;p&gt;Some common characteristics of serverless computing include:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pay-per-use pricing&lt;/strong&gt;: With serverless computing, you only pay for the resources that your application uses, rather than having to pay for a fixed amount of resources upfront.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Automatic scaling&lt;/strong&gt;: Serverless platforms automatically scale up or down based on demand, so you don’t have to worry about over or under-provisioning resources.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Event-driven execution&lt;/strong&gt;: Serverless applications are typically triggered by events, such as a user uploading a file or a message being sent to a queue. This makes them well-suited for building microservices or handling asynchronous tasks.&lt;/p&gt;




&lt;h2&gt;
  
  
  Thinking serverless
&lt;/h2&gt;

&lt;p&gt;So, how do you go about thinking serverless when building an application? Here are a few things to consider:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Break down&lt;/strong&gt;: Break your application into small, independent pieces: Serverless computing is well-suited for building microservices, which are small, independent units of code that perform a specific function. By breaking your application into small pieces, you can take advantage of the event-driven nature of serverless computing and scale each piece independently.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Focus on the business logic&lt;/strong&gt;: With serverless computing, you don’t have to worry about the underlying infrastructure, so you can focus on writing code that addresses the core business needs of your application.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use managed services&lt;/strong&gt;: Cloud providers offer managed services for common tasks, such as database management, authentication, and messaging. These services can save you time and effort by taking care of the underlying infrastructure for you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use appropriate patterns and practices&lt;/strong&gt;: There are many patterns and practices that can help you design and build effective serverless applications. Some examples include using queues to decouple services, using a state machine to manage complex workflows, and using a cache to improve performance.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion:
&lt;/h2&gt;

&lt;p&gt;Serverless computing offers a number of benefits, including pay-per-use pricing, automatic scaling, and event-driven execution. By breaking your application into small, independent pieces, focusing on the business logic, using managed services, and using appropriate patterns and practices, you can effectively design and build serverless applications that meet the needs of your business.&lt;/p&gt;

&lt;p&gt;Check out my &lt;a href="https://www.youtube.com/@durgadaskamath"&gt;Youtube Channel&lt;/a&gt; for videos on serverless computing. Do like, Subscribe the channel :-)&lt;/p&gt;

&lt;p&gt;. Follow me to receive notifications on new articles.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>webdev</category>
      <category>serverless</category>
      <category>cloud</category>
    </item>
    <item>
      <title>Event-Driven vs Workflows: A Comprehensive Comparison for Developers and Architects</title>
      <dc:creator>Durgadas Kamath</dc:creator>
      <pubDate>Thu, 09 Mar 2023 07:38:28 +0000</pubDate>
      <link>https://dev.to/aws-builders/event-driven-vs-workflows-a-comprehensive-comparison-for-developers-and-architects-2j9k</link>
      <guid>https://dev.to/aws-builders/event-driven-vs-workflows-a-comprehensive-comparison-for-developers-and-architects-2j9k</guid>
      <description>&lt;p&gt;As cloud workloads become increasingly complex, developers and architects need to carefully consider which orchestration approach to use in their AWS architecture.&lt;/p&gt;

&lt;p&gt;Two popular approaches are Event-Driven Architecture and Workflows using AWS Step Functions. In this comprehensive comparison, we’ll take a closer look at both approaches and evaluate the trade-offs between them. &lt;br&gt;
By the end of this article, you’ll have a better understanding of which approach fits your workload and be able to optimize your AWS architecture for maximum efficiency and performance.&lt;/p&gt;




&lt;p&gt;Event-driven architecture (EDA) and Workflows, such as AWS Step Functions, are two popular approaches for building distributed applications in the cloud. While both approaches share similarities, they are fundamentally different in their design and use cases.&lt;/p&gt;

&lt;h2&gt;
  
  
  So, what is Event Driven Architecture (EDA)?
&lt;/h2&gt;

&lt;p&gt;Event-driven architecture is a design pattern in which the system reacts to events that occur within the system or in the external environment. Events can be generated by user interactions, sensors, and other software components. Event-driven architectures are commonly used in IoT, real-time analytics, and microservices.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why do we need Event Driven Architecture?
&lt;/h2&gt;

&lt;p&gt;Event-driven architectures offer several advantages over traditional, monolithic architectures.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Highly scalable&lt;/strong&gt; — they can handle large volumes of events and distribute workloads across multiple services.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Highly resilient&lt;/strong&gt; — they can tolerate failures and continue to operate despite partial system failures.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Highly decoupled&lt;/strong&gt; — each service can operate independently and without knowledge of other services.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  When to use Event Driven Architecture?
&lt;/h2&gt;

&lt;p&gt;Event-driven architectures are best suited for applications that require real-time data processing, high throughput, and dynamic scaling.&lt;/p&gt;

&lt;p&gt;They are well-suited for scenarios where events are generated by user interactions, IoT sensors, and other sources that require immediate response.&lt;/p&gt;

&lt;p&gt;EDA is also an excellent choice for applications that require complex event processing, such as fraud detection, sentiment analysis, and predictive maintenance.&lt;/p&gt;

&lt;p&gt;Before, we dive deeper — lets understand Workflows (AWS Step Function)&lt;/p&gt;




&lt;h2&gt;
  
  
  What is AWS Step Functions?
&lt;/h2&gt;

&lt;p&gt;AWS Step Functions is a fully managed workflow service that enables you to coordinate distributed applications using visual workflows. With Step Functions, you can build and run workflows that integrate with AWS services such as Lambda, SNS, and SQS.&lt;/p&gt;

&lt;p&gt;Workflows are defined using JSON-based Amazon States Language, which allows you to define the sequence of steps in your workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why do we need AWS Step Functions?
&lt;/h2&gt;

&lt;p&gt;AWS Step Functions provides several benefits over traditional workflow engines.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Fully managed&lt;/strong&gt; — you do not need to worry about infrastructure management or scaling.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Visual editor&lt;/strong&gt; — makes it easy to design and debug your workflows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Seamless Integration with AWS Services&lt;/strong&gt; — makes it easy to build complex workflows that span multiple services.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  When to use AWS Step Functions?
&lt;/h2&gt;

&lt;p&gt;AWS Step Functions is well-suited for applications that require complex workflows that involve multiple AWS services.&lt;/p&gt;

&lt;p&gt;It is an excellent choice for building serverless applications that require coordination between multiple Lambda functions, SNS topics, and SQS queues.&lt;/p&gt;

&lt;p&gt;It is also well-suited for applications that require long-running workflows, such as video processing or batch processing.&lt;/p&gt;

&lt;p&gt;EDA is an example of a choreography-based architecture, where services collaborate by reacting to events. In contrast, AWS Step Functions is an example of an orchestration-based architecture, where a central orchestrator controls the flow of the application by coordinating services.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Maintenance cost&lt;/strong&gt; and &lt;strong&gt;total cost of ownership (TCO)&lt;/strong&gt; are important considerations when choosing between event-driven architecture (EDA) and AWS Step Functions. Here are some points to consider:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Maintenance Cost:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;EDA services require more maintenance than AWS Step Functions since EDA services usually require more manual configuration, monitoring, and troubleshooting.&lt;br&gt;
In EDA, services are often responsible for their own event processing and error handling, which can require more effort to maintain and troubleshoot.&lt;br&gt;
In contrast, AWS Step Functions is fully managed, which means AWS takes care of infrastructure management, scaling, and updates. This reduces the maintenance burden on developers and operations teams.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Total Cost of Ownership (TCO):&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The TCO for EDA and AWS Step Functions can vary depending on the specific use case and workload.&lt;/p&gt;

&lt;p&gt;EDA services are generally more cost-effective for workloads with high volumes of events, as they can distribute workloads across multiple services and scale more efficiently.&lt;/p&gt;

&lt;p&gt;AWS Step Functions is more cost-effective for workloads that require complex workflows with multiple AWS services, as it can reduce the overall number of services required and minimize the number of AWS API calls.&lt;/p&gt;

&lt;p&gt;Overall, EDA and AWS Step Functions have different maintenance costs and TCOs depending on the specific use case and workload. Developers and operations teams should carefully evaluate the requirements and trade-offs of each approach before making a decision.&lt;/p&gt;

&lt;p&gt;One thing to note is making changes to a complex workflow in AWS Step Functions can be challenging and require extensive testing. On the other hand, adding new functionality to an event-driven architecture can be less prone to regressions and may require less testing.&lt;/p&gt;

&lt;p&gt;This is because AWS Step Functions are designed to control the flow of a complex workflow by coordinating multiple services. If the workflow changes, it can affect the behaviour of all the services that are involved in the workflow. This can make it difficult to predict the impact of a change and require extensive testing to ensure that the workflow still functions correctly.&lt;/p&gt;

&lt;p&gt;In contrast, event-driven architectures are designed to react to events in a decoupled manner. Each service is responsible for handling its own events, and adding new functionality can often be done without affecting the behaviour of other services. This can make it easier to make changes and add new features without the risk of causing regressions.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;However, the general trade-off between the two approaches is that AWS Step Functions can provide more control over complex workflows but require more effort to maintain, while event-driven architectures can be more flexible and easier to maintain but may require more design upfront to handle complex workflows.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Conclusion:
&lt;/h2&gt;

&lt;p&gt;Choosing between Event Driven Architecture and AWS Step Functions can be challenging and depends on the specific use case and workload. To make the decision process easier, developers and architects can go through a checklist to evaluate the requirements and trade-offs of each approach.&lt;/p&gt;

&lt;p&gt;Few factors that I can think of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Workflow Complexity&lt;/strong&gt;: If the workload requires a complex workflow with multiple AWS services, &lt;strong&gt;AWS Step Functions&lt;/strong&gt; may be the better choice.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Event Volume&lt;/strong&gt;: If the workload involves high volumes of events, &lt;strong&gt;Event-Driven Architecture&lt;/strong&gt; may be more efficient and cost-effective.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Error Handling&lt;/strong&gt;: If error handling and retries are critical to the workload, &lt;strong&gt;AWS Step Functions&lt;/strong&gt; may provide more control and visibility.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Service Isolation&lt;/strong&gt;: If it’s important to minimize the impact of changes or failures to individual services, &lt;strong&gt;Event-Driven Architecture&lt;/strong&gt; may be more appropriate.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Maintenance Burden&lt;/strong&gt;: If minimizing maintenance burden is a priority, &lt;strong&gt;AWS Step Functions&lt;/strong&gt; fully managed infrastructure may be more desirable.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Ultimately, the decision should be based on the specific requirements and trade-offs of the workload. By going through this checklist and considering these factors, developers and architects can make a well-informed decision and choose the approach that best fits their needs.&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If you found this post helpful, follow me for more upcoming content! And don’t forget to leave a comment with your feedback. Your input is important to me and will help me create even better &lt;br&gt;
content in the future. Thank you for your support!&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>programming</category>
      <category>aws</category>
      <category>designpatterns</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Improve the speed of your AWS lambda API (NodeJS) with these two easy techniques.</title>
      <dc:creator>Durgadas Kamath</dc:creator>
      <pubDate>Fri, 03 Mar 2023 14:21:34 +0000</pubDate>
      <link>https://dev.to/aws-builders/improve-the-speed-of-your-aws-lambda-api-nodejs-with-these-two-easy-techniques-373c</link>
      <guid>https://dev.to/aws-builders/improve-the-speed-of-your-aws-lambda-api-nodejs-with-these-two-easy-techniques-373c</guid>
      <description>&lt;p&gt;Being inquiring is fine, but striving for improvement is better. I have been using AWS Serverless services (Lambda, DynamoDB) with NodeJS as the runtime . I’ve often wondered how to reduce latency while developing APIs that integrate with AWS services.&lt;/p&gt;

&lt;p&gt;While adhering to best practises with minimal imports and other requirements is essential, there are two simple measures you can do to further enhance the speed of your Serverless application.&lt;/p&gt;




&lt;h2&gt;
  
  
  callbackWaitsForEmptyEventLoop = false
&lt;/h2&gt;

&lt;p&gt;Our lambda API accepts (event, context, callback) as an argument when it is defined. NodeJS leverages an event loop, and if you use a callback to deliver a response, it delays sending the output until the event loop is empty.&lt;/p&gt;

&lt;p&gt;If this property (callbackWaitsForEmptyEventLoop) is set to false, the callback will immediately return the response, and any outstanding events will run on next invocation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;context.callbackWaitsForEmptyEventLoop = false;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmjj28sl2d7yvkyyuyvyi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmjj28sl2d7yvkyyuyvyi.png" alt="callbackWaits" width="799" height="453"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
&lt;/h2&gt;

&lt;p&gt;A lambda implementation will nearly always include integration with AWS services. When interacting with AWS services using the aws-sdk, a fresh TCP/IP connection is always established. This increases latency, which may potentially be longer than the time needed to query DynamoDB:-).&lt;/p&gt;

&lt;p&gt;So, AWS offers a “Connection Reuse” method. Simply changing the environment variable AWS_NODEJS_CONNECTION_REUSE_ENABLED to 1 will enable this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjqoexug62vwm790jjvnw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjqoexug62vwm790jjvnw.png" alt="awsConnectionReuse" width="687" height="589"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Another approach is to add &lt;strong&gt;keepAlive&lt;/strong&gt; value to the options while configuring the AWS client.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnio9v6mv9mgh377tec86.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnio9v6mv9mgh377tec86.png" alt="awsKeepAlive" width="553" height="580"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Note: This parameter is enabled by default if you’re using the AWS SDK version 3.&lt;/p&gt;




&lt;p&gt;Check out my &lt;a href="https://youtube.com/@durgadaskamath" rel="noopener noreferrer"&gt;YouTube channel&lt;/a&gt; for videos on serverless computing.&lt;/p&gt;

&lt;p&gt;Follow me for more of interesting articles. Happy Learning #AWSCommunity #AWSCommunityBuilder&lt;/p&gt;

</description>
      <category>python</category>
      <category>career</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
