event

Legacy Order Archived

Emitted when an order older than seven years is moved to cold storage

EventNew

Overview

The LegacyOrderArchived event is emitted by the nightly archival job when an order older than seven years is moved from the live order store to cold storage. The schema still uses proto2 because the downstream archival pipeline has not been migrated, which means fields carry explicit required and optional labels.

Schema

Event Details

  • Archive Location: The cold storage bucket and object key where the order document now lives
  • GDPR Erasure: Indicates whether PII was stripped before archival
  • Line Items: A summary of line items is retained for audit purposes
Event-driven architecture documentation: Acme Inc

LegacyOrderArchived Schema

15 fields
Package:com.ecommerce.orders.archive(proto2)
Message:LegacyOrderArchived

Emitted by the nightly archival job when an order older than seven years is moved from the live order store to cold storage. This event still uses proto2 because the downstream archival pipeline has not been migrated.

order_idrequired string= 1
required

The order that was archived

customer_idrequired string= 2
required
locationrequired ArchiveLocation= 3
required
line_itemsrepeated ArchivedLineItem= 4
original_order_dateoptional string= 5

RFC 3339 date the order was originally placed

total_amount_minor_unitsoptional uint64= 6

Order total in minor currency units

currency_codeoptional string= 7
archived_atrequired string= 8
required

When the archival job processed this order

gdpr_erasure_appliedoptional bool= 9

True when PII was stripped before archival