Book Image

Build Applications with Meteor

Book Image

Build Applications with Meteor

Overview of this book

This book starts with the basic installation and overview of the main components in Meteor. You’ll get hands-on multiple versatile applications covering a wide range of topics from adding a front-end views with the hottest rendering technology React to implementing a microservices oriented architecture.All the code is written with ES6/7 which is the latest significantly improved JavaScript language. We’ll also look at real-time data streaming, server to server data exchange, responsive styles on the front-end, full-text search functionality, and integration of many third-party libraries and APIs using npm. By the end of the book, you’ll have the skills to quickly prototype and even launch your next app idea in a matter of days.
Table of Contents (16 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
8
Build a Chatbot with Facebook’s Messenger Platform

Building the apps


We can start from the embedded app, which will be very close to what we just did. Before we start writing the code, we need to figure out the data flow between the machines.See the following diagram:

You probably already noticed that the embedded devices are gRPC servers instead of clients and our middle app, the Gateway between the sensors and the cloud is a gRPC client and a server. The other way around is probably the easiest and the least complicated setup where all the sensors are clients that connect to one gRPC server (the Gateway). There is one reason this setup may not work in some cases and all depends on the IT rules and the infrastructure of the company.

For example, if this is a residential home with wired sensors to the home network, it makes perfect sense to have them as gRPC clients who connect directly to a Gateway machine or even directly to the cloud. In the enterprise often it is not that simple. Usually, these devices will be sitting behind a firewall...