In this article, we build and simple application using Uvicorn and perform load testing using the locust framework

Stay at the end for bonus on how to scale the server to run on multiple cores

Uvicorn

Uvicorn is a lightning-fast ASGI server implementation, using and .

Locust

An open-source load testing tool. Define user behaviour with Python code, and swarm your system with millions of simultaneous users.

Setup

|Application
->| -server.py
->| -test.py
->| -User1.py
->| -USer2.py
Server.py will contain our server code
test.py will contain locust test configuration
User1 and User2.py are to simulate dummy users
Install required Libraries
pip install uvicorn
pip install locust

Go ahead and paste this code in server.py

This may look bigger…


In this article we are going to take a look at very important interview point of view problem (Maze problem) and how to solve that problem step by step in python.

If you are here just for the program scroll at the end of the article

A maze is a 2D matrix in which some cells are blocked. One of the cells is the source cell, from where we have to start. And another one of them is the destination, where we have to reach. …


Part 1:DFS using recursion <=You are here

Part2: DFS using iteration

Part3: Leetcode and Binarysearch problem solving using DFS

Part 4: BFS tree traversal

Part 5: Leetcode and Binarysearch problem solving using BFS

While preparing for coding interviews and competitive programming trees are very important and must know data structure. One should be comfortable with tree operations such as inserting a node in a tree and delete a node from tree and tree traversals. Speaking of traversal there are two ways to traverse a tree DFS(depth-first-search) and BFS(breadth -first-search) . …

Nikhil Chauhan

Python enthusiast, love to explore and perform experiments on python projects

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store