In this video, learn how to measure the capacity of our API and how to increase that capacity by using multiple CPU cores.
- [Narrator] In the previous video,…we looked at writing acceptances for our API's.…In this video, we are going to take a look at load testing,…what it is and why it is important.…Then we will use Apache benchmark to load test…several API resources.…Finally, you will use node.js's cluster module…to utilize multiple cores…and improve the throughput of our API.…What is load testing?…Load testing is a test conducted to determine…a system's behavior under normal and peak conditions.…
For an API, a load test determines a server's response time,…as well as server's capacity and handling requests.…Load testing helps us know a server's…response time under different conditions.…For example, how will the server handle 100 active users…and how will it tend to one active user.…Load testing can help us find if a large load…can bring our server down.…This helps us know the consequences…of a denial of service attack.…Load testing also helps us know…the capacity of each end point.…
The server will be able to handle more requests,…
This Node.js course gives you an overview of a RESTful API and the logical steps of creating one. It explores three different APIs, focusing on their similarities and differences and how to effectively implement one. Instructor Saleh Hamadeh starts off by defining APIs, showing how they can be built on top of HTTP and listing the properties that make an API RESTful. Learn how to develop Twitter Notes, a sample web application that lets users leave notes for their Twitter friends. Use Twitter's API to implement a login flow and then design a web API. Additionally, get a closer look at several other real-world APIs, and learn some best practices to keep APIs secure, maintainable, and efficient.
- Identifying REST resources
- Setting up the development environment
- Consuming a RESTful API
- Creating an OAuth login request
- Getting an access token
- Saving data in MongoDB
- Building a RESTful API
- Testing user-perceived performance
- Looking at APIs in the real world
- Best practices for building RESTful APIs