Skip to content
Log inStart free

Design paper

Real-time analytics for high-velocity commerce: an event-time streaming design

Abstract

Flash sales, sudden popularity and fraud bursts change what a store should do within minutes, while batch analytics reports on them hours later. We describe a design for real-time commerce analytics that keeps the decisions which depend on fresh data on a streaming path. The design rests on an append-only event log, event-time windowing with watermarks, logical clocks for ordering across regions, online change detection for demand surges, streaming fraud scoring that accounts for delayed labels, and a decision path with an explicit latency budget and overload handling. We argue each part from published work on stream processing, distributed systems, sequential change detection, concept drift and tail latency. We give a map from each component to the problem it addresses and the evidence behind it, and a worked latency budget whose inputs are design targets. We report no outcomes: the effect of this design on conversion, stock-outs or fraud losses is unmeasured. This is a design proposal, not a measured result.

Method. Design paper: the architecture is argued from the cited literature; we report no measurements of our own. Table 2 is a worked model with its inputs shown.

References

  1. 1

    Kreps, J., Narkhede, N., & Rao, J. (2011). Kafka: A distributed messaging system for log processing. Proceedings of the 6th International Workshop on Networking Meets Databases (NetDB). www.microsoft.com/en-us/research/wp-content/uploads/2017/09/Kafka.pdf

  2. 2

    Kleppmann, M. (2017). Designing data-intensive applications: The big ideas behind reliable, scalable, and maintainable systems. O'Reilly Media. dataintensive.net/

  3. 3

    Akidau, T., Bradshaw, R., Chambers, C., Chernyak, S., Fernández-Moctezuma, R. J., Lax, R., McVeety, S., Mills, D., Perry, F., Schmidt, E., & Whittle, S. (2015). The dataflow model: A practical approach to balancing correctness, latency, and cost in massive-scale, unbounded, out-of-order data processing. Proceedings of the VLDB Endowment, 8(12). doi.org/10.14778/2824032.2824076

  4. 4

    Carbone, P., Katsifodimos, A., Ewen, S., Markl, V., Haridi, S., & Tzoumas, K. (2015). Apache Flink: Stream and batch processing in a single engine. Bulletin of the IEEE Computer Society Technical Committee on Data Engineering, 38(4). sites.computer.org/debull/A15dec/p28.pdf

  5. 5

    Dean, J., & Barroso, L. A. (2013). The tail at scale. Communications of the ACM, 56(2). doi.org/10.1145/2408776.2408794

  6. 6

    Beyer, B., Jones, C., Petoff, J., & Murphy, N. R. (Eds.) (2016). Site reliability engineering: How Google runs production systems. O'Reilly Media. sre.google/sre-book/table-of-contents/

  7. 7

    Lamport, L. (1978). Time, clocks, and the ordering of events in a distributed system. Communications of the ACM, 21(7). doi.org/10.1145/359545.359563

  8. 8

    Fidge, C. (1991). Logical time in distributed computing systems. Computer, 24(8). doi.org/10.1109/2.84874

  9. 9

    Page, E. S. (1954). Continuous inspection schemes. Biometrika, 41(1-2). doi.org/10.1093/biomet/41.1-2.100

  10. 10

    Adams, R. P., & MacKay, D. J. C. (2007). Bayesian online changepoint detection. arXiv:0710.3742. arxiv.org/abs/0710.3742

  11. 11

    Dal Pozzolo, A., Boracchi, G., Caelen, O., Alippi, C., & Bontempi, G. (2018). Credit card fraud detection: A realistic modeling and a novel learning strategy. IEEE Transactions on Neural Networks and Learning Systems, 29(8). doi.org/10.1109/TNNLS.2017.2736643

  12. 12

    Gama, J., Žliobaitė, I., Bifet, A., Pechenizkiy, M., & Bouchachia, A. (2014). A survey on concept drift adaptation. ACM Computing Surveys, 46(4). doi.org/10.1145/2523813

  13. 13

    Arapakis, I., Bai, X., & Cambazoglu, B. B. (2014). Impact of response latency on user behavior in web search. Proceedings of the 37th International ACM SIGIR Conference on Research and Development in Information Retrieval. doi.org/10.1145/2600428.2609627

Cite this paper

Tanqory Research (2025). Real-time analytics for high-velocity commerce: an event-time streaming design. Tanqory. https://tanqory.com/research/20251013-real-time-commerce-analytics

More research

All research