Tolga Talks Tech is a weekly summer video series in which Onica’s CTO Tolga Tarhan tackles technical topics related to AWS and cloud computing. This week Tolga talks AWS Greengrass and AWS IoT Core with Onica’s VP of Cloud Native Development Amir Kashani. For more videos in this series, click here.
What is Greengrass?
When you say ‘at the edge,’ do I run AWS Greengrass on every device I produce?
No, the idea is that you have a slightly more powerful device, which is your AWS Greengrass Core and it’s composed of a group of other devices that might be lower power— your sensors, your actuators, the things that are actually doing stuff. The AWS Greengrass Core communicates with the other devices that are not the core itself and has the opportunity to do some analytics and processing at the edge. So, for example you can filter out data, aggregate it before communicating back up, as well as run logic and machine learning models on the edge.
How do you develop and deploy logic in AWS Greengrass?
Similar to how you do it in AWS proper, you do it with AWS Lambda. You develop with Lambda and there are mechanisms to deploy those Lambdas onto AWS Greengrass. It’s a very familiar programming model.
Does AWS Greengrass work offline as well?
It does. There’s no requirement to disconnect it and it can run all of this functionality within a local network effectively.
Is it possible to do machine learning with this through training models and Amazon SageMaker? How does Greengrass work into that equation?
When you’re training your models, you need really high horsepower machines. You do that within AWS, you train your models, then you refine them. Once they’re ready to go and turned on to actually do the inferences, you don’t need a lot of CPU and capabilities. You push those models down to your AWS Greengrass device and then you can do inferences on the data as it’s being captured from your sensors that are connected your AWS Greengrass Core right away.
If I’m doing inference at the edge, can I use that to decide when I’m going to transmit data to the cloud and what I’m going to process locally?
That’s one of the biggest benefits! As we’re getting more and more devices out there, more and more sensors are producing data and not all of that data is meaningful. You get the opportunity to do some inference, do some analytics at the edge, and decide when it is necessary to send the data up into the cloud to be further processed and stored.
Want to learn more about how IoT can accelerate your business?
Watch our on-demand webinar on Why AWS for IoT.