Skip to content
Open access

Embedded ONNX Versus Python Sidecar Inference for Anomaly-Aware Availability Response in Spring Boot Microservices: An Architectural Evaluation

Aug 2026 · Journal of Cybersecurity and Privacy · Vol 6, pp. 141 · 0 citations · 32 references

TL;DR

The evidence supports a narrow architectural conclusion: in-process ONNX is a lower-latency and lower-footprint execution path for the tested lightweight model.

Abstract

Availability-oriented monitoring may require low-latency anomaly inference, but deploying a lightweight model as a separate service adds process, serialization, and network-path overhead. This article evaluates the inference-path architecture used by a prototype availability-response loop; it does not evaluate the effectiveness of a new DoS/EDoS detector or claim production attack mitigation. The same IsolationForest model and telemetry vectors were executed through an external Python/FastAPI sidecar and through ONNX Runtime embedded in a Spring Boot JVM. The prototype also included a LSTM Autoencoder and a bounded rule layer producing SCALE_UP, RETRY, FALLBACK, or NONE. The main Kubernetes benchmark used Docker Desktop 4.73.1 (Docker Engine 29.4.3) with Kubernetes v1.34.3 on a single-node cluster. Embedded ONNX reduced request-response latency from 26.090 ms to 4.839 ms on average, from 62.065 ms to 5.367 ms at P95, and from 76.487 ms to 6.244 ms at P99; calculated sequential throughput increased from 38.3 to 206.7 requests/s. Additional checks covered concurrent load, gRPC transport, cold start, memory footprint, and limited Kubernetes actions. In an extended comparison using 15 runs of 950 s for each active configuration, CPU-based HPA, rules-only, and AI+rules produced overlapping aggregate SLA-violation rates; no aggregate benefit of the ML gate over rules alone was observed under the tested degradation proxies. The evidence supports a narrow architectural conclusion: in-process ONNX is a lower-latency and lower-footprint execution path for the tested lightweight model. Detection quality, superiority over rule-only or established autoscaling mechanisms, and effectiveness against real adversarial traffic remain open validation tasks.

Read PDF

Similar papers

Preprint Sep 2026

Influence of Logging Frameworks on Bind9

Host-based Intrusion Prevention Systems (IPS) rely on application logs to detect and block malicious activity. However, on modern high-speed networks the logging subsystem itself becomes a bottleneck: an attacker can hide traces simply by generating enough traffic to overwhelm the application's log pipeline, dropping c...

Max Schrötter, H. Signer, Bettina Schnor · 0 citations
Conference Aug 2026

Real-Time Data Anomaly Detection Architecture for Business and Service Metrics Using Autoencoder Model with a LocalStack-Simulated Cloud-Native Infrastructure

Organizations utilizing distributed digital services generate ongoing operational metrics that can lead to failures and breaches of service level agreements if not watched proactively. In this paper, we discuss the design, implementation, and verification of a complete system for the near real-time detection of anomali...

Tanmay A. Nawlakhe, S. Pande, S. Jakhete · 0 citations
Open access Sep 2026

WinAPIReplay: Safely Re-Executing Win32 and NT-Native Malware API-Call Logs to Measure Behavioral Reproducibility and Generate Labeled Endpoint Telemetry

Behavioral malware analysis relies on dynamic-analysis logs—sequences of Windows API calls recorded by sandboxes such as CAPEv2—assumed to represent the malware’s effects faithfully. To the best of our knowledge, this assumption has never been tested by re-executing the recorded calls. We propose WinAPIReplay, which re...

Youji Fukuta, Yoshiaki Shiraishi, Masanori Hirotomo et al. · 0 citations
Open access Sep 2026

Empirical Static and Infrastructure Evaluation of Microservice Frameworks Across JVM, GraalVM Native Image, and Rust in Containerized Environments

Framework and runtime selection for containerized microservices are usually guided by request-level benchmarks, yet deployment-facing costs often dominate operational expenditure in Kubernetes environments. This study empirically evaluates four such infrastructure characteristics: container image size, startup time, id...

Matej Šarić, Aleksander Radovan, D. Kučak · 0 citations
Preprint Sep 2026

Resource versus Responsiveness: Benchmarking SDN Controller Runtimes for a Moving-Target-Defense Control Plane at Scale

Network Moving Target Defense (MTD) built on Software-Defined Networking (SDN) continuously rotates host-facing addresses to invalidate an attacker's reconnaissance. Each rotation creates a burst of control-plane mutations, while new connections may simultaneously require reactive flow installation. Yet SDN controller...

Souhail Chakkour, Umesh Biswas, Charan Gudla · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.