Resource Optimization of Stream Processing in Layered Internet of Things | IEEE Conference Publication | IEEE Xplore