A lightweight mapping framework that maps data objects to a number of nodes, subject to constraints