The short answer
For most indie developers launching a customer-facing AI product, a managed vector database is the better first choice. It removes cluster administration, index maintenance, backups, and much of the operational work that otherwise turns a small product into an infrastructure project.
Self-hosting becomes more attractive when vector data is central to your moat, isolation requirements are unusually strict, your workload is large and predictable enough to justify operating the stack, or you need capabilities the managed service does not provide.
But this is not simply a “managed versus self-hosted” feature comparison. The more important decision is whether the service gives you a deletion and recovery contract that matches your product promises. A successful API call does not necessarily mean that every derived copy of customer data is gone.
Start with the customer promise, not the database logo
Your choice changes three things founders care about:
- How quickly you can launch and improve the product. Managed storage usually shortens the path to a working retriever.
- What you can promise customers about isolation and deletion. This requires operational evidence, not marketing language.
- How much time and money you spend keeping the system available. Self-hosting shifts work from the vendor to you, whether or not the infrastructure is actually difficult.
A useful design principle is to keep the vector store replaceable. Put a thin application layer around it, store provenance in your own database, and avoid making vector-specific filters or partition rules part of your core product behavior. This lets you change providers without rewriting the entire retrieval pipeline.
What is actually being hosted?
An embedding is not just one row in an abstract “vector database.” A typical ingestion pipeline creates several durable artifacts:
- the original document in object storage or a content system;
- parsed text and chunks in staging storage or a document store;
- embeddings, metadata, and sometimes chunk text in a vector index;
- retrieval results or semantic responses in caches;
- prompts, passages, and citations in logs or traces;
- historical copies in backups and snapshots;
- evaluation or fine-tuning datasets in separate stores.
The vector index is therefore one component of the deletion surface. It may be the most visible component, but deleting an embedding does not automatically invalidate a cached answer, erase a log entry, or remove an expired backup.
For product planning, make a table with four columns: artifact, system owner, retention rule, deletion method. A source ID alone is insufficient. Every chunk and derivative should retain stable metadata such as tenant_id, source_id, source_revision, and collection_id.
Managed vector database: the default for an indie founder
Managed vector storage is usually the lower-risk operating choice. The provider handles much of the work beneath the abstraction, including capacity management, index upgrades, service availability, and standard backup mechanisms. Your team can focus on ingestion quality, retrieval evaluation, and customer-facing behavior.
The trade-off is control. You need to verify how the provider handles several behaviors that matter in customer products.
Tenant isolation
Ask whether the isolation boundary is a shared index, a dedicated index, or a dedicated deployment. These are materially different isolation models even when each supports metadata filters.
A shared index with tenant_id filters may be adequate for low-risk internal use. For customer documents, the filter must be applied by your retrieval service on every query, including fallback queries, reranking, administrative tools, and testing paths. A missing filter can expose one tenant’s content to another.
Dedicated indexes provide a clearer boundary but create operational and cost complexity: more resources, more deployments, and potentially more fragmentation. The right choice depends on the sensitivity of the corpus and whether your customers contractually require dedicated processing.
Deletion behavior
Treat these as separate guarantees:
- Logical deletion: the record no longer appears in normal queries.
- Physical cleanup: deleted data is removed from live index storage.
- Expiry from backups: old copies disappear when the documented retention period ends.
Vector indexes are optimized for search rather than frequent mutation. Depending on the engine and configuration, deletion may use a tombstone or other deferred-cleanup mechanism. The application can stop returning a record immediately while the underlying bytes remain until compaction, segment cleanup, or index rebuild.
That does not automatically make a provider unsuitable. It does mean your product must distinguish “not retrievable” from “physically erased.” If a customer contract promises immediate physical erasure, verify that the selected configuration and service tier actually provide it.
Backups and restore
Ask three concrete questions:
- Are backups enabled by default for the service tier you will buy?
- How long are they retained?
- Does restoring a backup restore deleted vectors?
Restores can reintroduce data that was logically deleted after the backup was taken. You therefore need a documented replay procedure for deletion events, or a reconciliation process that removes restored records before the index serves customers again.
Cost
The managed price is only one line in the total. Model the full recurring cost:
- stored vectors and payload metadata;
- query or read units;
- writes, ingestion, and re-indexing;
- replicas, snapshots, and backup storage;
- separate embedding and reranking services;
- support or plan tiers required for production guarantees.
The cost of vector storage may be modest compared with embedding generation and model inference, but it can become surprising when payloads contain large chunks, you retain several embedding revisions, or your ingestion job repeatedly reprocesses the same source. Track storage by tenant and by pipeline version so duplicate vectors and forgotten collections become visible.
Self-hosted vector database: when the control is worth the burden
Self-hosting is attractive when the vector layer is strategically important or operationally difficult for a vendor to support adequately. It can also fit a predictable workload whose utilization makes dedicated infrastructure economical.
Choose it only after identifying the problem it solves. “We might need more control later” is not enough, because control includes maintenance you now own.
What your team takes on
Expect responsibility for:
- deployment, upgrades, monitoring, and on-call response;
- disk capacity, replication, and index compaction;
- backup creation, restore testing, and regional recovery;
- security patching and network access controls;
- tenant routing and metadata-filter correctness;
- capacity planning for ingestion spikes and re-indexing;
- documentation of deletion timelines across live data and backups.
A small service can look inexpensive until its first node failure, version upgrade, or compaction event. Then the real cost appears in engineer-hours and delayed customer work.
When it can make sense
Self-hosting is more defensible when several conditions hold together:
- The data volume and query pattern are stable enough to forecast infrastructure needs.
- Your team already operates containerized stateful services reliably.
- A specific requirement—such as a custom authorization model, offline deployment, or specialized index behavior—is unavailable or materially restricted in managed offerings.
- You can separate development, staging, and production environments without paying for unnecessary duplication.
- You have a named owner for backups, upgrades, deletion, and incident response.
It is a weak strategy if the main motivation is avoiding a per-record or per-GB bill while leaving the architecture otherwise unchanged.
Use a weighted decision scorecard
Score each option from 1 to 5 for the factors below. Weight them by product risk rather than infrastructure fashion.
| Decision factor | Why it matters | Weight |
|---|---|---|
| Tenant-isolation guarantee | Prevents cross-customer retrieval | High |
| Deletion evidence | Supports customer trust and contractual obligations | High |
| Backup and restore behavior | Determines recoverability and delete-after-backup handling | High |
| Operational burden | Consumes founder and engineering time | Medium–high |
| Cost predictability | Affects margins and pricing decisions | Medium–high |
| Query and filtering flexibility | Supports relevant retrieval behavior | Medium |
| Portability | Limits lock-in and migration pain | Medium |
| Scaling behavior | Handles ingestion and traffic growth | Medium |
Then apply three tests:
- Failure test: Could one tenant’s filter mistake expose another tenant’s content?
- Deletion test: Can you prove the material is no longer retrievable and explain when retained copies expire?
- Cost test: Can you forecast monthly spend from actual storage, writes, queries, and retention growth?
A managed service may win the first two tests if you use tenant-scoped credentials, immutable provenance metadata, and retrieval tests. It may lose the third if payload size or duplicate collections grow unexpectedly.
Build a deletion contract before production
A deletion workflow should be a state machine, not one API call. Keep it simple enough to operate, but explicit about its stages.
1. Find every descendant
Use tenant_id plus source_id to locate vector records. Also locate chunks in staging, cached responses, application records, and logs. If the product supports document revisions, delete all revisions unless the contract allows retaining a superseded version.
Do not depend on chunk IDs unless the ingestion pipeline stores a durable mapping from every source to all of its chunk IDs. A filter by stable source metadata is often safer because it can survive chunking changes.
2. Prevent new retrievals
Invalidate caches and mark the source as unavailable to the retrieval service. The first deletion target should be reachability: a customer should not be able to retrieve, quote, or cite removed material through a live query.
3. Delete index records
Delete by stable IDs or metadata filters, depending on the engine’s supported primitives. Record the operation ID, affected tenant and source, timestamp, and number of records reported.
4. Verify retrieval
Run several searches using distinctive terms from the deleted document. Confirm that the source no longer appears in results, snippets, citations, reranked results, and cache responses. This is a functional test, not proof of physical erasure.
5. Track remaining retention
Record when caches expire, logs reach their retention limit, and backups containing the source will be deleted or expire. If backups can restore deleted records, replay the deletion event after a restore.
6. Escalate to physical cleanup when required
For contracts that require physical erasure rather than query exclusion, use a provider or engine configuration that documents physical cleanup, or trigger and verify the relevant compaction or rebuild process. Treat this as an explicit operational status: deleted, unreachable_pending_purge, expired_from_backups, and verified_unreachable mean different things.
Test the failure cases, not just the happy path
Before launch, run a deletion drill with a synthetic document that contains a unique token. Test:
- deletion by source ID when several chunks exist;
- deletion after reprocessing with a new embedding model;
- deletion after a partial or failed ingestion job;
- deletion across multiple collections or indexes;
- deletion while a retrieval request or rerank job is in flight;
- retrieval through cached responses and citations;
- restore from backup, followed by deletion replay;
- tenant filtering during both normal and fallback retrieval.
Your test should assert three outcomes: the source cannot be retrieved, unrelated tenant data remains available, and the audit record explains what has been deleted and what remains governed by a retention deadline.
A conservative launch architecture
A practical default for an indie team is:
- one managed vector database service;
- one collection or namespace boundary per tenant when the service model supports it cleanly;
- your own relational source-of-truth table for documents, provenance, deletion status, and ingestion revisions;
- a thin retrieval adapter that always applies tenant and authorization filters;
- separate lifecycle policies for application data, logs, caches, and backups;
- a scheduled reconciliation job that compares source records with vector metadata and reports orphans.
This is not the cheapest possible architecture, but it limits lock-in and makes deletion, billing attribution, and migration more tractable.
If the same deletion and isolation requirements apply to your broader AI stack, use A Practical AI Data Retention Policy Framework for Indie Developers to define retention rules across prompts, traces, outputs, and derived data rather than treating the vector index as the whole problem.
When to move from managed to self-hosted
Revisit the decision when one of these becomes true:
- Managed costs exceed the cost of your own infrastructure by enough to affect product margins.
- Your isolation or deletion requirements exceed the provider’s documented contract.
- A required retrieval feature is unavailable or cannot be customized.
- Traffic and ingestion are stable enough to forecast capacity.
- You have added an engineer or platform partner who can own the service reliably.
Migrate in stages. Dual-write new changes to the new store, backfill historical records, compare retrieval results, cut reads over, and retain a tested rollback path. Do not combine a provider migration with a chunking-model change unless you have a way to evaluate both changes independently.
Frequently asked questions
Does a successful delete API response prove customer data was erased?
No. It proves that the provider accepted the requested operation. Logical removal from normal search, physical cleanup in the live index, cache invalidation, and expiry from backups are separate states with separate timelines.
Is metadata filtering enough for tenant isolation?
It can be part of a sound design, but only if every retrieval path enforces the tenant predicate and the index architecture supports that boundary. Verify application behavior and service guarantees separately.
Is a vector database the same thing as embedding storage?
Not exactly. A vector database stores embeddings and supporting metadata and provides similarity-search operations. Your product may also store source files, chunks, model outputs, logs, and backups outside that index.
Should one customer get one collection?
It can improve isolation, but it may increase resource fragmentation and operational complexity. Compare the service’s collection model, minimum capacity, and cost behavior before making it the default.
What is the first thing to ask a vendor?
Ask: “After an accepted deletion, what becomes unreachable immediately, what remains physically present, how is that confirmed, and when does every backup copy expire?” The answer will usually reveal more than a feature checklist.
Final decision
Choose managed vector hosting when your priority is shipping, customer responsiveness, and controlled operational effort. Choose self-hosting when a concrete isolation, deletion, portability, or capability requirement outweighs the burden of owning the service.
Whichever path you take, make provenance, tenant scoping, deletion verification, backup handling, and cost attribution part of the product architecture from the first day. The vector store may be replaceable, but the trust contract around customer data cannot be delegated to an unexamined API call.







