A banking login request blocked for 45.97 seconds and timed out. A single business synchronization triggered 379 database queries before ultimately failing. A reporting API returned HTTP 200, yet two slow SQL queries accounted for 97.7% of its total execution time.
These real-world scenarios from financial institutions in Southeast Asia reveal a common industry challenge: many performance issues remain hidden behind seemingly healthy services and database calls. Traditional alerting alone is often insufficient to identify the root cause.
On November 25, Bonree hosted the third session of its Observability in Action: Southeast Asia Financial Services Webinar Series. Under the theme "From Alert Storms to Root Cause Analysis: An End-to-End Production Incident Review," Arief Fahmi, Senior Sales Engineer at Bonree, combined real-world customer cases with a live demonstration of the Bonree ONE platform.
The session demonstrated how distributed tracing, SQL analysis, and AI-powered root cause analysis can take troubleshooting beyond surface-level symptoms, pinpointing issues down to individual service calls, SQL statements, and even specific lines of code. It also showed how these findings can be translated into actionable remediation and preventive measures.
From Alert Storms to Root Cause Analysis: Building an End-to-End Incident Analysis Loop
When issues arise in mission-critical banking systems, alerts are often scattered across multiple monitoring tools covering applications, databases, and infrastructure. With different teams working from fragmented perspectives, troubleshooting can easily turn into a blame game.
Bonree ONE establishes a four-stage incident analysis loop:
Detect Anomalies → Trace Requests → Identify Root Causes → Remediate and Prevent
By bringing together unified end-to-end tracing data, Bonree ONE enables cross-functional teams to collaborate based on a shared source of truth, shifting the focus from "Whose fault is it?" to "Where is the problem, and how do we fix it?"

Case 1: Why Did a Banking Login Take 45.97 Seconds?
Optimization focus: Implement timeout controls and fail-fast mechanisms for downstream calls to prevent external services from blocking the main login thread for extended periods.</text>
A Southeast Asian online banking platform experienced severe login latency. Users were left waiting on loading screens, repeatedly refreshing the page or eventually abandoning their login attempts. Repeated requests further increased the system load.
End-to-end request tracing with Bonree ONE revealed that the entire login request took 45.97 seconds, with 97.9% of the total time spent waiting on a single synchronous downstream HTTP call.
By comparison, 48 Oracle database queries within the login process took just 144 ms in total. Other dependent services, including OTP verification and risk control, each completed within 320 ms.
The root cause was therefore neither the login application nor the database. It was a slow downstream service response, compounded by the lack of proper timeout and fail-fast mechanisms in the login workflow.

Bonree ONE can also distinguish performance-related incidents from legitimate business rejections.
For example, an incorrect-password login attempt took only 519 ms. This was a validation failure within normal business logic, fundamentally different from a slow request caused by downstream service blocking.
This distinction helps teams avoid misinterpreting normal business rejections as system performance issues.

Case 2: One Synchronization Request, 379 Database Queries — Performance Bottlenecks Hidden Behind Successful APIs
From immediate incident mitigation and short-term code optimization to long-term monitoring and release governance, Bonree ONE helps technical teams turn individual incident investigations into a continuous performance improvement cycle.
An investigation at a financial services provider identified two types of application latency. Although both appeared to involve slow database operations, their underlying causes were entirely different.
1. Task List Synchronization Timeout: 379 MySQL Queries Triggered by a Single Request
A single request triggered 379 MySQL queries, with database operations accounting for 94.7% of the total request time.
The root cause was the classic N+1 query problem introduced by lazy loading in the ORM layer. Instead of fetching related records in batches, the application executed separate queries for individual records.
As users retried their requests, the repeated queries further amplified database pressure, eventually causing the requests to time out.
Recommended Optimization: Improve Database Access Patterns
Use batch-loading strategies such as
JOIN FETCHor@BatchSizeto replace individual queries with more efficient batch retrieval.Introduce server-side pagination and limit the number of records returned per request to prevent excessive data retrieval.
Configure reasonable request timeouts to prevent prolonged resource consumption.

2. Reporting API Took 8.4 Seconds: HTTP 200, No Errors, but Severe Performance Degradation
The reporting API returned HTTP 200, indicating a successful response, with no errors reported. Yet the actual user experience was extremely poor.
End-to-end analysis revealed that among 39 SQL statements, just two queries accounted for 97.7% of the total database wait time. MySQL operations represented 98.8% of the overall request duration.
The bottleneck was concentrated in the report generation method. Missing indexes, inefficient subqueries, and poorly designed date-grouping logic resulted in full table scans.
Recommended Optimization: Improve SQL Queries and Execution Strategies
Replace fixed filtering conditions with dynamic query conditions.
Optimize correlated subqueries and database join operations.
Introduce pre-aggregation to reduce repeated computation.
Create appropriate indexes for frequently queried fields to minimize the overhead of full table scans.
Decouple report generation from web request threads by processing it asynchronously through an independent queue, providing users with a download link once the report is ready.

Together, these two cases reinforce an important lesson: slow database performance does not necessarily mean the database itself is the problem.
The N+1 issue originated from application-level data access inefficiencies, while the slow reporting API resulted from poor SQL design. Simply scaling up infrastructure cannot fundamentally resolve either problem. Teams need end-to-end visibility to identify optimization opportunities at both the application and SQL layers.
Building on these findings, Bonree ONE also helps technical teams establish a unified, continuous prevention strategy:
Proactive Alerts for Abnormal Transactions
Configure alerts for transactions taking longer than 5 seconds or individual requests triggering more than 50 SQL queries, enabling teams to detect slow requests and abnormal query patterns early.
Shift Performance Checks Left into the Development Lifecycle
Incorporate EXPLAIN execution plan checks into code reviews and release gates, and include N+1 query patterns in the inspection process.
Establish Performance Baselines for Critical APIs
Continuously monitor critical API performance through service dashboards and define P95 response time SLOs to track performance against established targets.
Validate Optimization Results Through Distributed Tracing
After remediation, rerun the original request flows and compare request latency and database execution performance before and after optimization to verify that the fixes have delivered measurable improvements.
Live Platform Demo: AI-Assisted Incident Resolution, From Alert Storms to Root Causes
The session also featured a live demonstration using a GCP-based microservices banking demo application, showcasing how Bonree ONE supports incident investigation and resolution in complex microservices environments.
Alert Correlation and Consolidation
When multiple alerts emerge across 34 services, the platform intelligently correlates and consolidates related alerts, helping teams prioritize the affected critical services.
Deep-Dive Distributed Tracing
Use Trace analysis to distinguish slow requests from business exceptions and trace performance issues down to the corresponding code locations.
AI-Assisted Diagnostics
Leverage Smart Ask's natural language query capabilities to obtain alert interpretations, root cause assessments, and actionable remediation recommendations.
Optimization Validation
Adjust Kubernetes resource quotas and replica configurations, then visually compare improvements in response time and throughput to validate the impact of optimization.
Managing production incidents in financial services requires more than alerts and manual troubleshooting.
Bonree ONE connects the entire incident management workflow — from detection and tracing to root cause identification and remediation validation — bringing fragmented observability data together to pinpoint issues at the service, SQL, and code levels.
Whether dealing with blocked banking logins, N+1 query problems, or hidden API performance bottlenecks, Bonree ONE helps financial IT teams shorten troubleshooting cycles, reduce the risk of recurring incidents, and maintain the stability of mission-critical business services.
Scan the QR code to download the presentation materials!

