No Mixed Signals: Efficient Audit Logging in Django
nitinc |
2
Description:
There comes a day for every enterprise SaaS application, when more and more customers knock on your door inquiring about a necessary but pesky feature — Audit Logs. Audit logs record the occurrence of an event, the time at which it occurred, the responsible user or service, and the impacted entity and is used by administrators to track anomalous behaviour.
The problem with manual audit logging approaches in Django however lies in their inefficiency and error-prone nature. These methods are often resource-intensive, requiring developers to manually write logs for each operation, which can be time-consuming and prone to mistakes
This talk discusses these challenges and proposes an improved solution using signals and threading —an automated system for capturing all model changes, aiding in user accountability and anomaly detection providing more control and modularity compared to existing solutions.
Learn more about signal usage, threading considerations, and best practices for building adaptable logging solutions for your Django applications.
Prerequisites:
Python Core, Basics of Concurrency
Video URL:
bit.ly/nitinatpycon
Speaker Info:
A tech tinkerer and a problem-solver at heart, Nitin is a seasoned software engineer with a passion for creating impactful solutions. Currently an Engineering Manager at Zenduty — he's trying to make the world more reliable one service at a time. He loves talking about observability, reliability and the unique ways in which applications break at scale. Outside of work, you can find him exploring sci-fi novels, anime and cooking.
Speaker Links:
Recently spoke at a local Kafka meetup in Bangalore: https://www.youtube.com/watch?v=QqN0QLXO7wo