Backends, routing, and permissions
Notebook· 11.04· 1.5–2 h· Lesson 90 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Choose a backend:
StateBackend(thread),StoreBackend(across threads, per namespace),FilesystemBackend(real disk), sandboxes (Lesson 11.09). - Route path prefixes to different backends with
CompositeBackend, and isolate data per user with a namespace factory. - Protect files with
FilesystemPermissionrules (first match wins) and know what they don't cover. - Add custom policy (logging, validation) by wrapping a backend.
Before you start
Lesson 11.03; Lesson 03.04 (long-term memory with a store).
Python in this lesson
Python guideNew hereSpecial methods (__repr__, __call__…)
