---
title: "Discussion on \"Flask-like “global” request context in Sanic (asyncio)\" | Hashnode"
description: "Discussion on \"Flask-like “global” request context in Sanic (asyncio)\". Although something like Flask’s globally accessible request object is considered a terrible way of writing code (explicit is better than implicit), sometimes it makes sense to use it. For example, while passing a Correlation-ID to track a request’s l..."
url: "https://hashnode.com/posts/flask-like-global-request-context-in-sanic-asyncio/65d3f9ee38d67b9c8e1140a5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Flask-like “global” request context in Sanic (asyncio)](https://blog.adhikary.net/flask-like-global-request-context-in-sanic-asyncio?utm_source=hashnode&utm_medium=feed)

Although something like Flask’s globally accessible request object is considered a terrible way of writing code (explicit is better than implicit), sometimes it makes sense to use it. For example, while passing a Correlation-ID to track a request’s l...

Sep 19, 2018 · 2 min read · blog.adhikary.net  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#flask-cje4g3tgk00wdm0wtaepqxd29](https://hashnode.com/tag/flask-cje4g3tgk00wdm0wtaepqxd29)

## Written by

[Aniruddha Adhikary](https://hashnode.com/@tuxboy)

@tuxboy · Singapore

  
[View profile](https://hashnode.com/@tuxboy)

Engineering Public Good and Human Welfare

A Software Engineer passionate about public good projects and making technology to serve society en masse.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
