How a Payment System Works
When a ride ends, the app takes the fare from your card and you walk away. A payment system makes this happen. It must keep card numbers safe, split each fare between several parties, survive slow or broken banks, and never lose money or charge you twice. This page uses Uber as the example, from the free part of one newsletter article and two posts from Uber's engineering blog.
9 min read9 মিনিটে পড়া যায় · 9 sections9টি সেকশন · 3 sources3টি সোর্স · updated Nov 2026আপডেট: Nov 2026
A money order must add to zeroএকটা মানি অর্ডারের যোগফল শূন্য হতেই হবে
A 20-dollar trip becomes four ledger lines that add up to zero, and a price fix is a new order, not an edit.২০ ডলারের একটা ট্রিপ চারটা লেজার লাইন হয়, যাদের যোগফল শূন্য। আর দাম ঠিক করা মানে নতুন অর্ডার, এডিট নয়।
You’ll learnআপনি শিখবেন
- Why the card goes to the provider and the app keeps a tokenকেন কার্ড প্রোভাইডারে যায় আর অ্যাপ টোকেন রাখে
- How a 20-dollar trip becomes four lines২০ ডলারের ট্রিপ কীভাবে চারটা লাইন হয়
- Why the lines of an order must add to zeroকেন অর্ডারের লাইনের যোগফল শূন্য হতে হয়
- Why a saved order never changesকেন সেভ করা অর্ডার কখনো বদলায় না
- How a price fix is a new orderদাম ঠিক করা কীভাবে নতুন অর্ডার হয়
The problem in plain words
The article's title puts Uber's load at 30 million transactions per day Source 1সোর্স 1. Uber's engineers give a wider view. Over ten years, Uber's yearly gross bookings grew from 50 billion dollars to 217 billion dollars Source 2সোর্স 2. It tracks the balance of over 1.2 billion entities, such as riders, drivers, and businesses Source 2সোর্স 2.
The article names three hard problems Source 1সোর্স 1:
| Problem | What it means |
|---|---|
| Security | A phone can be stolen and a server can be hacked, so storing card details there is risky |
| Disbursement | One payment must be split between the driver, Uber, and taxes and fees, so money cannot go straight from rider to driver |
| Reliability | Banks, card networks, and payment providers are outside systems that can fail, time out, or go partly down |
Disbursement means paying money out. A payment provider is a company that talks to the card networks and banks for you.
সহজ English
The article's title says that Uber handles 30 million transactions per day Source 1সোর্স 1. Uber's engineers say that, over ten years, Uber's yearly gross bookings grew from 50 billion dollars to 217 billion dollars Source 2সোর্স 2. Uber tracks the balance of over 1.2 billion entities, such as riders, drivers, and businesses Source 2সোর্স 2.
The article names three hard problems Source 1সোর্স 1:
- Security. A phone can be stolen and a server can be hacked. So it is risky to keep card details there.
- Disbursement (paying money out). One payment is split between the driver, Uber, and taxes and fees. So the money cannot go straight from the rider to the driver.
- Reliability. Banks, card networks, and payment providers are outside systems. They can fail, time out, or go partly down.
A payment provider is a company that talks to the card networks and banks for you.
বাংলা ব্যাখ্যা
Article-এর title অনুযায়ী Uber প্রতিদিন 30 million transaction সামলায় Source 1সোর্স 1। Uber-এর engineer-রা আরও বড় ছবি দেখান। দশ বছরে Uber-এর বার্ষিক gross bookings 50 billion dollar থেকে বেড়ে 217 billion dollar হয়েছে Source 2সোর্স 2। Uber 1.2 billion-এর বেশি entity-র balance track করে, যেমন rider, driver এবং business Source 2সোর্স 2।
Article তিনটি কঠিন সমস্যার কথা বলে Source 1সোর্স 1:
- Security: phone চুরি হতে পারে এবং server hack হতে পারে, তাই সেখানে card-এর তথ্য রাখা ঝুঁকিপূর্ণ।
- Disbursement (টাকা পরিশোধ করা): একটি payment driver, Uber এবং tax ও fee-এর মধ্যে ভাগ হয়, তাই টাকা সরাসরি rider থেকে driver-এর কাছে যেতে পারে না।
- Reliability: bank, card network এবং payment provider হলো বাইরের system। এগুলো fail করতে পারে, time out হতে পারে, অথবা আংশিকভাবে down হতে পারে।
Payment provider হলো এমন একটি company, যা আপনার হয়ে card network এবং bank-এর সাথে যোগাযোগ করে।
The big picture
[Rider app + provider SDK] --card details--> [Payment provider]
^ |
+-------------- token ---------------------+
[Rider app] --trip ends, token--> [Uber backend]
|
v
[Money order store]
|
v
[Kafka] --> [Order processing]
| |
v v
[Payment providers] [Ledger balances]
(charge, pay out) (who owns what)First, the card details go straight to the payment provider, and the app gets back a token Source 1সোর্স 1. Later, when a trip ends, Uber writes a money order that lists every debit and credit Source 2সোর্স 2. A queue carries the order to the services that charge the card, pay the driver, and update each balance Source 3সোর্স 3.
The token step comes from the newsletter article. The free part of the article stops after tokenization. So the money order, pipeline, retry, and ledger sections come from Uber's own engineering posts.
সহজ English
The diagram shows two steps.
First, the rider app uses an SDK from the payment provider. The card details go straight to the payment provider, and the app gets back a token Source 1সোর্স 1.
Later, when a trip ends, the app sends the token to the Uber backend. Uber writes a money order that lists every debit and credit Source 2সোর্স 2. A queue (Kafka in the diagram) carries the order to the services that charge the card, pay the driver, and update each balance Source 2সোর্স 2Source 3সোর্স 3.
The token step comes from the newsletter article. The free part of the article stops after tokenization. So the money order, pipeline, retry, and ledger sections come from Uber's own engineering posts.
বাংলা ব্যাখ্যা
Diagram-টি দুটি ধাপ দেখায়।
প্রথমে rider app payment provider-এর SDK ব্যবহার করে। Card-এর তথ্য সরাসরি payment provider-এর কাছে যায়, এবং app ফেরত পায় একটি token Source 1সোর্স 1।
পরে trip শেষ হলে app token-টি Uber backend-এ পাঠায়। Uber একটি money order লেখে, যেখানে প্রতিটি debit এবং credit থাকে Source 2সোর্স 2। একটি queue (diagram-এ Kafka) order-টি সেই service-গুলোর কাছে নিয়ে যায়, যারা card charge করে, driver-কে টাকা দেয় এবং প্রতিটি balance update করে Source 2সোর্স 2Source 3সোর্স 3।
Token-এর ধাপটি newsletter article থেকে নেওয়া। Article-এর free অংশ tokenization-এর পরে শেষ হয়ে যায়। তাই money order, pipeline, retry এবং ledger section-গুলো Uber-এর নিজের engineering post থেকে নেওয়া।
Keeping card numbers away from Uber
Think of a hotel key card. The card opens your room but holds no copy of your passport. If you lose it, the front desk cancels it, and a thief cannot use it anywhere else.
A token works the same way. This section follows the newsletter article. The app uses an SDK from the payment provider to collect the card number and CVV Source 1সোর্স 1. An SDK (software development kit) is a ready-made code package from another company. The SDK sends the card details straight to the provider, not to Uber's servers Source 1সোর্স 1. The provider then returns a token, a stand-in that lets Uber charge the card Source 1সোর্স 1. From then on, the app uses the token, not the card Source 1সোর্স 1.
The article explains why a stolen token is of little use. The provider ties it to Uber's account and app, and it allows only certain uses, such as charges made by Uber Source 1সোর্স 1. Another app or phone cannot use it Source 1সোর্স 1. This also helps Uber avoid heavy legal compliance work for storing card data Source 1সোর্স 1.
সহজ English
Think of a hotel key card. It opens your room, but it holds no copy of your passport. If you lose it, the front desk cancels it. A thief cannot use it anywhere else.
A token works the same way. The app uses an SDK from the payment provider to collect the card number and CVV Source 1সোর্স 1. An SDK (software development kit) is a ready-made code package from another company. The SDK sends the card details straight to the provider, not to Uber's servers. The provider sends back a token, a stand-in that lets Uber charge the card. After that, the app uses the token, not the card Source 1সোর্স 1.
A stolen token is of little use. The provider ties it to Uber's account and app. It allows only some uses, such as charges made by Uber. Another app or phone cannot use it Source 1সোর্স 1. This also helps Uber avoid heavy legal compliance work for storing card data Source 1সোর্স 1.
বাংলা ব্যাখ্যা
একটি hotel key card-এর কথা ভাবুন। এটি আপনার ঘর খোলে, কিন্তু এতে আপনার passport-এর কোনো কপি থাকে না। এটি হারালে front desk এটি বাতিল করে দেয়, আর চোর এটি অন্য কোথাও ব্যবহার করতে পারে না।
Token ঠিক এভাবেই কাজ করে। App payment provider-এর একটি SDK দিয়ে card number এবং CVV সংগ্রহ করে Source 1সোর্স 1। SDK (software development kit) হলো অন্য company-র তৈরি করা একটি ready-made code package। SDK card-এর তথ্য সরাসরি provider-এর কাছে পাঠায়, Uber-এর server-এ নয়। এরপর provider একটি token ফেরত দেয়। এটি card-এর বদলে কাজ করে এবং এটি দিয়ে Uber card charge করতে পারে। এরপর থেকে app card নয়, token ব্যবহার করে Source 1সোর্স 1।
চুরি হওয়া token তেমন কাজে আসে না। Provider এটিকে Uber-এর account এবং app-এর সাথে বেঁধে দেয়, এবং এটি শুধু কিছু নির্দিষ্ট কাজে চলে, যেমন Uber-এর করা charge। অন্য কোনো app বা phone এটি ব্যবহার করতে পারে না Source 1সোর্স 1। এতে card-এর তথ্য রাখার জন্য ভারী legal compliance-এর কাজও Uber এড়াতে পারে Source 1সোর্স 1।
Money orders: every cent has a home
Think of a shared bill at a restaurant. The waiter writes down who pays what. The total of all payments must equal the bill, not one coin more or less.
This section comes from Uber's own engineering posts. Uber records each payment as a money order. A money order lists the debits and credits between the parties of one real deal, such as a trip or a food order Source 2সোর্স 2. A debit takes money from an account. A credit adds money to one.
Before it saves any money order, Uber runs pre-commit validations. One of them checks that all its entries add up to zero Source 2সোর্স 2. This means the system can never create or destroy money Source 2সোর্স 2. Uber also uses double-entry bookkeeping, where each credit has a matching debit Source 2সোর্স 2.
An older Uber post shows a 20-dollar trip as an example Source 3সোর্স 3:
| Account | Change | Reason |
|---|---|---|
| Payer escrow | 18 dollars out | The trip fare |
| Payer escrow | 2 dollars out | The service fee |
| Payee escrow | 18 dollars in | The trip fare |
| Uber escrow | 2 dollars in | The service fee |
The 20 dollars that leave the payer equal the 20 dollars that arrive, so the four lines add up to zero. Escrow is a holding account where money waits until the deal is complete.
A money order can never change after Uber writes it Source 2সোর্স 2. If a trip price is adjusted, or a food item was missing, Uber writes a new money order for the difference Source 2সোর্স 2. Uber says this immutability keeps its audit trail clean Source 2সোর্স 2.
সহজ English
Uber records each payment as a money order. A money order lists the debits and credits between the parties of one real deal, such as a trip or a food order Source 2সোর্স 2. A debit takes money from an account. A credit adds money to one.
Before Uber saves a money order, it runs checks. One check makes sure all the entries add up to zero. So the system can never create or destroy money. Each credit also has a matching debit (double-entry bookkeeping) Source 2সোর্স 2.
An older Uber post shows a 20-dollar trip Source 3সোর্স 3. The payer escrow pays out 18 dollars for the fare and 2 dollars for the service fee. The payee escrow gets the 18 dollars, and the Uber escrow gets the 2 dollars. So the total is zero. Escrow is a holding account where money waits until the deal is complete.
A money order never changes after Uber writes it. If a trip price changes, or a food item was missing, Uber writes a new money order for the difference Source 2সোর্স 2.
বাংলা ব্যাখ্যা
Restaurant-এ একটি ভাগ করা bill-এর কথা ভাবুন। Waiter লিখে রাখেন কে কত দেবে। সব payment-এর যোগফল bill-এর সমান হতে হবে, এক পয়সাও বেশি বা কম নয়।
Uber প্রতিটি payment-কে একটি money order হিসেবে রাখে। একটি money order একটি আসল লেনদেনের, যেমন একটি trip বা একটি food order-এর, পক্ষগুলোর মধ্যে debit এবং credit-গুলোর তালিকা দেয় Source 2সোর্স 2। Debit একটি account থেকে টাকা নেয়। Credit একটি account-এ টাকা যোগ করে।
money order save করার আগে Uber pre-commit validation চালায়; তার একটি হলো এর সব entry-র যোগফল শূন্য কিনা তা check করা Source 2সোর্স 2। এর মানে system কখনো টাকা তৈরি বা নষ্ট করতে পারে না। Uber double-entry bookkeeping-ও ব্যবহার করে, যেখানে প্রতিটি credit-এর একটি মিলে যাওয়া debit থাকে Source 2সোর্স 2।
Uber-এর একটি পুরনো post একটি 20 dollar-এর trip দেখায় Source 3সোর্স 3। Payer escrow থেকে fare-এর জন্য 18 dollar এবং service fee-র জন্য 2 dollar বের হয়। Payee escrow-তে 18 dollar আসে, আর Uber escrow-তে 2 dollar আসে। তাই চারটি line-এর যোগফল শূন্য। Escrow হলো একটি holding account, যেখানে লেনদেন শেষ না হওয়া পর্যন্ত টাকা অপেক্ষা করে।
Uber একবার লেখার পর money order আর কখনো বদলায় না। Trip-এর দাম adjust হলে, বা কোনো food item না এলে, Uber পার্থক্যের জন্য একটি নতুন money order লেখে Source 2সোর্স 2। Uber বলে, এই immutability তাদের audit trail পরিষ্কার রাখে Source 2সোর্স 2।
A pipeline of small services
Think of a restaurant kitchen. The waiter pins the ticket on a rail. Each cook takes the ticket, does one step, and passes it on. If one cook is slow, tickets wait on the rail. They do not get lost.
This section comes from Uber's own engineering posts. Uber built its payments platform as many small, stateless services Source 2সোর্স 2. Stateless means a service keeps no memory between requests, so any copy of it can take the next job. Each service owns one step: creating the order, processing it, collecting money, or paying out Source 2সোর্স 2. Apache Kafka carries the messages between them Source 2সোর্স 2. Kafka is a message queue: a durable line of messages that services read in order.
The 2020 post describes two of these services Source 3সোর্স 3:
- An order insertion service creates the payment order, saves it, and publishes it to a queue topic.
- An order processing service reads the order, sends charge or payout requests to the payment providers, and records success or failure.
Most of Uber's money traffic flows through this asynchronous pipeline Source 2সোর্স 2. Asynchronous means the caller does not wait for the work to finish. When a user waits on screen, Uber instead uses its internal workflow engine, Cadence, for a synchronous flow Source 2সোর্স 2.
সহজ English
Think of a restaurant kitchen. Each cook does one step and passes the ticket on. A slow cook makes the tickets wait, but they do not get lost.
Uber built its payments platform as many small, stateless services Source 2সোর্স 2. A stateless service keeps no memory between requests, so any copy of it can take the next job. Each service owns one step: creating the order, processing it, collecting money, or paying out. Apache Kafka carries the messages between the services Source 2সোর্স 2. Kafka is a message queue: a durable line of messages that services read in order.
The 2020 post describes two services Source 3সোর্স 3:
- The order insertion service creates the payment order, saves it, and publishes it to a queue topic.
- The order processing service reads the order, sends charge or payout requests to the payment providers, and records success or failure.
Most money traffic goes through this asynchronous pipeline: the caller does not wait for the work to finish. When a user waits on screen, Uber uses its internal workflow engine, Cadence, for a synchronous flow Source 2সোর্স 2.
বাংলা ব্যাখ্যা
একটি restaurant kitchen-এর কথা ভাবুন। Waiter একটি rail-এ ticket আটকে দেন। প্রতিটি cook একটি ধাপ করে ticket-টি পরের জনের কাছে দেন। কোনো cook ধীরে কাজ করলে ticket-গুলো rail-এ অপেক্ষা করে, হারিয়ে যায় না।
Uber তাদের payments platform অনেক ছোট, stateless service দিয়ে তৈরি করেছে Source 2সোর্স 2। Stateless মানে একটি service দুটি request-এর মাঝে কিছু মনে রাখে না, তাই এর যেকোনো কপি পরের কাজটি নিতে পারে। প্রতিটি service একটি ধাপের দায়িত্বে থাকে: order তৈরি করা, order process করা, টাকা সংগ্রহ করা, অথবা payout করা Source 2সোর্স 2। Service-গুলোর মধ্যে message বহন করে Apache Kafka Source 2সোর্স 2। Kafka হলো একটি message queue: message-এর একটি durable সারি, যা service-গুলো ক্রম অনুযায়ী পড়ে।
2020 সালের post দুটি service-এর বর্ণনা দেয় Source 3সোর্স 3:
- Order insertion service payment order তৈরি করে, save করে এবং একটি queue topic-এ publish করে।
- Order processing service order-টি পড়ে, payment provider-দের কাছে charge বা payout request পাঠায় এবং success বা failure লিখে রাখে।
Uber-এর বেশিরভাগ money traffic এই asynchronous pipeline দিয়ে যায় Source 2সোর্স 2। Asynchronous মানে যে call করে, সে কাজ শেষ হওয়ার জন্য অপেক্ষা করে না। User যখন screen-এ অপেক্ষা করেন, তখন Uber synchronous flow-এর জন্য তাদের internal workflow engine Cadence ব্যবহার করে Source 2সোর্স 2।
Charging once, even when things fail
Picture a parcel locker with a unique code on each parcel. If the courier delivers the same parcel twice, the locker sees the code and refuses the copy.
In payments, a retry is normal. A bank may time out, and the system tries again. But a retry must not charge the rider twice. The property that makes a repeated request safe is called idempotency.
Uber's 2020 post lists how it gets idempotency Source 3সোর্স 3:
- It gives users, jobs, and orders unique IDs, and it generates those IDs in a deterministic way.
- It uses the ID of each processed order to make sure it handles each order exactly once.
- It never changes an order after saving it.
- It saves an order first, and only then processes it.
The same post says a reliable payment system retries failing payments with growing delays over a long time Source 3সোর্স 3. The queues also run in many regions. If one region goes down, services in another region keep processing the orders Source 3সোর্স 3.
Deterministic IDs
This is a general explanation. Uber's post does not say which facts its IDs come from. A deterministic ID comes from fixed facts, such as the trip and the step, not from a random roll. So a retry of the same step produces the same ID. The system then sees that it already handled that ID.
সহজ English
Think of a parcel locker. It refuses a parcel with a unique code that it already saw.
In payments, a bank can time out, and the system tries again. But a retry must not charge the rider twice. Idempotency is the property that makes a repeated request safe.
Uber's 2020 post lists how Uber gets idempotency Source 3সোর্স 3:
- Users, jobs, and orders get unique IDs. Uber generates these IDs in a deterministic way.
- Uber uses the ID of each processed order to handle each order exactly once.
- Uber never changes an order after it saves it.
- Uber saves an order first, and then it processes it.
A reliable payment system retries failing payments with growing delays over a long time. The queues run in many regions. If one region goes down, services in another region continue to process the orders Source 3সোর্স 3.
A deterministic ID comes from fixed facts, not from chance, so a retry of the same step gets the same ID. This is a general explanation. Uber's post does not say which facts its IDs come from.
বাংলা ব্যাখ্যা
একটি parcel locker-এর কথা ভাবুন, যেখানে প্রতিটি parcel-এ একটি unique code থাকে। Courier একই parcel দুবার দিলে locker code দেখে কপিটি ফিরিয়ে দেয়।
Payment-এ retry খুব স্বাভাবিক। একটি bank time out হতে পারে, আর system আবার চেষ্টা করে। কিন্তু retry-এর কারণে rider-এর কাছ থেকে দুবার charge নেওয়া যাবে না। যে গুণ একটি request বারবার পাঠানোকে নিরাপদ করে, তার নাম idempotency।
Uber-এর 2020 সালের post বলে Uber কীভাবে idempotency পায় Source 3সোর্স 3:
- User, job এবং order-গুলো unique ID পায়, এবং Uber এই ID-গুলো deterministic উপায়ে তৈরি করে।
- প্রতিটি processed order-এর ID ব্যবহার করে Uber নিশ্চিত করে যে প্রতিটি order ঠিক একবারই handle হয়।
- Save করার পর Uber কখনো order বদলায় না।
- Uber আগে order save করে, তারপর process করে।
একই post বলে, একটি নির্ভরযোগ্য payment system ব্যর্থ payment-গুলো দীর্ঘ সময় ধরে ক্রমশ বাড়তে থাকা বিরতিতে retry করে Source 3সোর্স 3। Queue-গুলো অনেক region-এ চলে। একটি region down হলে অন্য region-এর service-গুলো order process করতে থাকে Source 3সোর্স 3।
Deterministic ID আসে নির্দিষ্ট তথ্য থেকে, যেমন trip এবং ধাপ, random কিছু থেকে নয়। তাই একই ধাপের retry একই ID পায়, এবং system দেখে যে এই ID আগেই handle হয়েছে। এটি একটি সাধারণ ব্যাখ্যা; Uber-এর post বলে না যে তাদের ID কোন তথ্য থেকে আসে।
The ledger: who owns what
A ledger is the book of balances. Think of a savings passbook. Each line shows money in or out, and the last line shows what you have now.
This section comes from Uber's own engineering posts. Uber wanted ledger balances with strong consistency Source 2সোর্স 2. In 2016, Uber had a homegrown sharded MySQL offering, but no perfect solution to guarantee strong consistency for ledger balances, so it built the balance store on Amazon DynamoDB Source 2সোর্স 2. Strong consistency means every reader sees the latest write at once.
Each balance change also goes into an entity changelog. This log gives a full audit trail and can rebuild any ledger from the start Source 2সোর্স 2. As audit needs grew, Uber built a custom store called LedgerStore for records that show any tampering Source 2সোর্স 2.
Busy business accounts caused a "hot entity" problem: many writes hit the same ledger row at once Source 2সোর্স 2. Uber solved it with batched writes, which gave 10 times more throughput for those accounts Source 2সোর্স 2.
The core platform also knows nothing about card brands or wallets. Each payment method plugs in through one shared interface with actions such as charge, disburse, and refund Source 2সোর্স 2. Uber Pay alone handles more than 50 payment methods around the world Source 2সোর্স 2.
সহজ English
A ledger is the book of balances. Think of a savings passbook. Each line shows money in or out. The last line shows what you have now.
Uber wanted ledger balances with strong consistency. Strong consistency means every reader sees the latest write at once. In 2016, Uber had no perfect option that guaranteed this, so Uber built the balance store on Amazon DynamoDB Source 2সোর্স 2.
Each balance change also goes into an entity changelog. This log gives a full audit trail and can rebuild any ledger from the start. As audit needs grew, Uber built a custom store, LedgerStore, for records that show any tampering Source 2সোর্স 2.
Busy business accounts caused a "hot entity" problem: many writes hit the same ledger row at the same time. Batched writes solved it and gave 10 times more throughput for those accounts Source 2সোর্স 2.
The core platform knows nothing about card brands or wallets. Each payment method plugs in through one shared interface, with actions such as charge, disburse, and refund. Uber Pay alone handles more than 50 payment methods around the world Source 2সোর্স 2.
বাংলা ব্যাখ্যা
Ledger হলো balance-এর খাতা। একটি savings passbook-এর কথা ভাবুন। প্রতিটি line টাকা আসা বা যাওয়া দেখায়, আর শেষ line দেখায় এখন আপনার কাছে কত আছে।
Uber চেয়েছিল ledger balance-গুলো strong consistency সহ থাকুক Source 2সোর্স 2। Strong consistency মানে প্রতিটি reader সাথে সাথে সর্বশেষ write দেখতে পায়। 2016 সালে Uber-এর নিজস্ব sharded MySQL ছিল, কিন্তু ledger balance-এর strong consistency নিশ্চিত করার মতো কোনো নিখুঁত সমাধান ছিল না, তাই Uber balance store তৈরি করে Amazon DynamoDB-এর উপর Source 2সোর্স 2।
প্রতিটি balance change একটি entity changelog-এও যায়। এই log একটি পূর্ণ audit trail দেয় এবং যেকোনো ledger শুরু থেকে আবার তৈরি করতে পারে Source 2সোর্স 2। Audit-এর প্রয়োজন বাড়ার সাথে সাথে Uber LedgerStore নামে একটি custom store তৈরি করে, যার record-এ যেকোনো tampering ধরা পড়ে Source 2সোর্স 2।
ব্যস্ত business account-গুলোতে একটি "hot entity" সমস্যা দেখা দেয়: একই সময়ে অনেক write একই ledger row-তে আসে Source 2সোর্স 2। Uber batched write দিয়ে এর সমাধান করে, এতে ওই account-গুলোর throughput 10 গুণ বাড়ে Source 2সোর্স 2।
Core platform card brand বা wallet সম্পর্কে কিছুই জানে না। প্রতিটি payment method একটি shared interface দিয়ে যুক্ত হয়, যেখানে charge, disburse এবং refund-এর মতো action থাকে Source 2সোর্স 2। শুধু Uber Pay-ই সারা বিশ্বে 50-এর বেশি payment method সামলায় Source 2সোর্স 2।
Key words
| Word | Plain meaning |
|---|---|
| Payment provider | A company that connects a business to card networks and banks |
| Token | A safe stand-in for a card number that works only for one business |
| Ledger | The record of balances for each account |
| Double-entry bookkeeping | Each credit has a matching debit, so the books always balance |
| Idempotency | Doing the same request twice has the same effect as doing it once |
| Queue | A durable line of messages that services read in order |
| Database | The system that stores data for the long term |
| Strong consistency | Every reader sees the newest write at once |
| Audit trail | A complete history that shows who changed what, and when |
What a tester can learn
Tutorial advice
These test ideas are the tutorial's own advice, not claims from the article or the Uber posts.
- No card data at rest. Search app storage, logs, and backend requests for card numbers or CVVs. Only tokens should appear.
- Duplicate requests. Send the same charge twice, or replay a queue message, and check that the rider pays one time.
- Timeouts and partial failures. Make a mocked provider time out, fail, or answer late. Check that retries stop at success and that the status is right.
- Zero-sum checks. For each test trip, add up all ledger entries and check that the total is exactly zero, including tips, refunds, and adjustments.
- Adjustments. Change a fare after the trip. Check that a new money order appears and the old one stays unchanged.
- Hot accounts. Load test many parallel writes to one business account and check that the final balance is correct.
সহজ English
These test ideas are the tutorial's own advice. They are not claims from the article or the Uber posts.
- No card data at rest. Search app storage, logs, and backend requests for card numbers or CVVs. You must find only tokens.
- Duplicate requests. Send the same charge two times, or replay a queue message. Make sure that the rider pays one time.
- Timeouts and partial failures. Make a mocked provider time out, fail, or answer late. Make sure that retries stop at success and that the status is correct.
- Zero-sum checks. For each test trip, add all the ledger entries. The total must be exactly zero, also with tips, refunds, and adjustments.
- Adjustments. Change a fare after the trip. A new money order must appear, and the old one must stay the same.
- Hot accounts. Load test many parallel writes to one business account. Make sure that the final balance is correct.
বাংলা ব্যাখ্যা
এই test idea-গুলো tutorial-এর নিজের পরামর্শ, article বা Uber post-এর দাবি নয়।
- Card data জমা থাকবে না: app storage, log এবং backend request-এ card number বা CVV খুঁজুন। শুধু token পাওয়া উচিত।
- Duplicate request: একই charge দুবার পাঠান, অথবা একটি queue message replay করুন। Check করুন যে rider একবারই টাকা দেন।
- Timeout এবং partial failure: একটি mocked provider-কে time out, fail, বা দেরিতে উত্তর দেওয়ান। Check করুন যে success হলে retry থেমে যায় এবং status সঠিক থাকে।
- Zero-sum check: প্রতিটি test trip-এর সব ledger entry যোগ করুন এবং check করুন যে যোগফল ঠিক শূন্য, tip, refund এবং adjustment সহ।
- Adjustment: trip-এর পরে fare বদলান। Check করুন যে একটি নতুন money order আসে এবং পুরনোটি অপরিবর্তিত থাকে।
- Hot account: একটি business account-এ অনেক parallel write দিয়ে load test করুন এবং check করুন যে শেষ balance সঠিক।