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.
Who Rebalancer is for
Teams and individual developers working in AI Coding, Frontend and API.