Luke a Pro

Luke Sun

Developer & Marketer

đŸ‡ēđŸ‡Ļ
MEXAR Messaging microservice

MEXAR Messaging MSA

production

Jan 2024 — Dec 2025

MicroservicePythonFastAPISMSKafkaRemittance

Overview

The messaging microservice for MEXAR international remittance system. Provides both direct SMS sending and a VerifyNow API for OTP verification. Integrated with multiple SMS providers for automatic failover and cost optimization across different countries. Communicates with the core backend via Webhook and Kafka.

Tech Stack

  • Backend — Python/FastAPI
  • Message Queue — Kafka, RabbitMQ
  • Inter-service Communication — Webhook, Kafka

Key Capabilities

  • Direct SMS — Transactional SMS delivery for notifications and status updates
  • VerifyNow API — OTP generation, delivery, and verification via reference ID; consumer services never handle raw OTP codes, reducing security exposure
  • Multi-provider Failover — Automatic provider switching when a provider is down, ensuring delivery reliability
  • Cost Optimization — Multi-provider routing to leverage the lowest cost per country/region

Design Principles

  • Extensibility — Provider-agnostic abstraction layer allowing SMS gateway changes without core logic modifications
  • Security — OTP codes isolated within the messaging service; consumer services only interact via reference IDs
  • Idempotency — Guaranteed exactly-once message delivery through idempotent processing
  • Scalability — Asynchronous message processing via Kafka for high-throughput scenarios

Gallery

Related Projects

MEXAR Back Office dashboard

MEXAR Back Office

The back office dashboard for MEXAR international remittance system, managing operations, compliance, and transaction monitoring.

DashboardNext.jsMUITailwindCSS +1
MEXAR Backend

MEXAR Backend

The core backend API for MEXAR international remittance system, handling business logic, authentication, and service orchestration.

APIPHPLaravelPostgreSQL +3
MEXAR KYC microservice

MEXAR KYC MSA

The KYC (Know Your Customer) microservice for MEXAR, managing identity verification and compliance workflows.

MicroservicePythonFastAPIKYC +2
MEXAR Payment Gateway microservice

MEXAR Payment Gateway

The payment gateway microservice for MEXAR, handling inbound payment collection from remittance senders.

MicroservicePythonFastAPIPayment +2
MEXAR Payout Gateway microservice

MEXAR Payout Gateway

The payout gateway microservice for MEXAR, handling outbound disbursement to remittance recipients.

MicroservicePythonFastAPIPayout +2