Replacing a ranking system is risky because the ranker sits directly between your candidate set and what users actually see.
A new ranking vendor may look better in a demo, return stronger offline metrics, or promise lower operating overhead. None of that proves it will improve your production feed, marketplace, search results, or recommendation surface.
The safest evaluation pattern is shadow testing.
Shadow testing means sending the same live ranking request to both your current ranker and a new ranking API while continuing to show users only the current production result.
The new vendor receives real production traffic, but its ranking does not affect users yet.
That gives your team a way to compare ranking quality, latency, failures, candidate handling, and operational behavior before shifting traffic.
TL;DR
- Send the same candidates and context to your current ranker and the new vendor.
- Continue serving the current ranking while logging the vendor's response.
- Compare ranking quality, overlap, NDCG, latency, errors, and business constraints.
- Do not declare a winner from offline metrics alone.
- Move from shadow testing to a controlled A/B test only after the vendor passes operational and ranking-quality checks.
What Is Shadow Testing for a Ranking API?
A ranking API shadow test duplicates production ranking requests to a second provider without letting that provider control the user-facing result.
The request flow becomes:
candidate retrieval → current ranker → production result
while simultaneously sending:
same candidates + same context → new ranking vendor → logged shadow result
Amazon Web Services uses the same principle in its SageMaker shadow testing architecture: the production variant continues responding to users while a shadow variant receives replicated production requests. AWS specifically recommends shadow tests for evaluating latency, errors, model changes, and infrastructure changes before promotion.
For ranking infrastructure, this model is especially useful because realistic traffic exposes problems that synthetic test requests often miss.
Why Not Just Compare Ranking Vendors Offline?
Offline evaluation is useful, but incomplete.
A ranking vendor might score well against historical data and still fail in production because of:
- slow p99 latency
- missing features
- unexpected candidate filtering
- inconsistent IDs
- rate limiting
- request-size limits
- cold-start behavior
- unstable ranking changes
- inadequate fallback behavior
Offline ranking metrics should be one part of the evaluation.
TensorFlow Ranking supports metrics including NDCG, MRR, MAP, precision, and recall for comparing ordered results. NDCG, or normalized discounted cumulative gain, is particularly useful because it rewards relevant items appearing higher in the ranking.
But a better NDCG score does not automatically mean better product performance.
Google's recommendation-system guidance warns that optimizing the wrong objective can create poor user experiences. Optimizing only for clicks, for example, can favor clickbait.
Your ranking evaluation therefore needs both technical and business metrics.
Step 1: Freeze the Candidate Set
The most important rule in a ranking vendor comparison is simple:
Both rankers must receive the same candidates.
If your current system ranks 100 candidates but the new vendor receives 120, you are no longer comparing rankers.
You are comparing pipelines.
Keep retrieval fixed during the test.
Google describes recommendation systems as separate stages of candidate generation, scoring, and re-ranking. Candidate generation determines what can be shown, while ranking decides the order. Keeping those stages separate makes the experiment easier to interpret.
For example, your application might retrieve:
[item_1, item_2, item_3 ... item_100]
Then send that identical set to:
Current ranker
and
Vendor ranker
This isolates the ranking decision.
Step 2: Normalize the Inputs
Ranking systems often expect different schemas.
Your current ranker might use:
- user ID
- item features
- freshness
- popularity
- category
- session history
The vendor might ask for:
- recipient
- context
- candidates
- item metadata
Create an adapter rather than rewriting your application around the vendor.
The production architecture should look like:
application → ranking abstraction → current ranker / vendor adapter
not:
application → vendor-specific SDK everywhere
This also makes it easier to remove the vendor later.
If you are evaluating the Gortex Ranking API, the application supplies the candidate set along with recipient and surface context, while Gortex returns the ordered decision. That makes shadow testing practical for teams that already own retrieval because the existing candidate-generation stage does not need to change.
Step 3: Log Both Rankings With One Request ID
Every shadow request should have a shared identifier.
Log:
- request ID
- user or session
- candidate IDs
- current ranking
- vendor ranking
- current-ranker latency
- vendor latency
- errors
- ranking configuration
- eventual impression
- eventual click or conversion
The vendor result should be reconstructable later.
A decision identifier is particularly useful here. Gortex currently documents decision IDs as a beta capability so ranking outcomes can be connected to later events.
Without consistent identifiers, shadow-test data becomes difficult to join with user outcomes.
Step 4: Compare Ranking Similarity
Begin with basic diagnostics.
Measure:
Top-K overlap
How many items appearing in your current top 10 also appear in the vendor's top 10?
Very low overlap is not necessarily bad, but it deserves investigation.
Rank correlation
Do both systems generally agree on which candidates are strongest?
NDCG@K
If historical relevance labels are available, compare ranking quality at positions users are likely to see.
Precision@K and Recall@K
These help determine whether relevant candidates are concentrated near the top.
Do not optimize for agreement with your old ranker.
If the vendor reproduces the existing order exactly, there may be little reason to switch.
The goal is to identify useful differences and understand why they occur.
Step 5: Test Business Constraints
Pure relevance is rarely the entire ranking problem.
A marketplace may need to respect:
- inventory availability
- seller eligibility
- geography
- diversity
- freshness
- blocked items
- frequency rules
A feed may need creator diversity or repeated-content suppression.
Google's re-ranking guidance specifically identifies freshness, diversity, and additional constraints as reasons to modify the initial scored order.
During your shadow test, explicitly look for violations.
A vendor with slightly higher offline relevance but frequent policy violations is not a production upgrade.
Step 6: Measure p95 and p99 Latency, Not Just Average Latency
Ranking often sits directly in the critical rendering path.
That means tail latency matters.
Track:
- p50
- p95
- p99
- timeouts
- 4xx errors
- 5xx errors
AWS's shadow-testing dashboard similarly compares operational metrics such as model latency and invocation errors between production and shadow variants.
A vendor that is 20 ms faster on average but produces severe p99 spikes may make your application slower for the users who experience the worst requests.
Test with realistic candidate-set sizes.
A ranker handling 20 candidates in a benchmark tells you little if your production request contains 300.
Step 7: Test Failure and Fallback Behavior
Force failures before production.
Simulate:
- vendor timeout
- malformed response
- empty ranking
- partial ranking
- duplicated IDs
- unavailable region
- request rate limit
Your product should still render.
The fallback might be:
- your current ranker
- cached ranking
- recency
- popularity
- deterministic business rules
A ranking vendor should improve your system, not become a single point of failure.
This is one reason Gortex's own ranking API buyer guide recommends evaluating failure behavior and fallback architecture before committing a ranking service to the critical request path.
Step 8: Move From Shadow Testing to A/B Testing
A shadow test cannot tell you whether users actually prefer the new ranking because users never see it.
Once the vendor passes:
- ranking-quality checks
- constraint validation
- latency requirements
- failure testing
- logging validation
move to a controlled live experiment.
A typical rollout might be:
1% → 5% → 10% → 25% → 50%
Compare real product outcomes such as:
- CTR
- conversion
- session depth
- revenue
- successful matches
- retention
- marketplace GMV
Netflix has described a similar progression in its ranking experimentation work: algorithms are first evaluated offline, then promising approaches move into online experiments to measure actual member behavior.
Keep your current ranker available as the control and fallback throughout the test.
What Should Make You Reject a Ranking Vendor?
Reject or pause the integration if the vendor:
- cannot stay within your p99 latency budget
- drops or duplicates candidates
- violates hard eligibility rules
- cannot explain or trace decisions
- produces unstable results without explanation
- makes event attribution difficult
- prevents easy rollback
- requires replacing working retrieval infrastructure unnecessarily
A ranking vendor should reduce infrastructure ownership, not create a new operational dependency that is harder to understand than the system it replaces.
Final Recommendation
The correct way to evaluate a ranking vendor is not:
demo → contract → production
It is:
offline evaluation → shadow traffic → constraint validation → latency testing → failure testing → controlled A/B test → gradual rollout
Shadow testing gives CTOs and engineering teams something vendor demos cannot provide: evidence from their own production requests.
Keep retrieval fixed. Send identical candidates to both systems. Log every decision. Compare ranking quality and operational behavior separately. Then test the new ranker with real users before switching the critical path.
The winning ranking API is not the one that produces the most impressive sample ranking.
It is the one that can improve real user outcomes while remaining observable, fast, replaceable, and safe to fail.
Top comments (0)