ATLAS-OPS is a backend application built using FastAPI, PostgreSQL, Redis, and Docker to simulate end-to-end payment transaction workflows. The platform demonstrates concepts such as transaction processing, fraud detection, payment gateway routing, idempotency handling, and transaction status tracking.
- Process payment transactions through REST APIs
- Track transaction status and payment outcomes
- Prevent duplicate transaction processing using Redis-based idempotency handling
- Perform fraud detection before transaction execution
- Evaluate payment gateway health for routing decisions
- Redirect transactions to alternative gateways when the primary gateway is unavailable
- Generate AI-powered explanations for failed transactions
- Store transaction data using PostgreSQL
- Containerized development environment using Docker
- User submits a payment transaction.
- System generates and validates an idempotency key.
- Redis checks whether the transaction has already been processed.
- Fraud detection module evaluates the transaction.
- Gateway health evaluation determines the most suitable gateway.
- Transaction is routed for processing.
- If the selected gateway is unavailable, fallback routing is performed.
- Transaction status is stored in PostgreSQL.
- If the transaction fails, an AI-generated explanation is returned.
- FastAPI
- Python
- PostgreSQL
- Redis
- Docker
- Scikit-learn
- Gemini API
POST /transactionsCreates a new payment transaction.
GET /transactions/{transaction_id}Returns the current status of a transaction.
GET /gateways/healthReturns gateway availability information.
GET /transactions/{transaction_id}/explanationReturns an AI-generated explanation for failed transactions.
PostgreSQL is used to store:
- Transaction records
- Payment status information
- Gateway details
- Fraud detection results
Redis is used for idempotency handling.
When a transaction request is received:
- A unique idempotency key is generated.
- Redis stores the processed request.
- Repeated requests with the same key return the previous result.
- Duplicate transaction execution is prevented.
- Python 3.10+
- PostgreSQL
- Redis
- Docker (optional)
git clone https://github.com/tailormst/Atlas_OPS.git
cd Atlas_OPSpip install -r requirements.txtCreate a .env file and add:
DATABASE_URL=
REDIS_URL=
GEMINI_API_KEY=uvicorn app.main:app --reloadApplication runs at:
http://localhost:8000
Through this project, I gained practical experience with:
- FastAPI backend development
- REST API design
- PostgreSQL database integration
- Redis caching and idempotency handling
- Payment workflow simulation
- Fraud detection concepts
- Payment gateway routing
- Docker-based development workflows
- Integration with real payment gateways
- Authentication and authorization
- Monitoring dashboards
- Advanced fraud detection models
- Transaction analytics and reporting
Mohammed Saifuddin Tailor
GitHub: https://github.com/tailormst