<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nicolas Frasson Boaroto on Medium]]></title>
        <description><![CDATA[Stories by Nicolas Frasson Boaroto on Medium]]></description>
        <link>https://medium.com/@nicfra0710?source=rss-d729297e908b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8K6BUhEy_R7wpOk9pw4qyA.jpeg</url>
            <title>Stories by Nicolas Frasson Boaroto on Medium</title>
            <link>https://medium.com/@nicfra0710?source=rss-d729297e908b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 22:52:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nicfra0710/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Employability Risk: Is Excessive AI Use Sabotaging Your Developer Skills?]]></title>
            <link>https://medium.com/@nicfra0710/employability-risk-is-excessive-ai-use-sabotaging-your-developer-skills-66fdfbb9febf?source=rss-d729297e908b------2</link>
            <guid isPermaLink="false">https://medium.com/p/66fdfbb9febf</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Nicolas Frasson Boaroto]]></dc:creator>
            <pubDate>Thu, 04 Dec 2025 20:37:09 GMT</pubDate>
            <atom:updated>2025-12-04T20:37:09.523Z</atom:updated>
            <content:encoded><![CDATA[<p><em>New research reveals how “Cognitive Offloading” and “Cognitive Debt” might be quietly eroding the critical thinking skills you need to build a career in Tech.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZSNaj9pgGIgp0jtasZSITQ.png" /></figure><p><strong>By:</strong> Henri de Assis Santiago, Nicolas Frasson Boaroto, Pedro Cavalcante Mazzuca, Pedro Henrique S. C. Sousa, and Alexandre Donizet Alves.</p><p>If you are a junior developer or a tech student today, tools like AI Integrated IDEs, GitHub Copilot and ChatGPT feel like superpowers. They write boilerplate code in seconds, explain complex errors, and make productivity soar.</p><p>But there is a hidden cost to this convenience.</p><p>Recent scientific studies suggest that relying too heavily on AI for coding and problem-solving isn’t just making us “lazy” — it is fundamentally altering how our brains process information. For professionals in the early stages of their careers (1–3 years), this creates a significant <strong>Employability Risk</strong>.</p><p>Here is what the science says about your brain on AI, and how you can protect your skills without abandoning the tools.</p><h3>The Science: “Cognitive Offloading” and “Cognitive Debt”</h3><p>The core of the problem is a phenomenon researchers call <strong>Cognitive Offloading</strong>. This happens when we delegate mental processing to external tools. While helpful for saving energy, excessive offloading leads to the atrophy of essential skills.</p><p>A 2025 study by <strong>Gerlich</strong> found a significant negative correlation between frequent AI usage and critical thinking abilities. The study highlighted that younger users, who often rely more heavily on these tools, showed lower critical thinking scores compared to older generations who use AI more sparingly.</p><p>But it goes deeper than just “thinking less.” A groundbreaking study by <strong>Kosmyna et al. (MIT Media Lab, 2025)</strong> used electroencephalography (EEG) to scan brains during writing tasks. The results were stark:</p><ul><li><strong>Weaker Connectivity:</strong> Participants who used only their brains showed the strongest neural connectivity. Those using LLMs showed the weakest.</li><li><strong>The Loss of Authorship Phenomenon:</strong> The LLM group had a diminished sense of ownership over their work and, shockingly, <strong>could not recall quotes from the text they had just produced</strong>.</li><li><strong>Cognitive Debt:</strong> The researchers coined the term “Cognitive Debt” to describe how skipping the “struggle” of thinking creates a long-term deficit in learning and skill retention.</li></ul><h3>The Confidence Trap</h3><p>Why do we stop thinking critically when using AI? A study by <strong>Lee et al. (2025)</strong> surveying over 300 knowledge workers found a dangerous paradox: <strong>Confidence.</strong></p><p>The study revealed that higher confidence in the AI’s capabilities is associated with <em>less</em> critical thinking effort. Essentially, if you trust the bot, you stop checking its work. Conversely, users who had higher <em>self-confidence</em> in their own skills were more likely to verify and critique the AI’s output.</p><h3>The Danger for Junior Developers</h3><p>For a Senior Developer with 10 years of experience, AI is a force multiplier. They already know how the “engine” works.</p><p>For a <strong>Junior Developer</strong>, however, the struggle of reading documentation, debugging obscure errors, and writing inefficient code <em>is</em> the learning process. By bypassing this struggle via AI, you risk:</p><ol><li><strong>Inability to Debug:</strong> If you didn’t write the logic, you often lack the deep understanding required to fix it when it breaks.</li><li><strong>Loss of “Task Stewardship”:</strong> Instead of executing tasks, you become a passive supervisor. If you lack the foundational skills to supervise (verify) the code, you become a liability.</li><li><strong>Erosion of Analytical Thinking:</strong> Over-reliance leads to accepting hallucinations and biases without question, degrading the decision-making skills employers hire you for.</li><li><strong>Leaving vulnerabilities</strong>: AI does not know for what a certain code is being used, and thus may result in vulnerabilities that can be exploited.</li></ol><h3>How to Mitigate the Risk (Actionable Tips)</h3><p>We aren’t suggesting you delete your AI tools. That would be like refusing to use a calculator. However, to ensure your employability, you must move from <strong>passive dependence</strong> to <strong>active stewardship</strong>.</p><p><strong>1. The “Brain First” Rule</strong> Before prompting the AI, attempt to solve the logic or outline the architecture yourself. As Kosmyna’s study showed, the neural pathways for problem-solving need to be activated <em>before</em> assistance is received to ensure retention.</p><p><strong>2. Verify, Don’t Just Review</strong> Treat AI code like code written by a junior intern. Assume it is buggy or insecure until proven otherwise. Cross-reference generated explanations with official documentation. This forces you to engage in <strong>Information Verification</strong>, a crucial skill in the AI era.</p><p><strong>3. Use AI for Feedback, Not Solutions</strong> Instead of asking “Write this code for me,” try writing it yourself and asking the AI: “How can I optimize this?” or “What are the potential edge cases I missed?” This keeps you in the driver’s seat of the cognitive process.</p><h3>Conclusion</h3><p>AI is here to stay, and it is reshaping the labor market — a central theme of SDG 8 (Sustainable Development Goal 8), which focuses on promoting sustained economic growth, productive employment, and decent work for all. To remain employable, you must offer what the AI cannot: critical judgment, deep contextual understanding, and the ability to solve problems when the autopilot fails.</p><p>Using LLMs for coding may work for small tasks, but for complex projects, there’ll be high chances for bugs and vulnerabilities, and there’ll be no one that can understand the code to know what might be causing that or how to fix it.</p><p>That doesn’t mean you can not use LLM for coding at all, in fact, AI can assist you to fix and optimize your code. It not only increases productivity, but you’ll also be learning possible techniques and how to avoid mistakes.</p><p>Don’t let your brain accrue “Cognitive Debt.” Use AI to speed up your work, not to replace your learning.</p><p><strong>References:</strong></p><ul><li>Al Haque, E., et al. (2025). Towards Decoding Developer Cognition in the Age of AI Assistants. Preprint arXiv:2501.02684.</li><li>Gerlich, M. (2025). <em>AI Tools in Society: Impacts on Cognitive Offloading</em>. Societies.</li><li>Kosmyna, N., et al. (2025). Your Brain on ChatGPT: Accumulation of Cognitive Debt. Preprint arXiv:2506.08872.</li><li>Lee, H. P., et al. (2025). <em>The Impact of Generative AI on Critical Thinking</em>. CHI Conference.</li><li>Zhai, C., et al. (2024). <em>The effects of over-reliance on AI dialogue systems</em>. Smart Learning Environments.</li></ul><p><em>This article is part of a Directed Project at the Federal University of ABC (UFABC), 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66fdfbb9febf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimizing Concurrency in Node.js: Rethinking Your Usage of await]]></title>
            <link>https://medium.com/@nicfra0710/optimizing-concurrency-in-node-js-rethinking-your-usage-of-await-6f409eea51a7?source=rss-d729297e908b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f409eea51a7</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Nicolas Frasson Boaroto]]></dc:creator>
            <pubDate>Tue, 11 Jun 2024 15:14:07 GMT</pubDate>
            <atom:updated>2024-06-11T15:14:07.132Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*Vi58mHp9wEsdzR0kSFe-7Q.png" /></figure><p>When using await in Node.js, you might be overlooking one of its most powerful features: concurrency. This article will delve into how you can use the full potential of Node.js’s concurrency capabilities to enhance your application’s performance. By rethinking your approach to await, you&#39;ll learn strategies to make your code more efficient and responsive.</p><h3>Do I Need to Wait for Everything?</h3><p>Not necessarily. This is the core of our discussion. While coding, there are certain operations like database queries and API calls that do require waiting. However, many interactions can proceed without waiting, allowing your application to keep running. This article will help you identify which operations can be optimized by not waiting, thereby improving overall performance.</p><h3>Using callbacks</h3><p>Have you ever heard of <a href="https://www.geeksforgeeks.org/what-is-callback-hell-in-node-js/">Callback Hell</a>? It’s a concept we often encounter in introductory Node.js courses, and our initial reaction is usually, “I’m <strong>NEVER</strong> going to use that in my code.” However, callbacks are a key tool for achieving concurrency in your applications.</p><p>Here’s how callbacks work: you call an asynchronous function and have two options. You can either (a) wait for its response using await, or (b) call it without await. Consider the examples below:</p><pre>// Await usage<br>await myAsyncFunction()<br><br>// Without await<br>myAsyncFunction().then(result =&gt; { <br>  // Do something with the result<br>})</pre><p>In the first case, you synchronously wait for the function to return, blocking the Node.js main thread and preventing the execution of subsequent lines of code until the function completes. In the second example, however, you call the function and your code continues to execute the next lines immediately.</p><p>You might be wondering: What happens to my function call if I don’t wait for it to finish?</p><h3>Understanding How Node.js Handles Callbacks</h3><p>Node.js utilizes an Event Loop, a feature from <a href="https://docs.libuv.org/en/v1.x/design.html">libuv</a>, that uses a Thread Pool to manage multiple events in the background without blocking I/O operations. You can learn more about the Event Loop <a href="https://docs.libuv.org/en/v1.x/design.html">here</a>.</p><p>In summary, when you call an asynchronous function without using await, the Event Loop handles it for you, allowing your code to continue running. Once the asynchronous function completes its execution, the Event Loop invokes the corresponding callback defined for that specific call (the block inside .then()).</p><p>Moreover, it’s expected to encounter errors during asynchronous operations. To handle these errors gracefully, you can use .catch(). Here&#39;s an example:</p><pre>myAsyncFunction()<br>  .then((result) =&gt; {<br>    console.log(&#39;there is my result&#39;, result)<br>  })<br>  .catch((error) =&gt; {<br>    console.error(&#39;seems there is an error&#39;, error)<br>  })</pre><p>This mechanism ensures that your code remains efficient and responsive, making full use of Node.js’s non-blocking I/O capabilities.</p><h3>How does it impact performance?</h3><p>Let’s consider a more realistic code example:</p><pre>async function loginUser (email, password) {<br>    const userFound = await findUser(email, password) // 5ms<br><br>    if (!userFound) {<br>        throw new NotFoundException(&#39;User not found&#39;)<br>    }<br><br>    const passwordMatch = await comparePassword(password, userFound.password) // 5ms<br><br>    if (!passwordMatch) {<br>        throw new UnauthorizedException(&#39;Invalid password&#39;)<br>    }<br><br>    await notificationQueue.publishEvent(&#39;user.login&#39;, email) // 40ms<br><br>    return true<br>}</pre><p>In this example, we have a login function that performs the following steps: finds the user in the database, compares the entered password with the stored password, sends a login event to a notification queue, and returns true. The estimated time for each function call sums up to 50ms in total.</p><p>Let’s see how we can improve its performance based on our discussion. Notice that while we need to wait for the database query and password comparison, we do not need to wait for the queue event to be published.</p><p>The client does not need to wait for the queue event to log the user in, and our main thread does not need to be blocked by it. Here’s an improved version of the function:</p><pre>async function loginUser (email, password) {<br>    const userFound = await findUser(email, password) // 5ms<br><br>    if (!userFound) {<br>        throw new NotFoundException(&#39;User not found&#39;)<br>    }<br><br>    const passwordMatch = await comparePassword(password, userFound.password) // 5ms<br><br>    if (!passwordMatch) {<br>        throw new UnauthorizedException(&#39;Invalid password&#39;)<br>    }<br><br>    notificationQueue.publishEvent(&#39;user.login&#39;, email).catch(console.error) // In background<br><br>    return true<br>}</pre><p>By handling the event publishing in the background, we reduced the function execution time from 50ms to just 10ms. This improvement means that in the time it originally took to handle one execution, we can now handle five.</p><h3>Conclusion</h3><p>Wisely analyze when you need to wait for asynchronous function executions and always handle errors when using callbacks. By strategically choosing when to await and when to let the Event Loop manage your asynchronous tasks, you can significantly enhance the performance and responsiveness of your Node.js applications. Remember, effective error handling is crucial to ensure the robustness of your code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f409eea51a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lambda vs. Fargate: Deciding the Best AWS Serverless solution for your API]]></title>
            <link>https://medium.com/@nicfra0710/lambda-vs-fargate-259240bf8488?source=rss-d729297e908b------2</link>
            <guid isPermaLink="false">https://medium.com/p/259240bf8488</guid>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws-fargate]]></category>
            <category><![CDATA[serverless-architecture]]></category>
            <category><![CDATA[api-development]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Nicolas Frasson Boaroto]]></dc:creator>
            <pubDate>Fri, 29 Dec 2023 19:32:54 GMT</pubDate>
            <atom:updated>2023-12-29T19:42:48.488Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_mQ6gsTsrm9TZMGO-LiK8w.png" /></figure><p>When talking about Serverless solutions on AWS Environment, Lambda and Fargate are the most popular. But the question remains: which aligns best with your specific requirements, and which offers greater cost-efficiency? What are the pros and cons? This article delves into various crucial aspects to help you make an informed decision tailored to your context.</p><h3>Costs comparison</h3><p>I chose to delve into the cost aspect first, acknowledging its criticality for the majority of users. Given that costs fluctuate based on individual use cases, I highly advise conducting a personalized calculation for your specific needs. Despite this variability, the forthcoming analysis will reveal a significant disparity between the two services in terms of cost-effectiveness.</p><p>Lambda environment definitions used for calculation:</p><ul><li>API Gateway (REST API without caching)</li><li>No free tier</li><li>512mb (RAM)</li><li>ARM (Processor architecture)</li><li>300ms (Response time in average)</li><li>Variables: API Gateway and Lambda amount of requests</li></ul><p>ECS + Fargate environment:</p><ul><li>Application Load Balacing (ALB)</li><li>1 second average connection duration</li><li>Variables: GB processed/month (34kb * number of requests)</li></ul><p>ECS Task Definition:</p><ul><li>Linux ARM64</li><li>730 hours average duration</li><li>20GB ephemeral storage</li><li>Variables: vCPU, amount of RAM and desired tasks</li></ul><h4><strong>1MM requests per month (Low traffic)</strong></h4><p>On a low traffic API, we find out that it can cost up to <strong>$5.70/month</strong> on AWS Lambda Infrastructure.</p><p>On Fargate Infrastructure (with 0.5 vCPU, 2 desired tasks and 1GB of RAM), we can reach up to <strong>$47.61/month (+8x more expensive </strong>😮).</p><h4><strong>10MM requests per month (Medium traffic)</strong></h4><p>On a 10MM requests/month traffic, we got <strong>$57.00/month</strong>.</p><p>On Fargate (with 0.5 vCPU, 3 desired tasks and 1GB of RAM), we calculated something close to <strong>$62.41/month</strong>.</p><h4><strong>100MM requests per month (High traffic)</strong></h4><p>Well, on our final test, Lambda have got <strong>$570,00/month</strong>.</p><p>Now, on Fargate (with 1 vCPU, 4 desired tasks and 2GB of RAM), we got <strong>$158.67/month (+3.5x cheaper </strong>😮).</p><h4><strong>Conclusion</strong></h4><p>Cost considerations are fundamentally tied to your application’s performance and the consumption of time and computational resources. Therefore, it’s essential to calculate these expenses based on your specific usage. This tailored assessment will provide a more accurate understanding of the cost implications for your unique scenario.</p><p>In practical terms, the costs associated with AWS Lambda and Fargate may turn out to be lower than initially anticipated. This is due to several factors: the option to implement Scheduled Scaling with ECS tasks, reducing the number of running tasks during times of lower traffic; your Lambdas will propably consume less memory and execute quicker than the average 300ms; among other considerations. It’s crucial to factor in these scenarios when estimating your costs.</p><p>Obs.: this analysis is not considering services like Cloudwatch, VPC additional resources, and so on. Also, not considering Free Tier.</p><h3>Performance</h3><p>It is well known that on Serverless environments the <strong>Cold Start</strong> result in a significant performance impact, so it needs to be considered, and I strongly advise you to search for methods to decrease its impact.</p><h4>Lambda Performance</h4><p>The operational mechanism of AWS Lambda, which involves creating a new ‘context’ by generating an instance from our code definition and maintaining this context in a ‘warm’ state for a brief period, can significantly impact this infrastructure. This is particularly evident in the phenomenon of ‘cold starts’, where the initiation of a new instance can lead to noticeable delays. Understanding and mitigating the effects of cold starts is crucial in optimizing the performance of Lambda-based applications.</p><p>When AWS Lambda initiates a new environment, it undergoes a process of preparing the entire runtime environment, which includes building the image and executing initial code. This setup phase can take several seconds, potentially translating into a noticeable delay for your end clients. Understanding and optimizing this start-up time is crucial for ensuring efficient client experiences.</p><p>Additionally, the first execution of an AWS Lambda function involves retrieving certain resources for the first time, such as establishing database connections and accessing secrets. These initial operations can lead to a slower execution during the Lambda’s initial run. It’s important to factor in these initial resource setup times when considering the overall performance and responsiveness of your Lambda functions.</p><p>Another vital aspect to consider is monitoring and tracing within the AWS Lambda environment, which often proves to be a significant challenge. Current solutions offered by monitoring tools, such as Datadog, can add a substantial amount of time to your cold-starts, sometimes amounting to several seconds. This can also noticeably affect the performance of warm executions. For instance, the Datadog Lambda Extension solution involves executing HTTP requests to the Datadog API, among other actions, which can further impact execution times.</p><h4>ECS + Fargate Performance</h4><p>In this infrastructure, the cold-start causes way less impact than on Lambda since it happens only on:</p><ul><li>Initial tasks deployment</li><li>Scaling (new tasks create manually or automatically via Scaling Policies)</li><li>New deployments (but your client should not feel that since the last running tasks will keep up and running before the deployment completion)</li></ul><p>In the context of monitoring and tracing, it’s important to note that such infrastructure typically does not suffer from significant performance impacts. This is because solutions like Datadog run in a separate container, often as a sidecar to the same tasks, rather than directly within the Lambda environment. Consequently, your clients are unlikely to experience any notable delays due to response times. The primary consideration is that these monitoring solutions will share and compete for computational resources with your web application, but they do not inherently slow down the Lambda execution itself.</p><p>Regarding overall performance, it’s noteworthy that AWS Fargate generally outperforms AWS Lambda. But why is this the case? The answer lies in the intricate workings beneath the surface of these technologies. Understanding these nuanced details requires a deep dive into their architectural and operational differences, a topic that is beyond the scope of this article.</p><h4>Performance Comparison</h4><p>In our comparative analysis, we’ll focus on a basic register/login API that incorporates several key functionalities. This includes performing database queries, as well as the comparison and hashing of passwords using the bcryptjs library. Additionally, we’ll explore the process of signing JSON Web Tokens (JWTs) using the jsonwebtoken library. These elements will form the basis of our evaluation, providing a practical context to assess the performance and capabilities of AWS Lambda and Fargate in handling common API operations.</p><p>We are going to use <strong>Postman&#39;s Performance Runner</strong> to execute the Load Test, using 50 VUsers on a 3 minutes run with 2 minutes of ramp up.</p><p><strong>Lambda application (</strong><a href="https://github.com/nfrasson/lambda-example-api">https://github.com/nfrasson/lambda-example-api</a>): a Typescript running on Node.js application using no Frameworks and using TypeOrm to connect to Postgres (deployed on AWS RDS and being accessible via RDS Proxy). See the results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dbdj2hky6Aa8ayvL8r4WRg.png" /></figure><p><strong>ECS + Fargate application (</strong><a href="https://github.com/nfrasson/fargate-example-api">https://github.com/nfrasson/fargate-example-api</a>): a Nest.js Framework application using also TypeOrm and Postgres deployd on RDS. The infrastructure is the same as the defined before for a High Traffic API. See the results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WyHGsVSXfbeK38-PHRsCag.png" /></figure><p>This comparison reveals a significant performance disparity, especially notable when Lambda initiates a new context. In such instances, the processing and return of a request can take as long as 4.3 seconds. This extended duration is primarily due to the time Lambda takes to set up a new execution environment. Such scenarios are critical to consider when selecting the most suitable solution for your needs. It’s important to weigh the implications of these delays against your application’s performance requirements and user experience expectations.</p><h3>Scalability</h3><p><strong>Lambda</strong> is well-known as having &#39;Infinite Scalability&#39;, but it does not work as that means. Lambda do have an auto-scalability since it will create a new context when necessary, since one context can handle just one request per time. But, it do have a limit.</p><p>The limit for AWS Lambda is called &#39;Account Concurrency&#39;. It means that this limits the amount of Lambda context&#39;s created at time, including all the Lambda on your accounts. So, being on this limit, your Lambdas will scale as necessary. But always remember to increase it on high demand periods.</p><p><strong>ECS + Fargate </strong>can be scaled manually creating new tasks (lets say, copies) of your application and also increasing vCPU and amount of memory, or it can be done automatically via Auto Scaling, which can monitor some metrics (CPU, Memory, etc) to create new tasks, services, and so on.</p><p>Fargate will handle for you the necessary infrastructure for your application to run, meaning you will not need to complain about the machines ECS runs your tasks.</p><h3>Development process</h3><p><strong>Lambda</strong> do have a much simpler way to develop, since it just needs a function definition and can be updated quickly. But, you can suffer a little when trying to run it locally. There are some tools to do so like: LocalStack, Serverless Offline and SAM CLI (via local start-api), but all of them have its limitations and can be not trivial as a docker compose up.</p><p>Since it is not trivial to run it locally, you will find out that is much simpler you literally deploy your Lambda on a development environment and test it directly on AWS, which can led to a slower development process and not that kindly for new developers on your project. Also, executing integrating tests can be slower since you will have to run it directly using a deployed Lambda.</p><p><strong>ECS</strong> will run their tasks from a docker image, so your application will need to be developed using docker, which is <strong>AMAZING</strong>! With docker, you can define a docker-compose to emulate your infrastructure locally and definitely speed up your development process and track usage of CPU/Memory easily, helping new developers and also speeding up integration tests.</p><h3>Conclusion</h3><p>Drawing from the insights presented and my personal experience, AWS Lambda emerges as a viable option for developing APIs primarily in two scenarios: for very small businesses or in cases where the potential for cold-starts exceeding 3 seconds, especially when incorporating monitoring tools, is acceptable. The slower response times inherent in certain Lambda operations should be a key consideration, particularly for applications where rapid response is crucial. Ultimately, Lambda’s suitability hinges on balancing these performance characteristics against the unique needs and scale of the business.</p><p>AWS Lambda excels in managing event-driven operations, such as handling S3 bucket events, orchestrating workflows with SNS and SQS, processing DynamoDB Streams, and integrating with EventBridge, among others. Its capabilities in these areas are highly effective and efficient. However, when it comes to building APIs, my strong recommendation leans towards utilizing a Dockerized solution deployed on ECS. Here, the serverless advantages of Fargate come into play, offering a more robust and scalable infrastructure for API development and deployment. This approach harnesses the best of serverless architecture while mitigating some of the limitations encountered with Lambda for API-related tasks.</p><p>Hope I could help you on your decision. You can reach me via Linkedin: <a href="https://www.linkedin.com/in/nicolas-frasson-boaroto-3ab88120a/">https://www.linkedin.com/in/nicolas-frasson-boaroto-3ab88120a/</a></p><p>You can see the repositories used on this studying process here:<br><a href="https://github.com/nfrasson/lambda-example-api">https://github.com/nfrasson/lambda-example-api</a></p><p><a href="https://github.com/nfrasson/fargate-example-api">https://github.com/nfrasson/fargate-example-api</a></p><p>See you soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=259240bf8488" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>