● The Problem
Seylan Bank needed a scalable platform to automatically categorize millions of customers into different profiles based on business rules, calculate benefits and charges dynamically, and provide comprehensive customer insights without requiring code changes for business rule modifications.
● The Solution
Built a modular, event-driven segmentation platform with rule-based engine, real-time event processing, automated data extraction from core banking systems, and comprehensive UI dashboards for customer management, segmentation control, and benefits administration.
● Project Impact
Enabled automated customer segmentation for millions of bank customers, reduced manual processing time by 90%, provided real-time customer insights through 360-degree views, and allowed business users to modify segmentation rules without developer intervention.
Seylan Bank Customer Segmentation & Rewards Platform
TL;DR: Led development of enterprise banking segmentation platform processing millions of customer events, achieving 90% code coverage and 90% reduction in manual processing time through automated rule-based segmentation, real-time event processing, and comprehensive customer management dashboards.
The Challenge
Seylan Bank required a sophisticated customer segmentation and rewards management system to handle millions of customer transactions and events daily. The platform needed to:
- Automatically categorize customers into different profiles (Retail, Corporate, Elite, Prime, etc.) based on complex business rules
- Process real-time events from multiple banking systems (Core Banking, ATM transactions, account activities)
- Calculate benefits and charges dynamically based on customer profiles and transaction history
- Provide 360-degree customer views for relationship managers and customer service teams
- Enable business users to modify segmentation rules without requiring code deployments
- Handle data extraction from legacy DB2 systems and modern MySQL databases
- Support quarterly and monthly segmentation processes with recovery mechanisms
- Generate reports and CSV files for core banking integration
The existing manual processes were time-consuming, error-prone, and couldn't scale to handle the bank's growing customer base and transaction volume.
The Solution
Architecture Design
Architectural Decisions
-
Modular Microservices Architecture: Separated concerns into independent modules (Event Submission, Segmentation Engine, Data Loader, Server API) allowing independent scaling and deployment.
-
Event-Driven Processing: Implemented asynchronous event processing pipeline enabling real-time customer profile updates without blocking the main transaction flow.
-
Rule-Based Engine: Integrated Drools rule engine allowing business users to modify segmentation rules through UI without code changes, reducing deployment cycles from weeks to hours.
-
Multi-Database Support: Designed abstraction layer supporting both legacy DB2 (AS400 iSeries) and modern MySQL databases, enabling gradual migration while maintaining backward compatibility.
-
GraphQL API Design: Chose GraphQL over REST for flexible data fetching, reducing over-fetching and enabling frontend teams to request exactly the data needed for each view.
Key Contributions & Problem Solutions
Feature Development
The Problem: Manual segmentation and lack of customer insights hindered marketing and support.
- Customer 360: Comprehensive dashboard showing all accounts, cards, and interactions.
- Result: Reduced customer lookup time by 75% for relationship managers.
- Extraction UI: React-based interface for business users to manage segmentation runs.
- Result: Empowered business users to operate independently without IT support.
- Benefits Engine: Automated calculation of complex multi-tier rewards and refunds.
- Result: Eliminated manual calculation errors and ensured timely benefit distribution.
Tech Stack
Impact & Results
Business Impact
- Operational Agility: Reduced segmentation processing from hours to minutes, enabling faster time-to-market for campaigns.
- Customer Experience: Real-time 360-degree views empowered agents to solve customer issues instantly.
- Cost Reduction: 90% reduction in manual processing costs through automation of stored procedures and reporting.
Technical Efficiency
- Performance: 70% reduction in query execution time ensured system stability under high load.
- Scalability: Modular microservices architecture allowed independent scaling of ingestion and reporting layers.
- Modernization: Migration to React/TypeScript and GraphQL significantly improved developer velocity and code maintainability.
Operational Excellence
- Reliability: Automatic recovery and retry mechanisms reduced manual support incidents by 90%.
- Data Integrity: Robust ID management and migration tools guaranteed zero data loss for millions of records.
Key Learnings
-
Event-Driven Architecture: Learned the importance of asynchronous processing for high-volume systems. Implementing event-driven patterns enabled the system to handle millions of events without blocking.
-
Database Optimization: Gained deep expertise in query optimization, indexing strategies, and batch processing. Understanding query execution plans and database internals was crucial for performance improvements.
-
Rule Engine Integration: Learned to design systems that allow business users to modify behavior without code changes. This required careful abstraction and configuration management.
-
Migration Strategies: Developed expertise in data migration, especially for customer ID systems. Learned the importance of history tracking, rollback capabilities, and gradual migration approaches.
-
Full-Stack Development: Gained experience in both backend (Java/Spring) and frontend (React/TypeScript) development, understanding how to design APIs that serve frontend needs efficiently.
-
Testing & Quality: Learned that high test coverage is not just about numbers but about having meaningful tests that catch real issues. Integration testing with Spring was particularly valuable.
My Role
Senior Software Engineer
hSenid Mobile Solutions
Technologies Used
Interested in this project?
Want to learn more about the technical architecture or discuss similar challenges?