Distributed Learning Under Resource Constraints