O'Reilly logo

Getting Started with the Internet of Things by Cuno Pfister

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Server Versus Client? When to Push, When to Pull?

You may have asked yourself, “When should I program a device as a server, and when as a client?” Should you push samples to a server, as with the Pachube clients in Part II, or should you have clients pull samples from your device as a server, as in Part III? There is no hard and fast rule for this decision. There are good arguments for both approaches, and your particular situation usually determines which way the scales tip.

Making the device a client is an obvious choice if someone must be notified without any delay whenever the device detects some alarm condition. Making the device a server is an obvious choice if a user must be able to control an actuator, or the device’s configuration, without ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required