Here's a timely reminder why you should use the lumigo-cli if you use AWS and Lambda. Reason #1 - it lets you powertune (i.e. find the best memory setting) functions with a single command #aws#awslambda#serverless
Reason #2 - analyze the cost of Lambda functions across ALL regions in one command
Reason #3 - analyze Lambda cold starts across ALL regions in one command
Reason #4 - tail SNS topics to see what messages are going in and send messages to a topic in bulk (via a local newline-separated file)
Reason #5 - tail SQS queues to see what messages are in the queue and send messages to a queue in bulk (via a local newline-separated file)
Reason #6 - replay SQS DLQ messages back to the main SQS queue!
Reason #7 - list Kinesis streams in ALL regions (and see their usage level so you know when to increase no. of shards) and tail the stream to see what records are going into them
Reason #8 - tail a DynamoDB stream to see DynamoDB events live cc/ @dynamodb
Reason #9 - list all Lambda functions in ALL regions and quickly find inactive functions
Finally, there's also helper command for switching between local AWS profiles quickly. So that's a 10 reasons for checking out the lumigo-cli this holiday break, just run "npm install -g lumigo-cli" to get started, and plz feedback or suggest features here github.com/lumigo-io/lumi…
• • •
Missing some Tweet in this thread? You can try to
force a refresh
One of the most misunderstood aspects of Lambda is how throttling applies to async invocations.
Or rather, how it doesn't!
🧵
With Lambda's Invoke API, you can choose invocationType as "RequestResponse" (ie, sync) or "Event" (i.e. async).
With sync invocations, throttling limits are checked to make sure you stay within:
* regional concurrency limit
* the function's reserved concurrencydocs.aws.amazon.com/lambda/latest/…
However, this is not true for async invocations.
The Event Invoke Frontend service accepts the request and passes it onto an internal queue.
Concurrency limits are not checked at this point and are instead applied later when the internal poller attempts to invoke the function synchronously.
If you want to learn more about how Lambda works under the hood, make sure you watch @julian_wood's fantastic session from re:Invent 2022.
I have written over 800 technical articles in the last 14 years and they have been read millions of times.
I see a lot of folks making the same mistakes I did early on in my journey.
So here are some principles to help you get better at writing.
🧵
1. 𝗦𝗲𝗹𝗹 𝘁𝗵𝗲 𝗽𝗿𝗼𝗯𝗹𝗲𝗺, 𝗻𝗼𝘁 𝘁𝗵𝗲 𝘀𝗼𝗹𝘂𝘁𝗶𝗼𝗻
Like that scene in The Wolf of Wall Street where Di Caprio asked Jon Bernthal to sell him a pen.
First, create the demand, then supply the solution.
Sell the problem to the reader. Help them understand why it’s a problem worth solving.
If the readers are not interested in the problem you're solving, they won't care about whatever solution you propose, no matter how good the solution is.
Payload-based filtering was one of the key reasons to choose EventBridge over SNS. This makes SNS a much more viable option in Event-Driven Architecture.
This is a very interesting thread and the surrounding discussions. I've had similar discussions in the past, but I don't want to make too many assumptions here because I wasn't part of the conversation with the client.
First of all, serverless has been successfully adopted at a much bigger scale in other companies. LEGO for example have 26 squads working mostly with serverless, and PostNL has been all in on serverless since 2018.
So technology is probably not the problem.
From the clues I'm able to pick up, the team has given it a go but they faced tooling gaps when you have both serverful (RDS) and serverless components, and maybe needed help to navigate those hard edges and adapt their practices to work better with serverless
The "serviceful" mindset means you'll need to learn and use many services in your architecture. Having the right tool to help you along can make a world of difference. And here are 7 of my favourites.
Serverless IDE is a VSCode extension that will save you countless hours when you work with CloudFormation, AWS SAM or the Serverless Framework.
Auto-completion, schema validation, CF docs on hover, and many more.