Insights

Node Background Jobs: Async Processing for Async Language

1 min readPubNub Staff on Mar 3, 2015
Try PubNub Today

Free up to 1MM monthly messages. No credit card required.

Subscribe to our newsletter

By submitting this form, you are agreeing to our Terms and Conditions and Privacy Policy.

In this talk, Evan Tahler gives an overview of some of the many ways you can perform node background jobs, including examples and how node makes it better.

node.js background jobsNo matter what you web application does, it’s likely that you can get value from having a background processing framework.

With Node.js, there are a number of unique things we can do to handle jobs outside of the request cycle or get high parallelism from our singe event-loop thread.

“Everything is better in node, including the bad ideas” says Evan Tahler, Director of Technology at TaskRabbit.

Imagine someone comes to your website, they sign up, you write a record to the database, and now you need to respond with an email or 200. In this talk, speaker Evan Tahler presents this very situation and explores several strategies for executing this task, node background jobs, each of which use Node.js.

  • Possible Task Strategies
  • Foreground (in-line)
  • Parallel (threaded-ish)
  • Local Messages
  • Remote Messages
  • Remote Queues (Resque-ish)
  • Event Bus (Kafka-ish)

For each of these strategies, Evan discusses the pros and cons of implementation using Node.js, comparing Node.js to other languages and environments. He also shows how to avoid blocking web workers, save web server resources, increase communication speed for email and other network applications, and more.

About Evan Tahler

Evan Tahler is the Director or Technology for TaskRabbit. Evan is also the creator & maintainer of the actionhero.js, a Node.js framework. Evan was previously a Lead Ruby engineer at Modcloth, a BluRay software architect for Disney, and once founded a “dumb phone” game company.

More from PubNub

Can Empathy Exist in the Metaverse
News May 16, 20221 min read

Can Empathy Exist in the Metaverse

A roundtable discussion led by PubNub’s COO, Casey Clegg, exploring the topics of what it means to be human in a virtual world.

PubNub Staff

PubNub Staff

How to Advance Telehealth and Virtual Care Technologies
News May 2, 20221 min read

How to Advance Telehealth and Virtual Care Technologies

Dr. Joe Kvedar, Chair of the Board for the American Telemedicine Association, joins our COO, Casey Clegg, to discuss why...

PubNub Staff

PubNub Staff

Another Step Towards Data Security: ISO-27001 Implementation
BuildMay 2, 20221 min read

Another Step Towards Data Security: ISO-27001 Implementation

Today, we are glad to announce that we are currently in the process of implementing ISO-27001 security standards.

PubNub Staff

PubNub Staff