Benchmarking API Endpoints With TypeScript Decorators

Benchmarking API Endpoints With TypeScript Decorators

In this article, we will show you how to generate and publish CloudWatch metrics using TypeScript decorators, and I will walk through the steps to create a CloudWatch dashboard in AWS Console using those metrics.

Recently at work, I was tasked with finding a way to get some insights about our TypeScript API performance. So naturally, I thought of creating a dashboard in CloudWatch to monitor CPU and memory utilization.

But why not go a step further and also monitor the response time of each endpoint? We can then use CloudWatch to aggregate some useful insights, such as percentile data, which will give us a better picture of how the service is performing.

That’s what I did, and now we have a useful dashboard that monitors our API and gives us data about how each endpoint performs so we can optimize the service strategically.

In this article, I would like to share how I approached this problem. I will show you how to generate and publish CloudWatch metrics using TypeScript decorators, and I will walk through the steps to create a CloudWatch dashboard in AWS Console using those metrics.

typescript aws web-development programming javascript

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Hire AWS Developer

Looking to Hire Professional AWS Developers? The technology inventions have demanded all businesses to use and manage cloud-based computing services and Amazon is dominating the cloud computing services provider in the world. **[Hire AWS...

Hire Dedicated AWS Developer

Want to Hire AWS Developer for cloud computing services? At **[HourlyDeveloper.io](https://hourlydeveloper.io/ "HourlyDeveloper.io")**, we leverage maximum benefits from the AWS platform ensuring prominent Solutions for business requirements....

What is TypeScript? Why TypeScript? and Why Not TypeScript?

TypeScript extends JavaScript by adding Types. There are many great reasons to switch to TypeScript. Especially if your team uses JavaScript. There are some reasons to not use TypeScript as there are with any language or framework.

Why Web Development is Important for your Business

With the rapid development in technology, the old ways to do business have changed completely. A lot more advanced and developed ways are ...

Important Reasons to Hire a Professional Web Development Company

    You name the business and I will tell you how web development can help you promote your business. If it is a startup or you seeking some...