Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Clojure's core.async Library Can Make Using Async APIs in Java Suck Less

DZone's Guide to

Clojure's core.async Library Can Make Using Async APIs in Java Suck Less

· Java Zone ·
Free Resource

Verify, standardize, and correct the Big 4 + more– name, email, phone and global addresses – try our Data Quality APIs now at Melissa Developer Portal!

Callback hell isn't just a problem for JavaScript developers.  Java devs have to deal with it too when they're using asynchronous APIs.  Malcom Sparks has a tool that can help though... the Clojure core.async library.

To provide some background, I’m working on a client project which is sourcing MQTT (MQ Telemetry Transport) events from sensors and processing them with Storm. If you haven’t heard of MQTT, it’s the protocol driving the ‘Internet of Things’. For my test harness I’m publishing test messages using a Java-based MQTT API client-library, Eclipse Paho.

-- Malcom Sparks, MQTT in Clojure with the core.async library


Follow the link  to his blog for all the code snippets.

Developers! Quickly and easily gain access to the tools and information you need! Explore, test and combine our data quality APIs at Melissa Developer Portal – home to tools that save time and boost revenue. Our APIs verify, standardize, and correct the Big 4 + more – name, email, phone and global addresses – to ensure accurate delivery, prevent blacklisting and identify risks in real-time.

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}