In this blog I will be discussing about a use case where you can use Python decorators as feature flag to disable and enable a function execution. This is helpful when you write a new function and later want to disable if there is any issue with the functionality or not required.

For this demo, I am using python dict() as data sources to know whether we should disable a function or not.


In this demo, we have two function i.e. feature_old and feature_new. feature_old is existing well tested code which has been running for long whereas feature_new is newly…

Python Sanic vs Go Mux

In this blog I will be comparing Python Sanic and Golang Mux Web Framework.

Golang Mux is high performance request router and dispatcher for matching incoming requests to their respective handler.

On the other hand, Python Sanic is a Python 3.6+ web server and web framework that’s written to go fast. It allows the usage of the async/await syntax added in Python 3.5, which makes your code non-blocking and speedy.

Test Metrics

I have added Prometheus client to both of the web framework for visualizing the metrics and evaluating the performance while running load test against basic GET REST API which returns…

Yogesh Sharma

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