📊 SLAO blog

✨ The new way of testing REST API's

I’m a software engineer in a small company. In short, this means I do everything related to the software used in the business, from dev-ops and CI setup, to quality assurance. Most of my time is spent developing REST API’s for our company’s clients. The only problem I have is this: I don’t feel confident in the quality of my REST API’s. I guess some people would recommend using TDD, make a test-coverage of 100% and you’re sorted....

📐 Measuring requests duration in a Node.js + Express application properly

Hello Node.js lovers, in this post I’ll describe how to properly measure request duration in a Node.js + Express application. This topic is not new, but after googling for a while I found that even approved answers on StackOverflow are outdated and represent not an optimal way to measure requests duration. In the end of this post, you’ll be ready to use a generic middleware to measure the duration of every request in your app, even a terminated one....

💯 Counting requests in your Node.js + Express application

Foreword What is the purpose of counting requests to your web application? As I wrote in previous post, knowing the number of requests helps you answer next important business questions: Is anyone using my API? (if requests count is zero then it’s probably nobody) Is my API working? (if requests count is zero than it’s probably broken) Is my API under a DDoS attack ? (if requests count during the last hour is much higher than average than probably it is) In my case it was a business need - every request with status code “200” to a specific method of my REST API was adding a few cents to our company’s bank account....

📍 Four key metrics of REST API every developer should worry about

Hi, software engineer, did you think what happens with your app when it goes into the wild? Have you ever faced the situation when requests from your clients differ a lot from your test ones? Do you recall all your complaining clients who were sending requests with wrong “Content-Type” ? If that’s true for you, keep reading. Today I’ll show you four metrics that you should keep an eye on to make your API healthy and solid....

🔧 Tools for REST API monitoring in 2019

A short foreword In the middle of 2018 we signed a new contract with a huge client, the contract was of a new kind to us - we would have to provide a paid access to one of our services (node.js + express based REST API) with strict Service Layer Agreement (hereinafter SLA) conditions. Since this contract would double our revenue and was a kind of “life changer” to us, the first thing we thought of was “now we need a proper monitoring, we can’t f*ck this up, not now”....