DZone
IoT Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > IoT Zone > Simple, Composable Microservices: An IoT Example Using Raspberry Pi 2 and NATS.io

Simple, Composable Microservices: An IoT Example Using Raspberry Pi 2 and NATS.io

A look at a talk at a Bay Area Python Meetup using NATS, a messaging system for IoT applications.

Brian Flannery user avatar by
Brian Flannery
·
Mar. 17, 16 · IoT Zone · Tutorial
Like (3)
Save
Tweet
6.97K Views

Join the DZone community and get the full member experience.

Join For Free

Earlier this year, John Lockwood (a Senior Software Engineer at Workiva) gave a great lightning talk about NATS at a Bay Area Python Meetup.  

The simple, lightweight nature of NATS makes getting up and running with it and doing something useful extremely easy, so as NATS Community Manager I am fortunate to get to speak with many developers connecting things with NATS. John's blog post expanding on his lightning talk was excellent.

For those unfamiliar, NATS is lightweight, secure, and highly performant messaging system for moden cloud native and IoT applications. He does a great job explaining why NATS is perfectly suited for messaging use cases such as microservices transport, or for IoT device communication.

While the NATS server is written in Golang, there is client library support for approximately a dozen languages. In John's example, he is using txnats (a NATS python client using Twisted, compatible with PyPy and CPython 2.7 and 3), Raspberry Pi2, Sense Hat, and NATS for the communication.

The example also does a great job bringing out some of the more nuanced but powerful aspects of NATS (important for building scalable microservices or IoT architecures), such as how it auto-prunes the interest graph of subscribers, and how simple the protocol is (text-based).

If you are interested in learning more about Secure IoT Messaging using NATS, John will be giving another talk later this month at a meetup.

IoT raspberry pi microservice Nat (unit)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • How Does the Database Understand and Execute Your Query?
  • How Data and Analysis Can Power Agile Teams
  • Handling Sensitive Data: A Primer
  • How to Integrate Zoom in React Application?

Comments

IoT Partner Resources

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo