Published on

Performance and Scalability Essentials for Web API Beginners

Authors

Performance and Scalability Essentials for Web API Beginners

Performance and Scalability Essentials for Web API Beginners

How to test the API

Artillery is a library that helps us to test an API performance by making a lot of requests at once.

Big O Notation

Use Big O notation to identify complex code in your codebase and try to descrease the complexity by refectoring it.

Multithreading

Use multithreading when available. In node we can use NodeJs clustering to achieve this.

Fallback text 1

Load Balancer

Implement load balancing. In the post is used NGINX.

Fallback text 2

Cache

Use cache to return faster the requests that have the same input. Redis is used in the post.