The Secret Life of AWS: The Serverless Coding Mindset
The Secret Life of AWS: The Serverless Coding Mindset # aws # python # coding # cloud Stop writing code for servers. How to shift your mindset from "Linux Heavy" to "Serverless Lite". Part 22 of The Secret Life of AWS Timothy was typing furiously. He was building a Lambda function to process the "Order Events" from Episode 20. Margaret stopped by to review the code. She raised an eyebrow. The file was 400 lines long. "Timothy," she asked gently. "What is all this?" "It is robust code," Timothy said proudly. "Look here: I created a ThreadPool to handle multiple records. Then I added a RetryLoop with exponential backoff in case the database is busy. And here, I am managing a connection pool to the database." "So...you are writing code for a Server," Margaret said. "But there is no server." "You are treating AWS Lambda like a tiny Linux box," she said quietly. "You are trying to ...