Handling Resource Constraints and Scalability in Continuous Query Processing