Beyond Aurora: Sub-20ms Real-Time Payment Fraud & Vector Search with Google Cloud AlloyDB, SCaNN, and Gemini
1. Starting from Zero: The 50-Millisecond Coffee Mystery Imagine you are standing at a...
First seen by Oriel on .
AI summary
The article presents a two-speed payment-fraud architecture using Google Cloud AlloyDB, alloydb_scann, and Gemini to combine sub-20ms authorization with asynchronous investigation.
- AlloyDB completes ledger writes, corridor aggregation, and fraud-vector matching in about 5.1ms, within the stated 15–20ms database budget.
- A single SQL CTE combines authorization steps, while ACID transactions, WAL, and MVCC protect payment correctness during concurrent reads and writes.
- In a 2.5-million-row benchmark, AlloyDB reached 486.0 TPS with 95.54ms p99 latency, compared with Aurora's 92.2 TPS and 567.21ms p99.
- alloydb_scann uses bitmap pre-filtering, partitioned vector search, and quantization, achieving 100% Recall@10 in 0.29ms under a selective filter.
- Borderline payments enter an asynchronous queue processed by Gemini 4 Hydrogen through Vertex AI, avoiding the roughly 3.5-second model latency on the hot path.
#alloydb #vector search #fraud detection #gemini
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Reactions
Total public reactions reported by the source; distinct from points and likes.
- DEV Community: 36, latest observation ; +1 over observed period since
Comments
Comment count reported by the source.
- DEV Community: 10, latest observation ; +2 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| DEV Community | 5089186 | https://dev.to/gde/beyond-aurora-sub-20ms-real-time-payment-fraud-vector-search-with-google-cloud-alloydb-scann-ani Read discussion |