Handling Social DMs and Comments Without Storing Them

Why an integration layer should pass platform content through instead of keeping it, what still has to be held and for how long, and what that asks of your product.

A social integration layer sits between your product and the platform, and every DM, comment, and review your customers' audiences write passes through it. It doesn't have to keep them. Passing content through, instead of storing it, shrinks what can leak, what a procurement review asks about, and what you have to delete.

Why not keep it

  • Platforms set storage rules. LinkedIn, for example, lets an app keep comment text for 48 hours and cache commenter profile data for 24. A layer that stores content inherits every platform's rules.
  • Every copy is in scope. A DM stored by your vendor is a DM your customer's security review asks about, your DPA covers, and a breach exposes.
  • What to keep is your product's call. If it needs history, such as an inbox, a ticket, or a thread, it already keeps it; if it acts on each event and moves on, it needs none. Either way, a copy in the integration layer serves nobody, and it's one more to go stale.

What has to be held, and for how long

"Keeps nothing" is never quite true, and a buyer who checks will find the exceptions. Name them instead:

  • Content waiting to become events. A verified webhook is held until its events are published, so an outage on either side doesn't lose it, and deleted then. One that can't be processed is deleted within 24 hours.
  • The delivery log. Each delivered event stays in the delivery service's log for its retention, so a failed delivery can be retried and any delivery replayed.
  • A publish's own payload, while it runs and for two days after, encrypted at rest.
  • Backups. A deleted record stays recoverable from database backups for seven days.

Everything else is operational metadata: publish status and platform references, idempotency records, ingestion cursors, and configuration. That's the list Koil publishes on its Security page, and the one your customers' reviewers should be able to read.

What it asks of your product

Passing content through moves one responsibility to you: persist what you need from the events you receive. In return:

  • Reads go to the platform live, so what you read is current, and edits and deletions are the platform's truth, not a stale copy.
  • Backfill re-delivers what the platform still has, with the same event ids as the original events, so seeding a new inbox or recovering after a fix doesn't double anything.
  • Little to purge on the vendor's side when your customer's customer asks to be forgotten: the delivery log and backups age out on their own.

The trade is a smaller trust boundary for a clear contract: the platform holds the content, your product holds the history, and the layer in between holds as little as delivery needs.

What Koil keeps, and for how long →