<?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 Manex on Medium]]></title>
        <description><![CDATA[Stories by Manex on Medium]]></description>
        <link>https://medium.com/@manexesendi?source=rss-94c905830de6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Shy08FBncNV2ECFA</url>
            <title>Stories by Manex on Medium</title>
            <link>https://medium.com/@manexesendi?source=rss-94c905830de6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:05:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@manexesendi/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[The Hidden Costs of AWS Serverless (Lambda, DynamoDB, API Gateway)]]></title>
            <link>https://medium.com/@manexesendi/the-hidden-costs-of-aws-serverless-lambda-dynamodb-api-gateway-a28e23d4c0c8?source=rss-94c905830de6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a28e23d4c0c8</guid>
            <dc:creator><![CDATA[Manex]]></dc:creator>
            <pubDate>Sun, 08 Jun 2025 11:25:59 GMT</pubDate>
            <atom:updated>2025-06-08T11:25:59.685Z</atom:updated>
            <content:encoded><![CDATA[<p>AWS serversless just like the vast majority of other aws services promises pay as you go pricing, automatic scaling and reduced operational overhead. However without careful planning,costs can spiral unexpectedly. While AWS Lambda, Dynamo DB, and API Gateway are powerful they come with hidden expenses that can surprise users especially at scale.</p><p>Here is a breakdown of the less obvious costs and how to mitigate them.</p><h3><strong>AWS lambda and the illusion of “cheap” execution</strong></h3><p>Cold starts and provisioned concurrency</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vo8MicGkOg6_kjB4rHrERA.png" /></figure><p>Cold starts( delays when a function initializes ) can impact performance leading to workarounds unlike provisioned concurrency which costs extra. for example if you keep100 concurrent Lambdas warm at $0.0000041667 per GB-second, it adds ~$300/month (us-east-1).</p><p><strong>Execution time and memory over provisioning</strong></p><p>This is billed in 100ms increments, so a fuction running 101ms is billed as 200 ms.</p><p>When it comes to memory higher memory settings can exponentially increase costs even if the CPU is not fully utilized.</p><p><strong>Data Transfer and VPC Costs</strong></p><p>Lambda functions configured to run within a VPC incur an additional Elastic Network Interface (ENI) cost. While the specific cost may vary, it’s generally in the range of $0.012/hour per ENI.</p><p>Cross-region data transfers between services like Lambda and S3 do incur costs and can add up, especially with larger volumes of data. While the cost depends on the amount of data transferred and the specific AWS pricing, cross-regional transfers generally cost more than intra-regional transfers.</p><p><strong>The Cost Optimizations tips for AWS Lambda</strong></p><p>Right size memory( Use AWS Lambda Power Tuning)</p><p>Avoid VPCs Unless they are really necessary.</p><p>Use SnapStart For( Java) to reduce starts.</p><h4>Dyanamo DB: Paying For speed and Storage</h4><p>Provisioned throughput vs On Demand</p><p>Provisioned capacity in Amazon DynamoDB can indeed lead to over-provisioning and paying for unused Read Capacity Units (RCUs) and Write Capacity Units (WCUs)</p><p>On-Demand seems flexible but costs 2.5x more for steady workloads.</p><p><strong>Storage and Back Up costs</strong></p><p>Amazon DynamoDB charges for data storage, typically at $0.25 per GB per month for Standard tables. This includes the total amount of data stored in your tables, including the JSON objects and their field names. While the first 25 GB of storage is free, subsequent storage is charged at this rate. Additionally, different table classes (like Standard and Standard-Infrequent Access) have varying storage costs.</p><p>Backups and Point-in-Time Recovery (PITR) typically add a cost increase, with a common estimate being around 20%. This extra cost is associated with the storage required to maintain backups and the processes needed for PITR, which allows for data restoration to a specific point in the past.</p><p><strong>DAX ( Dynamo DB Accelerator)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ObNs8MtH_6GqacCtldI4Hg.png" /></figure><ul><li>DAX caching (~$0.02/hour per node) is great for performance but can double costs for high-throughput apps</li></ul><p><strong>Cost Optimization Tips For Dyanamo DB</strong></p><ul><li>Use Auto-Scaling for Provisioned Capacity.</li><li>Enable TTL ( Time To Live) to auto-delete old data.</li><li>Consider S3 for large, infrequently accessed data (instead of DynamoDB).</li></ul><h4>API Gateway: The silent Bill Infaltor</h4><p><strong>REST vs HTTP Pricing</strong></p><p>Rest APIs cost about( $3.50 per million requests) while HTTP API cost about( ($1.00 per million requests)</p><p>WebSocket APIs (~$1.00 per million messages + connection minutes).This basically means you’re charged for both the number of messages exchanged and the duration of the connection between the client and server.</p><p>Additionally Every API call that triggers Lambda, EC2, or private VPC integrations incurs additional charges.</p><p><strong>Cost Optimization Tips:</strong></p><ul><li>Use HTTP APIs instead of REST APIs when possible.</li><li>Set up CloudFront to cache responses and reduce API calls.</li><li>Monitor and throttle excessive usage (e.gmisconfigured clients).</li></ul><p><strong>The “invisible”serverless costs :</strong></p><p>Logs &amp; Monitoring (CloudWatch)</p><ul><li>Every Lambda execution logs to CloudWatch (~$0.50/GB ingested).</li><li>X-Ray tracing (~$5.00 per million traces) adds up in high-traffic apps.</li></ul><p>Step Functions &amp; EventBridge</p><ul><li>Step Functions charge per state transition (~$0.025 per 1,000 transitions).</li><li>EventBridge (~$1.00 per million events) can become costly in event-driven architectures.</li></ul><p>Third-Party Dependencies (API Calls, Auth, etc.)</p><ul><li>Lambda calling external APIs? You pay for execution time + external costs.</li><li>Cognito, Auth, or other auth services? Adds per-user or per-request fees.</li></ul><p><strong>How do you avoid serverless Bill shock?</strong></p><ol><li>Use AWS Cost Explorer and Cost Anomaly Detection to monitor spending.</li><li>Set up billing alarms for unexpected spikes.</li><li>Test at scale before going production.</li><li>Consider provisioned concurrency and reserved capacity for predictable workloads.</li><li>Review logs and metrics to catch inefficiencies early.</li></ol><h4>Final Thoughts</h4><p>Serverless is not always cheaper, it shifts costs from infrastructure to per-request pricing. Without proper optimization, bills can explode silently. By understanding where hidden costs lurk, you can design cost-efficient serverless architectures and enjoy the clould.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a28e23d4c0c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lets talk about naps and how powerful they are]]></title>
            <link>https://medium.com/@manexesendi/lets-talk-about-naps-and-how-powerful-they-are-de57b8efdb2c?source=rss-94c905830de6------2</link>
            <guid isPermaLink="false">https://medium.com/p/de57b8efdb2c</guid>
            <dc:creator><![CDATA[Manex]]></dc:creator>
            <pubDate>Sat, 03 Aug 2024 07:32:43 GMT</pubDate>
            <atom:updated>2024-08-03T07:32:43.354Z</atom:updated>
            <content:encoded><![CDATA[<p>They say sleep is nature’s medicine but when most of us hear about napping, we immediately think of sayings like caught napping, or found asleep at the switch. But, lately nap time has garnered new found respect. New scientific evidence shows that napping is powerful. From the nesting penguins, which nap an astonishing 10,000 times a day, equating to about 11 hours, to babies who can nap at least three times a day, napping is a common behavior. There are cultures where napping is a daily ritual, like in Goa, India, where it is considered sacrosanct. In Japan, workers enjoy “Inemuri,” often seen as a sign of hard work and dedication. The Spanish are also renowned for their daily siesta.</p><figure><img alt="The nesting penguins." src="https://cdn-images-1.medium.com/max/1024/1*fkPYinv51nri1_XJ3CAsfw.png" /></figure><h4><strong>The Benefits of power naps</strong></h4><p>Regular naps are beneficial for our long-term health. Even short naps of just fifteen minutes can have remarkable effects. Napping helps regrow tissues, strengthen the immune system, build muscle, and delay brain aging.</p><p>Beyond physical benefits, naps are excellent for our brains. They help keep our brains larger for longer. You might wonder why this is important. People with smaller brains are more likely to experience higher levels of stress, a higher risk of cardiovascular disease, and dementia. Naps aid in processing new information and consolidating memory.</p><p>After napping, our mental performance improves immediately, and this can last up to three hours. Regular naps delay brain aging by three to six years, helping to keep our brains bigger.</p><p>It is for this reason that tech giants like Google, Meta and Samsung have nap pods in their offices. Medical interns and truck drivers have a culture of napping as it helps them maintain alertness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*oG0F7vUt2wEVjspq47rOiQ.jpeg" /></figure><h4><strong>The best time to nap</strong></h4><p>for naps be effective the timing is key . Naps should not last more than twenty minutes and maximum benefits are gained when you nap in the afternoon. That is between 1pm and 4pm. This is the time when naps boost physical and mental performance the most.</p><p>If you note you frequently need daytime naps it should be a cause for concern. It can be a sign the you aren’t getting sufficient sleep. Naps are not substitutes for goodnight sleep they are just bonuses. Naps should be used at the right time in small doses so as to reap the benefits.</p><h4><strong>Great men and how they napped</strong></h4><p>Albert Einstein one of the most brilliant and influential physicists in history was a big fan of sleep. He used to take minute naps during the day to maintain his consciousness. He imagined the conceptual foundation of the theory of Special Relativity. It could have occurred in a daydream or night dream.</p><p>Winston Churchill, the former British prime minister was a firm believer in afternoon naps. He would regularly take a nap during the day, even during the most intense moments of World war II. He believed that doing so would enable him work late at night and maintain his stamina.</p><p>The famed renaissance artist Leonardo Da Vinci, followed a polyphasic sleep schedule which included multiple naps during the day. This unconventional sleep pattern enabled him to work on his multiple projects.</p><p>Thomas Edison, the famous inventor known for his intense work ethic took short naps during the day. He believed that these naps enabled him to stay sharp and active leading to more productivity.</p><p>Napoleon Bonaparte the French leader, emperor and military genius was known for taking short naps during the day. He even took naps on the battlefield. These naps enabled him to stay sharp and make quick decisions during his intense military campaigns.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de57b8efdb2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>