Ph.D. Dissertation: Handling Resource Constraints and Scalability in Continuous Query Processing