A sidecar object for the optimized communication between edge and cloud in internet of things applications