I built a prototype of a smart device that has the photon controlled via an amazon Alexa. The architecture is pretty standard Alexa -> ASK -> Lambda and then photon.
How would this architecture defer from when i want to scale in the cloud. So instead of having once smart device i want to mass produce thousands of them. I have identified the following steps.
- Design the PCB of the smart device using P1 for mass production.
- Scaling in the Cloud - I was a little confused about this one, right now my AWS Lambda is associated with one unit of particle photon via the device id and the access token. Lets say if i scale to a 1000 devices, does that mean i would need to have 1000 different lambda functions deployed with each individual device ID?
- Scaling the photon code. Does photon allow fleet management of devices? Like if i have a 1000 photons, and would like to deploy the same code on all devices, is that possible? Or would i manually need to flash the code in each photon?
Please include any other steps that are required for scaling, in case i missed any