As engineers, we often focus on technical challenges:
- How to process 10,000 TPS
- How to scale MySQL
- How to design a payment gateway
- How to reduce latency across regions
- How to build highly available distributed systems
But after exploring how Visa and other global payment networks operate, I realized there is another layer of complexity that many engineers underestimate:
Running a payment system globally can be harder than building it.
Because at scale, architecture is no longer constrained only by CPU, storage, network latency, or consistency.
It is also constrained by law.
The Question That Started This Exploration
The European Union has strict privacy regulations, such as GDPR.
At first glance, this raises an obvious question:
How can Visa, Mastercard, PayPal, Stripe, Adyen, and other global payment networks operate internationally if payment data naturally crosses borders?
A cardholder may be located in Germany.
A merchant may be located in France.
An acquiring bank may be located in the Netherlands.
The issuing bank may be located in Germany.
The payment network itself is global.
Cross-border data movement appears unavoidable.
So how does this work?
GDPR Does Not Ban Cross-Border Data Transfer
A common misconception is:
European data cannot leave Europe.
This is not true.
GDPR does not prohibit international transfers.
Instead, it requires organizations to demonstrate:
- Why is data transferred
- Who can access it
- How is it protected
- What legal mechanism permits the transfer
- How users can exercise their rights
The challenge is not the transfer itself.
The challenge is proving that the transfer is lawful, controlled, and auditable.
References
- GDPR Official Text (EU Regulation 2016/679)
- EDPB Recommendations on International Data Transfers
How Global Payment Networks Solve the Problem
Large payment networks typically combine several approaches:
Regional Processing
European transactions are primarily processed within European infrastructure.
For example:
EU Region
Frankfurt
Amsterdam
Paris
These regions may handle:
- Authorization
- Clearing
- Settlement
- Fraud analysis
- Customer data storage
This minimizes unnecessary movement of sensitive information.
Tokenization
One of the most important techniques is tokenization.
Instead of exposing the real PAN:
4111111111111111
Systems exchange:
TKN_XYZ123...
Visa Token Service was built specifically for this purpose.
Many downstream systems only see tokens rather than actual card numbers.
This significantly reduces compliance and security risk.
Reference
- Visa Token Service Documentation
Data Classification
Modern payment systems often separate data into layers.
Layer 1
Sensitive PII
----------------
PAN
Name
Address
Stay Local
Layer 2
Tokenized Payment Data
----------------
Transaction Reference
Payment Token
Risk Score
Controlled Cross-Border Transfer
Layer 3
Analytics Data
----------------
Success Rate
Fraud Rate
Volume Metrics
Global Sharing
Not all data has the same sensitivity.
The most sensitive information remains highly restricted.
The Travel Scenario
Consider a German cardholder traveling in New York.
Many engineers assume:
User Location = USA
Therefore Data = USA
In reality, payment systems care much more about:
Issuer Country
Merchant Country
Acquirer Country
Legal Entity
Currency
than:
IP Address Country
The transaction may still belong primarily to the European processing domain.
The cardholder’s physical location is only one signal among many.
GDPR Changed Distributed System Design
This is the part many engineers do not realize.
Before GDPR, a typical global architecture might look like:
US-East
↓
Global Database
↓
APAC
Europe
LATAM
Everything goes into one giant database.
Simple.
After GDPR and data residency requirements, architecture often evolves into:
Global Control Plane
|
-----------------------------------------
| | |
EU Region US Region APAC Region
(Data Plane) (Data Plane) (Data Plane)
Frankfurt Virginia Singapore
Now every region owns its own customer data.
This is where regulation begins to influence architecture.
Data Residency Creates Consistency Challenges
As engineers, we immediately hit a problem.
Imagine:
Cardholder = Germany
Merchant = France
Currency = EUR
Customer data resides in Europe.
Now a fraud team in New York wants to analyze:
Velocity checks
Fraud patterns
Cross-border attacks
Behavior models
Question:
Do we replicate the data?
If yes:
Potential GDPR risk
If no:
Global analytics become difficult
Suddenly, this is no longer a legal problem.
It becomes a distributed systems problem.
Local Strong Consistency, Global Eventual Consistency
Most global fintech architectures eventually converge toward:
Regional Strong Consistency
Global Eventual Consistency
For example:
EU Region
-----------
Authorization
Ledger
Settlement
Strong Consistency
Because money movement cannot tolerate divergence.
Meanwhile:
Global Fraud
Analytics
Business Intelligence
Machine Learning
consume replicated tokenized events asynchronously.
Typically through:
Kafka
CDC
Event Streaming
Data Lakes
Eventual consistency is acceptable.
Why Global Databases Alone Do Not Solve It
Some engineers may ask:
Why not simply use Spanner, CockroachDB, or Yugabyte?
Because the challenge is not only consistency.
The challenge is:
Legal Boundaries
Even if technology can replicate data globally:
EU → US
You may not be allowed to replicate certain fields.
The constraint is regulatory rather than technical.
A Modern Global Payment Architecture
A realistic architecture may look like:
Global Control Plane
Merchant Configuration
Routing Rules
Risk Policies
|
|
-----------------------------------------------------
EU Region US Region APAC Region
Ledger Ledger Ledger
Settlement Settlement Settlement
Vault Vault Vault
| | |
Token Events Token Events Token Events
-----------------------------------------------------
Global Fraud Platform
Global Analytics
Data Lake
Machine Learning
Notice:
The most sensitive information never leaves the region.
Only tokenized or aggregated information crosses regions.
PCI DSS vs GDPR
Many engineers confuse these two frameworks.
They are fundamentally different.
PCI DSS
PCI DSS is primarily a security framework.
Questions include:
Is PAN encrypted?
Is CVV stored?
Are logs masked?
Who can access cardholder data?
Are keys rotated?
Engineering teams are usually the primary participants.
Reference
- PCI DSS v4.0 Standard
GDPR
GDPR is primarily a governance framework.
Questions include:
Why do you collect this data?
Is it necessary?
How long do you keep it?
Who receives it?
Can the user request deletion?
Can you prove compliance?
Now, engineering is the only participant.
The discussion expands to:
- Legal
- Compliance
- Privacy
- Procurement
- Customer Service
- Security
- Management
The Accountability Principle
Perhaps the most important concept in GDPR is accountability.
The regulator does not need to prove you are non-compliant.
You must prove that you are compliant.
This means maintaining evidence continuously:
Data Inventory
DPIA
Retention Policies
Vendor Assessments
Transfer Impact Assessments
Incident Records
Access Control Evidence
Audit Trails
If evidence does not exist, compliance becomes difficult to demonstrate.
Reference
- EDPB Guidelines on Accountability
Accepting Regulation Means Continuous Supervision
When people hear “regulated company,” they often imagine:
Annual Audit
Pass
Done
Reality is very different.
Visa Europe publicly publishes PFMI self-assessments because it operates under ongoing oversight as a critical payment infrastructure.
Compliance is continuous.
Regular Reporting
Self-Assessments
Regulatory Reviews
Incident Notifications
Risk Management
Operational Resilience Testing
Audit Evidence
Remediation Tracking
This is not a once-a-year activity.
It becomes part of normal operations.
Reference
- Visa Europe PFMI Self-Assessment
- Bank of England Payment System Oversight
The Hidden Engineering Challenge
When engineers hear GDPR, they often think:
Legal Team Problem
But GDPR fundamentally changes:
- Data model design
- Multi-region architecture
- Replication strategy
- Event streaming design
- Retention policies
- Disaster recovery planning
- Audit logging
- Access control
In other words:
GDPR is not only a compliance framework.
It is a distributed systems constraint.
💡
When I first started building payment systems, I believed the hardest problems were technical:
- High throughput
- Reliability
- Distributed consistency
- Financial correctness
Those challenges are still difficult.
But after learning how global payment networks operate, I realized something interesting:
Building a payment system is engineering.
Operating a global payment system is engineering, law, privacy, security, governance, audit, and regulation combined.
Visa, Mastercard, Stripe, Adyen, and other global payment companies solved most of the technical problems years ago.
Today, one of their biggest challenges is ensuring that a global payment network can legally operate across dozens of jurisdictions while remaining secure, auditable, compliant, and resilient.
For Staff and Principal engineers, modern system design is no longer only about:
TPS
Kafka
Redis
MySQL
Sharding
It is also about:
Data Residency
Cross-Border Transfers
Tokenization
Auditability
Data Retention
Privacy by Design
Compliance by Design
Regional Consistency
Global Replication
That is a very different kind of system design.