Reducing artifact size proportionally correlates with the cold start latency.
The most obvious way would be to use webpack and do tree shaking. But I’m not a fan of that approach. …
Some services require you to put a file (usually a .txt one) into the root of your domain to prove you own it. When your API runs on a server, it’s a pretty straightforward task, but not so much when your API is Serverless and runs on AWS API Gateway.
So last December I was rewriting our indexing microservice in a serverless way. Along the way, I had to migrate Elasticsearch from version 2.3 to 6.1.
Not that I was eager to rush the upgrade, quite opposite. But one day Elastic Cloud announced version 2.3 is approaching the end-of-life.
This short post will answer 2 simple questions Why? and How? Skip to How.
To not ruin your expectations, let’s clarify some things from the start.
This is not something you can run in production, at least yet.
Ok, so let’s go on. If you ever had to work with…
A few weeks ago something strange began to happen. Random Lambda functions from ALL environments throwing errors. My face turned white.
MongoError: no connection available at nextFunction (/var/task/node_modules/mongodb-core/lib/cursor.js:540:25) at Cursor.next
No clear pattern. Same code for mongo connection worked fine for 11 months and broke at 1 day. 0.0004% of…
Update 12/2012: Lambda supports Docker containers natively now!
Why didn’t Lambda ship Docker out of the box? Is it because of security concerns? Why even bother, let’s do it ourselves!
Lambda is pioneering the serverless market. Look at the chart below:
I’ve been using draw.io pretty much all the time for any kind of UML diagrams, charts or graphs. It gives a fair compromise between feature richness and manual control.
But I’m going to show you how to automate some boring mouse clicking ;)
This wouldn’t be so funny if it…
TL;DR: Allocate to your function as much memory as your wallet can allow.
Why? Well, then read below.
I needed 2 functions to make several HTTP requests and HTML parsing.
Microservice? Overkill and boring. It’s 2016. Let’s go for Lambda.
The next where people usually go after Landing Page is…