Architecture
API Rate Limiting for Backend Services
· β˜• 3 min read
1. Flow Control Caching, degradation, and rate limiting are common methods for protecting high-concurrency systems. Caching trades space for time and cuts the time spent on CPU and network calls; degradation protects the high availability of core services by delaying or refusing to handle non-core requests during peak periods; rate

Django Middleware
· β˜• 4 min read
1. __init__(self) In a middleware class, the __init__() method is used to perform system-wide initialization settings. For performance reasons, each enabled middleware is initialized only once per server process. That is, __init__() is called only when the server process starts, and is not executed while handling an individual request. For a middleware, the usual reason to define an __init__() method is to check whether it is needed at all.

Building a Reusable Django App
· β˜• 5 min read
The team I work on is responsible for SaaS development and carries almost all of the center’s SaaS needs. Among these there are long-term maintenance projects and short-term crunch demo projects, and everyone wears several hats. Of course, the development platform is also open to other people to use, and the whole platform has hundreds if not thousands of SaaS applications.

Large-Scale Website Technical Architecture
· β˜• 1 min read
Subtitle: Core Principles and Case Studies Author: Li Zhihui Publisher: Publishing House of Electronics Industry Year: 2013-9-1 ISBN: 9787121212000 Notes: Without business demand for technology, you cannot cultivate an outstanding architect. The author grew up alongside Taobao’s business growth. The book explains the key technical points of website architecture mainly from several aspects: system performance, availability, scalability, extensibility, and security.