Choose the right comments and review workflow setup
Comments and review workflows can look similar in Nutrient Web SDK, Document Engine, and DWS Viewer API, but the persistence model, shared state, and reviewer isolation options change depending on the setup.
The same goal in each setup
| Setup | How comments and review state work | When to use it |
|---|---|---|
| Web SDK with a license key | Users can add comments in the viewer, but shared review state is local or app-managed. Collaboration is asynchronous. | Use this when you need comments in a standalone browser workflow or when your app already owns persistence. |
| Web SDK + Document Engine | Document Engine persists comment threads, supports shared state, and can synchronize comments across users and sessions. | Use this when you need self-hosted multiuser review workflows, permissions, layers, or cross-platform sync. |
| DWS Viewer API with DWS-managed documents | DWS Viewer API persists comments for Web SDK clients and manages the backend review state for you. | Use this when you want managed server-backed review workflows without operating your own Document Engine. |
| DWS Viewer API with app-provided documents | DWS Viewer API authorizes the viewer session, but your app still owns the document source and any persistence strategy. | Use this when your app provides the file directly and doesn’t need DWS to store or manage shared review state. |
How to choose the right review workflow
Use Web SDK with a license key when comments are part of a mostly single-user or app-owned review flow and you don’t need built-in server-backed shared state.
Use Web SDK + Document Engine when multiple users need to comment on the same document with shared state, reviewer permissions, or synchronization across sessions and devices.
Use DWS Viewer API with DWS-managed documents when you want Nutrient to manage the backend collaboration stack for Web SDK review workflows.
Use DWS Viewer API with app-provided documents when your app provides the file directly and you only want DWS Viewer API session authorization, not DWS-managed persistence.
Common points of confusion
- Comments don’t always imply shared review state — Users can comment in Web SDK without using a server-backed collaboration setup.
- Document Engine is the self-hosted review backend — It gives you shared state, synchronization, permissions, and layers under your own operational control.
- DWS-managed review workflows are Web SDK workflows with a managed backend — DWS Viewer API handles persistence and collaboration for DWS-managed documents, so you don’t need to run your own Document Engine.
- Reviewer isolation depends on the backend model — In Document Engine and DWS Viewer API, you can isolate review state with layers. In standalone Web SDK, your app owns any separation strategy.
- App-provided DWS documents are different from DWS-managed documents — DWS Viewer API can authorize the viewer session, but if the document isn’t managed by DWS, your app still owns persistence and review storage decisions.
Typical decision questions
Ask these questions before choosing a comments/review implementation:
- Do reviewers need to see each other’s comments in shared state?
- Do reviewers need isolated review layers or role-based visibility?
- Does your app need Nutrient to persist comments automatically, or will your own backend do it?
- Do you need a self-hosted collaboration backend, or do you want a managed one?
- Do review comments need to continue across browser sessions, devices, or platforms?
Equivalent guides by product
- Web SDK
- Document Engine
- DWS Viewer API