What happens when the fast-paced world of the web meets the resource limited world of distributed embedded systems? During our time putting the internet in the Philips Hue lightbulbs, we encountered interesting challenges. How do you create a cost-effective IoT architecture that scales? What changes when your product has both a local and a remote API, each with different capabilities? An architectural overview, war stories and passing on some key learnings.