In some examples, in a supply-and-demand system, e.g., a cloud computing environment or an electrical grid, a coordinator may collect resource consumption data from one or more consuming entities. Based on the collected resource consumption data, the coordinator may be configured to predict resource consumption requirement of each consuming entity in a subsequent time period. Further, in accordance with the prediction, the coordinator may allocate the resources to the consuming entities or recycle the resources currently consumed by the consuming entities.