How Uber Computes ETA
When you type a destination in the Uber app, it tells you how long the trip will take. That number is the ETA. To get it right, Uber must find the best route through a huge road network, add live traffic, and clean up noisy GPS data. It must do all this hundreds of thousands of times each second.
8 min read8 মিনিটে পড়া যায় · 9 sections9টি সেকশন · 2 sources2টি সোর্স · updated Nov 2026আপডেট: Nov 2026
Cutting the map to speed up routesরুট দ্রুত করতে ম্যাপ কেটে ভাগ করা
Dijkstra over a whole city graph visits every node. Partitions shrink the search to the borders.পুরো শহরের গ্রাফে Dijkstra প্রতিটা নোডে যায়। পার্টিশন খোঁজাকে শুধু সীমানায় নামিয়ে আনে।
You’ll learnআপনি শিখবেন
- What a node and an edge weight areনোড আর এজের ওজন কী
- Why plain Dijkstra is slow on a big cityবড় শহরে সাধারণ Dijkstra কেন ধীর
- What partitions and precompute doপার্টিশন আর precompute কী করে
- Why searching borders cuts the workসীমানায় খুঁজলে কেন কাজ কমে
- How traffic changes edge weightsট্রাফিক কীভাবে এজের ওজন বদলায়
The problem in plain words
ETA means the expected time of arrival: the time to travel from point A to point B Source 1সোর্স 1. Uber computes an ETA in four situations Source 1সোর্স 1:
| Situation | Question the ETA answers |
|---|---|
| Eyeball | The rider types a destination. How long is the trip? |
| Dispatch | Which car can reach the rider in the shortest time? |
| Pick up | How long until the car arrives? |
| On-trip | How long until the rider reaches the destination, updated live? |
Uber also uses ETAs to calculate fares, match riders to drivers, and plan deliveries Source 2সোর্স 2.
The scale is large. One trip usually needs about 1,000 ETA requests Source 1সোর্স 1. In 2023 the article said that more than 18 million Uber trips finish each day, and that the system handles half a million ETA requests per second Source 1সোর্স 1. Uber's own Q3 2025 results show 3.5 billion trips in the quarter, about 38 million a day. The task is hard because a trip is not a straight line. It follows streets and highways Source 1সোর্স 1. Accuracy matters for the business too. If a trip takes longer than promised, the rider may not book again, and the article says bad ETAs could cost billions of dollars Source 1সোর্স 1.
সহজ English
ETA means the expected time of arrival. It is the time to travel from point A to point B Source 1সোর্স 1. Uber computes an ETA in four cases Source 1সোর্স 1:
- Eyeball. The rider types a destination. How long is the trip?
- Dispatch. Which car can reach the rider in the shortest time?
- Pick up. How long until the car arrives?
- On-trip. How long until the rider reaches the destination? This ETA updates live.
Uber also uses ETAs to calculate fares, match riders to drivers, and plan deliveries Source 2সোর্স 2.
The scale is large. One trip usually needs about 1,000 ETA requests Source 1সোর্স 1. In 2023 the article said that more than 18 million Uber trips finish each day, and that the system handles half a million ETA requests per second Source 1সোর্স 1. Uber's own Q3 2025 results show 3.5 billion trips in the quarter, about 38 million a day. The task is hard because a trip follows streets and highways, not a straight line Source 1সোর্স 1. If a trip takes longer than promised, the rider may not book again. The article says that bad ETAs could cost billions of dollars Source 1সোর্স 1.
বাংলা ব্যাখ্যা
ETA মানে expected time of arrival, অর্থাৎ point A থেকে point B-তে যেতে কত সময় লাগবে Source 1সোর্স 1। Uber চারটি অবস্থায় ETA হিসাব করে Source 1সোর্স 1:
- Eyeball। Rider একটি destination লেখেন। Trip-টি কত সময়ের?
- Dispatch। কোন গাড়ি সবচেয়ে কম সময়ে rider-এর কাছে পৌঁছাতে পারে?
- Pick up। গাড়ি আসতে আর কত সময় লাগবে?
- On-trip। Rider destination-এ পৌঁছাতে আর কত সময় লাগবে? এই ETA live update হয়।
Uber ভাড়া হিসাব করতে, rider-কে driver-এর সাথে মেলাতে এবং delivery-র পরিকল্পনা করতেও ETA ব্যবহার করে Source 2সোর্স 2।
এর scale অনেক বড়। একটি trip-এ সাধারণত প্রায় 1,000টি ETA request লাগে Source 1সোর্স 1। ২০২৩ সালে article বলেছিল, প্রতিদিন 18 million-এর বেশি Uber trip শেষ হয়, আর system প্রতি সেকেন্ডে half a million ETA request সামলায় Source 1সোর্স 1। Uber-এর নিজস্ব Q3 2025 ফলাফলে ত্রৈমাসিকে 3.5 billion trip, অর্থাৎ দিনে প্রায় 38 million। কাজটি কঠিন, কারণ একটি trip সরলরেখায় চলে না; এটি রাস্তা আর highway ধরে চলে Source 1সোর্স 1। Business-এর জন্যও accuracy জরুরি। Trip প্রতিশ্রুত সময়ের চেয়ে বেশি সময় নিলে rider হয়তো আর book করবেন না, আর article বলে, ভুল ETA-র কারণে billions of dollars ক্ষতি হতে পারে Source 1সোর্স 1।
The big picture
[Rider app] --> [uRoute: front door for all route requests]
|
v
[Routing engine]
road graph + traffic speeds
| best route + first ETA
v
[DeepETA model on Michelangelo]
predicts the usual error and corrects it
|
v
final ETA --> [Rider app]
[GPS points from cars] --> [Map matching] --> positions on real roadsA request goes to uRoute. uRoute asks the routing engine for a route and an ETA. Then it sends that ETA and other details to the prediction service, which runs the DeepETA model Source 2সোর্স 2. Separately, map matching turns noisy GPS points into positions on real roads, which makes the ETA more accurate Source 1সোর্স 1.
সহজ English
A request from the rider app goes to uRoute. uRoute is the front door for all route requests. uRoute asks the routing engine for a route and an ETA. The routing engine uses the road graph and the traffic speeds. Then uRoute sends that ETA and other details to the prediction service. This service runs the DeepETA model Source 2সোর্স 2. The model predicts the usual error of the first ETA and corrects it. The final ETA goes back to the rider app.
Map matching is a separate step. It turns noisy GPS points from the cars into positions on real roads. This makes the ETA more accurate Source 1সোর্স 1.
বাংলা ব্যাখ্যা
Rider app থেকে একটি request uRoute-এ যায়। uRoute হলো সব route request-এর প্রবেশপথ। uRoute routing engine-এর কাছে একটি route আর একটি ETA চায়। Routing engine road graph আর traffic speed ব্যবহার করে। এরপর uRoute সেই ETA আর অন্যান্য তথ্য prediction service-এ পাঠায়, যা DeepETA model চালায় Source 2সোর্স 2। Model-টি প্রথম ETA-র স্বাভাবিক ভুলটি অনুমান করে এবং তা ঠিক করে। চূড়ান্ত ETA আবার rider app-এ ফিরে যায়।
আলাদাভাবে, map matching গাড়ির noisy GPS point-গুলোকে আসল রাস্তার ওপর অবস্থানে রূপান্তর করে। এতে ETA আরও accurate হয় Source 1সোর্স 1।
The map as a graph
Think of a subway map. Each station is a dot, and each line between two stations is a connection.
Uber turns the street map into a graph. Each road intersection is a node, and each road segment is a directed edge Source 1সোর্স 1. Directed means that the edge goes one way, so a two-way street is two edges. Each edge has a weight, which is the time to drive that segment Source 2সোর্স 2. Now the ETA question becomes a classic graph problem: find the cheapest path between two nodes Source 1সোর্স 1.
Dijkstra's algorithm is the well-known way to find a shortest path. Its work grows as n log n, where n is the number of intersections Source 1সোর্স 1. The San Francisco Bay Area alone has about half a million intersections, so plain Dijkstra is too slow at Uber's scale Source 1সোর্স 1.
সহজ English
Think of a subway map. Each station is a dot, and each line between two stations is a connection.
Uber turns the street map into a graph. Each road intersection is a node. Each road segment is a directed edge Source 1সোর্স 1. A directed edge goes one way, so a two-way street is two edges. Each edge has a weight: the time to drive that segment Source 2সোর্স 2. So the ETA question becomes a classic graph problem: find the cheapest path between two nodes Source 1সোর্স 1.
Dijkstra's algorithm is the well-known way to find a shortest path. Its work grows as n log n, where n is the number of intersections Source 1সোর্স 1. The San Francisco Bay Area alone has about half a million intersections. So plain Dijkstra is too slow at Uber's scale Source 1সোর্স 1.
বাংলা ব্যাখ্যা
একটি subway map-এর কথা ভাবুন। প্রতিটি station একটি বিন্দু, আর দুটি station-এর মাঝের প্রতিটি লাইন একটি সংযোগ।
Uber রাস্তার map-কে একটি graph-এ রূপান্তর করে। প্রতিটি রাস্তার মোড় (intersection) একটি node, আর প্রতিটি road segment একটি directed edge Source 1সোর্স 1। Directed মানে edge-টি একদিকে যায়, তাই একটি দুই-দিকের রাস্তা হলো দুটি edge। প্রতিটি edge-এর একটি weight আছে, যা ওই segment-টি গাড়িতে পার হওয়ার সময় Source 2সোর্স 2। তখন ETA-র প্রশ্নটি একটি classic graph সমস্যা হয়ে যায়: দুটি node-এর মধ্যে সবচেয়ে কম খরচের path খুঁজে বের করা Source 1সোর্স 1।
Shortest path খুঁজতে Dijkstra's algorithm সুপরিচিত পদ্ধতি। এর কাজ n log n হারে বাড়ে, যেখানে n হলো intersection-এর সংখ্যা Source 1সোর্স 1। শুধু San Francisco Bay Area-তেই প্রায় half a million intersection আছে, তাই Uber-এর scale-এ সাধারণ Dijkstra অনেক ধীর Source 1সোর্স 1।
Cut the map into pieces
Think of a road trip across three countries. You already know the best roads between the border crossings inside each country. So you only plan from border to border, not street by street.
Uber splits the graph into partitions and precomputes the best path inside each one Source 1সোর্স 1. To precompute means to work out the answer before anyone asks. At request time, the search only needs to visit the nodes on the borders of the partitions Source 1সোর্স 1.
The article explains the gain with a circle. Picture a dense road graph that fills a circle. Without partitions, the search may visit every node inside, so the work grows with the area of the circle, pi times r squared. With partitions, the search only visits the edge of the circle, so the work grows with the perimeter, 2 times pi times r Source 1সোর্স 1. For the Bay Area, this cuts the work from about 500,000 nodes to about 700 Source 1সোর্স 1.
সহজ English
Think of a road trip across three countries. You already know the best roads between the border crossings inside each country. So you plan only from border to border, not street by street.
Uber cuts the graph into pieces, called partitions. Before anyone asks, it works out the best path inside each piece. This is called precompute Source 1সোর্স 1. When a request comes, the search visits only the nodes on the borders of the pieces Source 1সোর্স 1.
The article uses a circle to show the gain. Picture a dense road graph that fills a circle. Without partitions, the search may visit every node inside. Then the work grows with the area of the circle, pi times r squared. With partitions, the search visits only the edge of the circle. Then the work grows with the perimeter, 2 times pi times r Source 1সোর্স 1. For the Bay Area, the work goes down from about 500,000 nodes to about 700 Source 1সোর্স 1.
বাংলা ব্যাখ্যা
তিনটি দেশ পার হয়ে একটি road trip-এর কথা ভাবুন। প্রতিটি দেশের ভেতরে border crossing-গুলোর মধ্যে সবচেয়ে ভালো রাস্তা আপনি আগে থেকেই জানেন। তাই আপনি রাস্তা ধরে ধরে নয়, শুধু এক border থেকে আরেক border পর্যন্ত পরিকল্পনা করেন।
Uber graph-টিকে কয়েকটি partition-এ ভাগ করে এবং প্রতিটি partition-এর ভেতরের সবচেয়ে ভালো path আগে থেকেই হিসাব করে রাখে Source 1সোর্স 1। Precompute মানে কেউ জিজ্ঞেস করার আগেই উত্তর বের করে রাখা। Request আসার সময় search-কে শুধু partition-গুলোর border-এর node-গুলোতে যেতে হয় Source 1সোর্স 1।
Article-টি একটি বৃত্ত দিয়ে লাভটি বোঝায়। ধরুন, একটি ঘন road graph একটি বৃত্ত ভরে আছে। Partition ছাড়া search হয়তো ভেতরের প্রতিটি node-এ যায়, তাই কাজ বৃত্তের ক্ষেত্রফলের সাথে বাড়ে, অর্থাৎ pi গুণ r-এর বর্গ। Partition থাকলে search শুধু বৃত্তের কিনারায় যায়, তাই কাজ পরিধির সাথে বাড়ে, অর্থাৎ 2 গুণ pi গুণ r Source 1সোর্স 1। Bay Area-র ক্ষেত্রে এতে কাজ প্রায় 500,000 node থেকে কমে প্রায় 700-এ নামে Source 1সোর্স 1।
Traffic on each road
The same road can take 10 minutes at midnight and 40 minutes at rush hour. A good ETA must know which one it is.
Traffic depends on the time of day, the weather, and the number of cars on the road Source 1সোর্স 1. Uber puts traffic information into the edge weights of the graph, so a slow road gets a high weight Source 1সোর্স 1. It mixes historical average speeds with real-time speeds, because more data gives a better picture Source 1সোর্স 1. Uber's own blog describes the routing engine the same way. It uses map data and live traffic, and it adds up the travel times of the segments along the best path Source 2সোর্স 2.
সহজ English
The same road can take 10 minutes at midnight and 40 minutes at rush hour. A good ETA must know which one it is.
Traffic depends on the time of day, the weather, and the number of cars on the road Source 1সোর্স 1. Uber puts the traffic data into the edge weights of the graph. So a slow road gets a high weight Source 1সোর্স 1. Uber mixes historical average speeds with real-time speeds, because more data gives a better picture Source 1সোর্স 1. Uber's own blog describes the routing engine in the same way. The engine uses map data and live traffic. It adds up the travel times of the segments along the best path Source 2সোর্স 2.
বাংলা ব্যাখ্যা
একই রাস্তা পার হতে মাঝরাতে 10 মিনিট আর rush hour-এ 40 মিনিট লাগতে পারে। একটি ভালো ETA-কে জানতে হবে, এখন কোনটি ঘটছে।
Traffic নির্ভর করে দিনের সময়, আবহাওয়া আর রাস্তায় গাড়ির সংখ্যার ওপর Source 1সোর্স 1। Uber traffic-এর তথ্য graph-এর edge weight-এ বসায়, তাই একটি ধীর রাস্তা বেশি weight পায় Source 1সোর্স 1। Uber historical average speed-এর সাথে real-time speed মেশায়, কারণ বেশি data থেকে ভালো ছবি পাওয়া যায় Source 1সোর্স 1। Uber-এর নিজের blog-ও routing engine-কে একইভাবে বর্ণনা করে। Engine-টি map data আর live traffic ব্যবহার করে, এবং সবচেয়ে ভালো path-এর segment-গুলোর travel time যোগ করে Source 2সোর্স 2।
Cleaning up GPS with map matching
Think of a friend who gives you directions over a bad phone line. You miss some words, but you can guess them from the words around them.
GPS signals from phones can be noisy, with wrong points, and sparse, with gaps. This is worse in a tunnel Source 1সোর্স 1. Tall buildings can also reflect the signal, which is called the multipath effect Source 1সোর্স 1. Bad GPS data makes the ETA worse Source 1সোর্স 1.
Map matching fixes this. It takes the raw GPS points and places each one on a real road segment Source 1সোর্স 1. Uber uses two tools for it Source 1সোর্স 1:
- A Kalman filter makes a best guess of where the car is. It combines the new GPS reading with what it already knew.
- The Viterbi algorithm finds the most likely chain of road segments. It uses dynamic programming, which means it solves small parts of the problem and reuses those answers.
সহজ English
Think of a friend who gives you directions over a bad phone line. You miss some words, but you can guess them from the words around them.
GPS signals from phones can be noisy, with wrong points. They can also be sparse, with gaps. This is worse in a tunnel Source 1সোর্স 1. Tall buildings can also reflect the signal. This is called the multipath effect Source 1সোর্স 1. Bad GPS data makes the ETA worse Source 1সোর্স 1.
Map matching fixes this. It takes the raw GPS points and puts each one on a real road segment Source 1সোর্স 1. Uber uses two tools for it Source 1সোর্স 1:
- A Kalman filter makes a best guess of the position of the car. It combines the new GPS reading with what it already knew.
- The Viterbi algorithm finds the most likely chain of road segments. It uses dynamic programming: it solves small parts of the problem and uses those answers again.
বাংলা ব্যাখ্যা
একজন বন্ধুর কথা ভাবুন, যিনি খারাপ phone line-এ আপনাকে পথ বলে দিচ্ছেন। আপনি কিছু শব্দ শুনতে পান না, কিন্তু আশেপাশের শব্দ থেকে সেগুলো অনুমান করতে পারেন।
Phone-এর GPS signal noisy হতে পারে, অর্থাৎ তাতে ভুল point থাকে। আবার এটি sparse-ও হতে পারে, অর্থাৎ তাতে ফাঁক থাকে। Tunnel-এর ভেতরে এটি আরও খারাপ হয় Source 1সোর্স 1। উঁচু building-ও signal প্রতিফলিত করতে পারে; একে multipath effect বলে Source 1সোর্স 1। খারাপ GPS data ETA-কে খারাপ করে Source 1সোর্স 1।
Map matching এই সমস্যা ঠিক করে। এটি raw GPS point-গুলো নিয়ে প্রতিটিকে একটি আসল road segment-এর ওপর বসায় Source 1সোর্স 1। Uber এর জন্য দুটি tool ব্যবহার করে Source 1সোর্স 1:
- Kalman filter গাড়িটি কোথায় আছে, তার সবচেয়ে ভালো অনুমান করে। এটি নতুন GPS reading-কে আগে থেকে জানা তথ্যের সাথে মেলায়।
- Viterbi algorithm road segment-গুলোর সবচেয়ে সম্ভাব্য ধারাটি খুঁজে বের করে। এটি dynamic programming ব্যবহার করে, অর্থাৎ সমস্যার ছোট ছোট অংশ সমাধান করে এবং সেই উত্তরগুলো আবার ব্যবহার করে।
A learning model fixes the rest
Think of a weather forecaster who knows that the computer model is always 2 degrees too warm in July. The forecaster takes the model's number and corrects it.
A road graph is only a model of the real world. It cannot capture every condition on the ground, and the driver may not take the route that the engine picked Source 2সোর্স 2. So Uber trains a machine learning model on top of the routing engine. The model predicts the residual: the gap between the routing engine ETA and the real trip time Source 2সোর্স 2. Uber calls this ETA post-processing, and DeepETA is one such model Source 2সোর্স 2.
| Part | What Uber's blog says |
|---|---|
| Inputs | Origin, destination, time of the request, live traffic, and the type of request, for example a delivery or a ride pickup |
| Speed | The model must answer within a few milliseconds |
| Load | It is the model with the most queries per second at Uber |
| Old model | Gradient-boosted trees in XGBoost, until they became too big to grow further |
| New model | A linear transformer, chosen because a full transformer was too slow |
| Size | Hundreds of millions of parameters, but each prediction uses only about 0.25 % of them |
The table follows the blog Source 2সোর্স 2. The team tested seven types of neural network before it chose this design Source 2সোর্স 2.
The model also uses a special way to score its mistakes, an asymmetric Huber loss. One of its settings, omega, controls the cost of a guess that is too low against a guess that is too high. This helps when a late arrival hurts more than an early one Source 2সোর্স 2. Uber trains and serves the model on Michelangelo, its machine learning platform, and retrains it on a schedule Source 2সোর্স 2.
সহজ English
A road graph is only a model of the real world. It cannot show every condition on the ground, and the driver may not take the route that the engine picked Source 2সোর্স 2. So Uber trains a machine learning model on top of the routing engine. The model predicts the residual: the gap between the routing engine ETA and the real trip time Source 2সোর্স 2. Uber calls this ETA post-processing. DeepETA is one such model Source 2সোর্স 2.
Uber's blog says Source 2সোর্স 2:
- The inputs are the origin, the destination, the time of the request, live traffic, and the kind of request, such as a delivery or a ride pickup.
- The model must answer within a few milliseconds. It gets the highest number of queries per second at Uber.
- The old model used gradient-boosted trees in XGBoost. They became too big to grow further.
- The new model is a linear transformer. A full transformer was too slow.
- It has hundreds of millions of parameters. Each prediction uses only about 0.25 % of them.
- The team tested 7 types of neural network before it chose this design.
The model scores its mistakes with an asymmetric Huber loss. A setting called omega sets the cost of a too-low guess against a too-high guess Source 2সোর্স 2. Uber trains and serves the model on Michelangelo, its machine learning platform, and retrains it on a schedule Source 2সোর্স 2.
বাংলা ব্যাখ্যা
Road graph হলো বাস্তব জগতের একটি model মাত্র। এটি রাস্তার প্রতিটি অবস্থা ধরতে পারে না, আর driver হয়তো engine-এর বাছাই করা route-এ যান না Source 2সোর্স 2। তাই Uber routing engine-এর ওপরে একটি machine learning model train করে। Model-টি residual অনুমান করে, অর্থাৎ routing engine-এর ETA আর আসল trip time-এর মধ্যের ফারাক Source 2সোর্স 2। Uber একে ETA post-processing বলে, আর DeepETA এমনই একটি model Source 2সোর্স 2।
Uber-এর blog অনুযায়ী Source 2সোর্স 2:
- Input হলো origin, destination, request-এর সময়, live traffic, আর request-এর ধরন, যেমন delivery বা ride pickup।
- Model-কে কয়েক millisecond-এর মধ্যে উত্তর দিতে হয়। Uber-এ এটিই প্রতি সেকেন্ডে সবচেয়ে বেশি query পাওয়া model।
- পুরোনো model ছিল XGBoost-এর gradient-boosted trees। এগুলো এত বড় হয়ে যায় যে আর বাড়ানো যাচ্ছিল না।
- নতুন model একটি linear transformer, কারণ full transformer অনেক ধীর ছিল। Team এই design বেছে নেওয়ার আগে 7 ধরনের neural network পরীক্ষা করে।
- এতে কয়েকশো million parameter আছে, কিন্তু প্রতিটি prediction মাত্র প্রায় 0.25 % parameter ব্যবহার করে।
Model-টি asymmetric Huber loss দিয়ে তার ভুলের হিসাব করে। এর একটি setting, omega, খুব কম অনুমান আর খুব বেশি অনুমানের খরচের তুলনা নিয়ন্ত্রণ করে। দেরিতে পৌঁছানো আগে পৌঁছানোর চেয়ে বেশি ক্ষতিকর হলে এটি কাজে লাগে Source 2সোর্স 2। Uber তার machine learning platform Michelangelo-তে model-টি train ও serve করে, এবং নির্দিষ্ট সময়সূচিতে আবার train করে Source 2সোর্স 2।
Key words
| Word | Plain meaning |
|---|---|
| ETA | Expected time of arrival: how long a trip will take |
| Graph | Dots (nodes) joined by lines (edges); here, intersections joined by roads |
| Edge weight | The cost of one edge; here, the time to drive that road segment |
| Shortest path | The cheapest chain of edges from start to end |
| Partition | One piece of a graph that was cut into smaller pieces |
| Precompute | Work out answers before anyone asks, so requests are fast |
| Map matching | Placing raw GPS points on the real roads |
| Residual | The gap between a first estimate and the real result |
| Latency | The time that one request takes |
| Requests per second | How many requests a system handles each second; also called QPS |
What a tester can learn
Tutorial advice
These ideas are the tutorial's own advice.
- Compare predicted ETAs with real trip times. Split the results by short and long trips, rides and deliveries, and city.
- Replay GPS traces with gaps (a tunnel) and jumps (tall buildings). Check that the matched route stays on real roads.
- Test edge cases: the same start and end point, one-way streets, closed roads, and trips that cross partition borders.
- Load test at peak traffic. Check that each layer stays inside its time budget, especially the model.
- Stop the model service in a test setup. Check that the app still shows an ETA from the routing engine, or a clear message.
- Check that an ETA is never negative and that it updates during the trip.
সহজ English
These ideas are the tutorial's own advice.
- Compare the predicted ETAs with the real trip times. Split the results by short and long trips, by rides and deliveries, and by city.
- Replay GPS traces with gaps (a tunnel) and jumps (tall buildings). Make sure that the matched route stays on real roads.
- Test edge cases: the same start and end point, one-way streets, closed roads, and trips that cross partition borders.
- Do a load test at peak traffic. Make sure that each layer stays inside its time budget, especially the model.
- In a test setup, stop the model service. Make sure that the app still shows an ETA from the routing engine, or a clear message.
- Make sure that an ETA is never negative and that it updates during the trip.
বাংলা ব্যাখ্যা
নিচের ধারণাগুলো এই tutorial-এর নিজস্ব পরামর্শ।
- অনুমান করা ETA-কে আসল trip time-এর সাথে তুলনা করুন। ফলাফল ছোট ও লম্বা trip, ride ও delivery, এবং শহর অনুযায়ী ভাগ করুন।
- ফাঁক (tunnel) আর লাফ (উঁচু building) থাকা GPS trace আবার চালান (replay)। দেখুন, matched route আসল রাস্তার ওপরেই থাকে কি না।
- Edge case test করুন: একই start ও end point, one-way রাস্তা, বন্ধ রাস্তা, আর partition border পার হওয়া trip।
- Peak traffic-এ load test করুন। দেখুন, প্রতিটি layer, বিশেষ করে model, তার time budget-এর মধ্যে থাকে কি না।
- একটি test setup-এ model service বন্ধ করুন। দেখুন, app তবুও routing engine থেকে একটি ETA, অথবা একটি পরিষ্কার message দেখায় কি না।
- দেখুন, ETA কখনো negative হয় না এবং trip চলার সময় update হয় কি না।