Skip to content

Latest commit

 

History

History
6 lines (3 loc) · 567 Bytes

File metadata and controls

6 lines (3 loc) · 567 Bytes

Maintaining a model per user

In DSS, instances of a webapp share a Python backend, so that the webapp's view, preview in edit mode, and insights all make calls to the same Python process. To accomodate multi-user setups, the webapp code must handle coordination of models between the frontend side and the backend side, and the maintaining of a state on the backend side (if any).

This sample code uses the DSS user name to maintain one model per user. The backend maintains a model that mirrors the frontend's one, by aggregating changes sent by the frontend.