Configurable ranking
Weights and enabled rules live in the database, so business priorities can change without rewriting the scoring engine.
A full-stack performance intelligence system that ranks real-estate brokers using transparent, configurable business rules.
Broker performance cannot be represented fairly by a single number such as sales value. The system needed to combine lead volume, conversion, sales, response time and activity while keeping the result understandable and adaptable when business priorities change.
I designed a relational data model around brokers, leads, sales and activities, then separated statistics collection from the ranking engine. Each enabled rule contributes a weighted score and an explicit breakdown, allowing an API consumer to see not only who ranks highest, but why.
Weights and enabled rules live in the database, so business priorities can change without rewriting the scoring engine.
DTO validation, domain errors and a global handler keep 400, 404, 409 and unexpected failures consistent across endpoints.
Repository queries aggregate only the statistics required for rankings, with indexed relationships and filters for leaderboard periods.
Every ranking response contains a per-rule breakdown rather than exposing an unexplained total score.
Interested in how I approach product and engineering problems?
Let’s talk →