Skip to main document
[DOSSIER 03] · CROSS-BORDER & B2B PLATFORMS · 2022 – 2024
PRODUCTION SHIPPED · SMALL WORLD & DASTGYR

Fintech & B2B Platforms — High Stakes Systems

"Decomposing legacy monoliths, automating compliance masking, and scaling regional delivery across regulated corridors."

System Metric Engineering Scope Architecture Layer
Organizations Small World Financial Services (Fintech) · Dastgyr Technologies (B2B Trade) Cross-border & marketplace
Core Stack Node.js, TypeScript, PostgreSQL, Serverless Lambdas, Microservices, React, Angular Distributed enterprise
Security Scope Serverless real-time chat PII regex tokenization; financial ledger audit logging Regulatory compliance
Team Leadership Architecture code reviews and TypeScript engineering standards across 8 engineers Best-practice gate

01 // Context: High-Value Cross-Border Remittances & B2B Logistics

SEC. 01

Across 2022 to 2024, I contributed to two high-stakes engineering environments where software bugs had direct legal and balance-sheet consequences:

At Small World Financial Services, a global money transfer enterprise processing high-volume international remittances, a decade-old legacy monolith was throttling release frequency and complicating multi-corridor regulatory compliance. Launching a new regional corridor required coordinated deployments across multiple teams with hours of downtime risk.

At Dastgyr Technologies, an emerging-market B2B marketplace connecting tens of thousands of retailers with suppliers, merchants were transacting millions in freight. Two operational vulnerabilities threatened business sustainability: direct supplier-retailer disintermediation via in-app chat (exposing both parties to fraud), and manual, slow payment dispute resolutions for damaged deliveries.

Fintech Invariant: In cross-border remittances, compliance errors can lead to immediate operational license revocation. Decoupling services cannot compromise settlement accuracy or transaction traceability.

02 // Constraints: Strict Financial Auditing & Zero Chat Latency

SEC. 02

Operating across regulated banking corridors and high-velocity marketplace transactions imposed stringent constraints:

Constraint Technical Boundary Compliance Mandate
Zero-Downtime Migration Monolith cutover must maintain continuous live payment clearing without service outages. Financial service uptime SLA
Sub-50ms Chat PII Mask Regex tokenization of phone numbers and bank coordinates must not degrade real-time chat UX. Customer retention & privacy
Centralized i18n Rules Translation keys and legal disclosures must be dynamically versioned per remittance corridor. Financial regulatory disclosures
Immutable Dispute Audit Photographic evidence and ledger holds require deterministic state transitions. Commercial dispute arbitration

03 // Decisions: Domain-Driven Decomposition & Serverless Privacy Filters

SEC. 03

Key architectural decisions across both environments prioritized domain separation and low-overhead automation:

FIGURE 3.0 // DUAL ARCHITECTURE: CORRIDOR ROUTING & PII TOKENIZATION ENVIRONMENT: AWS LAMBDA & KAFKA
SMALL WORLD // CORRIDOR ROUTING LEGACY MONOLITH (MIGRATION SEAM) I18N SERVICE Corridor Disclosures PAYMENT REMOTES Micro-Frontends POSTGRESQL MULTI-CURRENCY LEDGER DASTGYR // REAL-TIME PRIVACY & DISPUTES IN-APP CHAT INGRESS (BUYER/SELLER) SERVERLESS REGEX PII MASKING LAMBDA Phone, Bank Account & Cash Patterns Masked Sub-50ms SANITIZED CHAT STORE & AUDIT LOGS
Figure 3.0: Left: Modular corridor localization service and micro-frontends decoupling payment logic from the legacy monolith. Right: Low-latency serverless PII regex pipeline sanitizing in-app chat payloads before database persistence.
  • Centralized i18n Translation Platform: Built a unified translation and regional disclosure service that decoupled localization from frontend deployments, reducing the rollout cycle for new country remittance corridors from weeks to days.
  • Serverless Chat PII Masking: Deployed a lightweight AWS Lambda filter sitting between in-app WebSocket messages and database writes, executing pattern tokenization to redact phone numbers and private transaction handles in under 45 milliseconds.
  • Payment Dispute Management Workflows: Created an audited state machine allowing field delivery agents and retail buyers to submit photographic evidence of damaged inventory and place temporary credit ledger holds without human intervention.
  • Dynamic Internal Survey Engine: Designed a survey engine featuring recursive question branching logic and gamification rewards, streaming field agent observations directly into PostgreSQL analytics for automated business intelligence.
Privacy vs. Latency Tradeoff: Full natural-language parsing would introduce 300ms+ latency into real-time merchant messaging. We opted for a tuned deterministic regex finite-state tokenizer that runs in under 45ms, achieving zero noticeable typing lag while capturing 100% of contact patterns.

04 // Failure Modes: Data Leakage, Dispute Deadlocks & Schema Drift

SEC. 04

Handling money transfers and marketplace logistics exposes edge-case failure states across teams and third-party networks:

Hazard Scenario System Impact Engineered Mitigation & Resolution
Obfuscated Contact Patterns Users attempt to bypass PII filters by spelling out digits (e.g. 'zero-three-zero-zero'). Enhanced tokenization rules with phonetic phonetic letter-number substitution maps and space-normalized lookups.
Monolith Contract Divergence Shared database changes break newly deployed microservices without warning. Enforced strict API contract tests and anti-corruption layers, isolating microservice boundaries from direct monolith table queries.
Conflicting Dispute Claims Supplier claims delivery complete while buyer claims damaged inventory. Dispute engine requires cryptographic EXIF timestamp validation on delivery driver photos before releasing escrow credit ledger balances.
Multi-Corridor Disclosure Skew Outdated legal disclosures presented to European senders during regulatory changes. Dynamic i18n server injects compliance disclosures into payment payloads at runtime, audited by country corridor keys.

05 // Outcome: Operational Stability & Standards Leadership

SEC. 05

Both initiatives delivered quantifiable business stability and compliance security without service disruption:

Core Team 8 Engineers code-reviewed
Localization Multi Regional translation engine
PII Protection 100% Serverless regex tokenization
Dispute Engine B2B Automated audit trail
Cutover Risk 0 Downtime during microservices

Beyond feature delivery, I conducted systematic code reviews across an 8-member core engineering team, establishing rigorous TypeScript typing, error boundary protocols, and shared testing conventions that eliminated recurring regression defects.