- 3 minutes to read

Plan Volume and Retention

Logging everything forever swamps any database; logging too little leaves you blind on the bad day. The way out is to measure first and then decide per format: keep the high-volume heartbeat messages for days, and the orders and invoices auditors ask about for years. Nodinite sets retention per Message Type, with no quotas, so the decision is yours, not the product's.

  • ✅ Know the real volume per format before you go to production
  • ✅ Keep each format exactly as long as it is worth
  • ✅ Keep the traffic statistics, whatever you delete

Understanding Volume and Retention

flowchart LR Measure["fa:fa-toggle-on Turn everything on
in test"] --> Stats["fa:fa-chart-bar Read the statistics
per Message Type"] Stats --> Decide["fa:fa-scale-balanced Decide days to keep
per Message Type"] Decide --> Clean["fa:fa-broom Logging Service
removes older data"] style Measure fill:#2678BD style Stats fill:#2678BD style Decide fill:#E47528 style Clean fill:#3F827B

Measure (blue) before you decide (orange); the Logging Service (teal) then removes events, context, and bodies older than each Message Type allows, and new Log Databases are created as the online one grows.

Step 1: Turn Everything On in Test

You can't plan a volume you haven't seen. In test, or in a production pilot, log everything for a week of normal business:

You can always log less later. Logging that was never on can't be turned on for last month.

Step 2: Read the Statistics

Statistics tab of a Message Type with events per Endpoint (7.12)
The Statistics tab of a Message Type: events per Endpoint over time, with each Endpoint's first and last event and total count.

Nodinite keeps perpetual traffic statistics for every Message Type and every Endpoint, with no setup:

The statistics also answer the questions after go-live: is the old Endpoint quiet yet, does anyone still send version 1.0, how many orders did we get last quarter.

Step 3: Set Retention per Message Type

Each Message Type has three Days to keep values on its Retention tab: for events, for context, and for bodies. Keep the event longer than the body: the event proves that something happened, the body what. Add or manage Message Type shows where to set them.

Format Typical choice
Heartbeats, polling, status pings Events for days, no bodies
Orders, invoices, and other business documents Events and bodies as long as audit or law requires, often years
Sensitive data, such as personal data Bodies as short as the business allows
Debug and trace events Days

New Message Types get their values from the System Parameters: DaysToKeepMessageEventsDefault, DaysToKeepMessageContextDefault, and DaysToKeepMessageDataDefault. Error events with no body follow DaysToKeepErrorEventsWithoutData. Set these defaults before go-live, so a new format doesn't keep data longer than you meant.

Step 4: Plan the Log Databases

Nodinite stores the events in Log Databases and starts a new one when the online database reaches SizeToSplitDatabaseOn or DaysToSplitDatabaseOn, so no single database grows without limit. Size the SQL Server for the volume you measured and the retention you chose; see System Parameters for Log Databases. In Azure, see Azure Costs for Blob Storage and Event Hub for the intermediate storage.

Next Steps