Ensuring tech blogs don’t become the Instagram for Coders where we portray everything in our coding lives as perfect…
I had 3 bugs this week.
(more…)Ensuring tech blogs don’t become the Instagram for Coders where we portray everything in our coding lives as perfect…
I had 3 bugs this week.
(more…)Step Functions have a 32kb limit of data. I thought “just use S3” was simple, but there are some important details you need to know if you intend to update the data, and/or delete the data and read it many times. Below, we’ll cover how you can use S3 to solve this problem, and what bugs will occur if you’re not careful, and how to prevent those bugs from happening.
TL;DR; Updating an existing file on S3 and then reading it won’t always return what you just wrote; it may take a few seconds. Generate an MD5 hash of your file contents, and ensure any downstream services (Lambda, Batch, etc) utilize that MD5 hash. This will confirm if they have the latest version of the file; if not, simple fail with a specific error and have the Step Function wait a second and retry.
(more…)I find it interesting the perspective difference between those who use servers and those who use Serverless, specifically around concurrency.
For example those who use servers talk about Node.js cluster module via pm2/forever, or Python asyncio / pool.
Yet on AWS… you don’t use those things. Even on ECS, using pm2/forever is kind of dumb. They have servers and containers… if a container crashes, just spawn another one. Need more? Spawn more servers and containers. Not limited to CPU core. Same for Python.
(more…)1a. Architect an application you don’t actually build. This includes pitch if applicable, creating visual diagrams of how it all works, & time estimations, effort, risks, & integration points.
1b. This is hard b/c if you have passion for coding, you _want_ to see your creation come into being, & want to help it become so by coding the fun parts. You don’t. You _can_ do parts, sure, and sometimes it’s your area of expertise. It’s more impactful if you have others do it.
(more…)