Backend
Full-Stack
Enterprise Software
Banking Systems
hSenid Mobile Solutions

Seylan Bank Customer Segmentation & Rewards Platform

Enterprise-grade banking platform for customer segmentation, profile management, and automated benefits calculation with real-time event processing and comprehensive 360-degree customer views.

442
Commits Contributed
90%
Code Coverage
90%
Processing Time Reduction
Millions
Customer Profiles Managed
15+
Modules Developed

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

  1. Modular Microservices Architecture: Separated concerns into independent modules (Event Submission, Segmentation Engine, Data Loader, Server API) allowing independent scaling and deployment.

  2. Event-Driven Processing: Implemented asynchronous event processing pipeline enabling real-time customer profile updates without blocking the main transaction flow.

  3. 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.

  4. Multi-Database Support: Designed abstraction layer supporting both legacy DB2 (AS400 iSeries) and modern MySQL databases, enabling gradual migration while maintaining backward compatibility.

  5. 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

Java 13
Spring Boot
Spring Data JPA
Hibernate
React
TypeScript
GraphQL
Apollo Client
MySQL
DB2
Maven
Drools
Apache HTTP Client
JWT
CAS
SNMP
Logback
JUnit
Mockito

Impact & Results

Processing Time
Hours → Mins
Search Latency
< 1s
Manual Effort
-90%
Code Coverage
90%
Auth Overhead
-70%
Modules Built
15+

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

  1. 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.

  2. 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.

  3. Rule Engine Integration: Learned to design systems that allow business users to modify behavior without code changes. This required careful abstraction and configuration management.

  4. Migration Strategies: Developed expertise in data migration, especially for customer ID systems. Learned the importance of history tracking, rollback capabilities, and gradual migration approaches.

  5. 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.

  6. 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

Java 13
Spring Boot
React
TypeScript
GraphQL
MySQL
DB2
Maven
Drools
Hibernate
JPA
Apache HTTP Client
JWT
CAS

Interested in this project?

Want to learn more about the technical architecture or discuss similar challenges?