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…
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.
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…