Rebalancer
What is Rebalancer?
Rebalancer is a domain-specific language and library designed for specifying and solving complex assignment problems, such as placing objects into containers under specific constraints. It provides a high-level API for defining objectives and supports multiple solving strategies, including local search and mixed-integer programming.
Rebalancer is an open-source framework developed by Meta to simplify the process of solving large-scale assignment problems. By providing an intuitive domain-specific language (DSL), it allows developers to define complex resource-allocation tasks—such as server load balancing or ML model placement—without needing to write low-level mathematical models from scratch. The library is built in C++ for high performance and multi-threaded execution, making it suitable for handling millions of objects and containers efficiently.
The framework offers flexibility in how problems are solved, supporting both heuristic-based local search for massive, time-sensitive problems and optimal mixed-integer programming (MIP) for smaller, precision-critical tasks. It integrates with industry-standard solvers like HiGHS, Gurobi, and FICO Xpress, and includes a visual debugging tool called Rebalancer Explorer to help users analyze and optimize their assignment strategies. Originally developed to manage hyperscale datacenter resources at Meta, Rebalancer is now available as an open-source tool for the broader engineering community.
Rebalancer is built by Meta and fits into the AI Coding, Frontend and API categories. It was released on Oct 6, 2026.
Rebalancer is free to use and open source, with the source code on GitHub. Teams typically use it for refactoring, component systems, API design and code review, with domain-specific use in Fintech, E-commerce, Media and Logistics.
Who Rebalancer is for
Teams and individual developers working in AI Coding, Frontend and API.