When machine data comes up, the default assumption is often 'put everything in the cloud'. Three shop-floor constraints break that approach in practice: millisecond response, high-volume waveform data and networks that are not always stable. A layered design usually beats an either-or choice.

Condition one: how fast is fast enough
Anything involving interlocks, emergency stops or limit alarms must stay local — millisecond decisions at the edge, with cloud round-trip latency simply unacceptable. Keep the rules in the gateway or PLC and send only the event record to the cloud.
Condition two: how much data
Signals like vibration and current waveforms can generate gigabytes per machine per day. Uploading everything burns bandwidth and storage, and in practice only anomaly segments and features are ever reviewed. Extract FFT, RMS and peak-to-peak values at the edge; upload the results plus a short window around the trigger.
Condition three: what happens offline
Shop-floor networks are not always up. Gateways need local buffering: keep capturing while offline and backfill by timestamp when the link returns, with local dashboards still usable. When evaluating gateways, ask specifically about offline buffer duration — hours versus days is a big difference.