# Operations

[Choose a manager](<https://alessio-locatelli.github.io/client-query-cache/stable/getting-started/choose-a-manager/index.md>) before sizing or launching workers. Both managers need supported MongoDB change streams, long-lived application resources and direct reads where freshness is required.

- [Process-local deployment](<https://alessio-locatelli.github.io/client-query-cache/stable/operations/deployment/index.md>): one client and manager per process, independent cache budgets, security, recovery and memory sizing.
- [Shared worker deployment](<https://alessio-locatelli.github.io/client-query-cache/stable/operations/shared-cache/index.md>): one parent-owned cache server, trusted worker attachments, fixed collection names and shared capacity.
- [Monitoring](<https://alessio-locatelli.github.io/client-query-cache/stable/operations/monitoring/index.md>): the diagnostics available for each manager and how to investigate misses and bypasses.
- [Permission recovery exercise](<https://alessio-locatelli.github.io/client-query-cache/stable/operations/permission-recovery/index.md>): observe process-local fallback and recovery on a disposable authenticated replica set.
- [Rollback to plain PyMongo](<https://alessio-locatelli.github.io/client-query-cache/stable/reference/api/index.md#rollback-to-plain-pymongo>): disable caching without a stored-data migration.

For executable web lifecycles, use [FastAPI with shared caching](<https://alessio-locatelli.github.io/client-query-cache/stable/examples/fastapi-shared/index.md>) or the [compact process-local application](<https://alessio-locatelli.github.io/client-query-cache/stable/examples/fastapi-minimal/index.md>).
