Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8232329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:47:54+00:00 2026-06-07T17:47:54+00:00

Web Dynos can handle HTTP Requests and while Web Dynos handles them Worker Dynos

  • 0

Web Dynos can handle HTTP Requests

and while Web Dynos handles them Worker Dynos can handle jobs from it.

But I don’t know how to make Web Dynos and Worker Dynos to communicate each other.

For example, I want to receive a HTTP request by Web Dynos

, send it to Worker Dynos

, process the job and send back result to Web Dynos

, show results on Web.

Is this possible in Node.js? (With RabbitMQ or Kue or etc)?

I could not find an example in Heroku Documentation

Or Should I implement all codes in Web Dynos and scaling Web Dynos only?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T17:47:56+00:00Added an answer on June 7, 2026 at 5:47 pm

    As the high-level article on background jobs and queuing suggests, your web dynos will need to communicate with your worker dynos via an intermediate mechanism (often a queue).

    To accomplish what it sounds like you’re hoping to do follow this general approach:

    • Web request is received by the web dyno
    • Web dyno adds a job to the queue
    • Worker dyno receives job off the queue
    • Worker dyno executes job, writing incremental progress to a shared component
    • Browser-side polling requests status of job from the web dyno
      • Web dyno queries shared component for progress of background job and sends state back to browser
    • Worker dyno completes execution of the job and marks it as complete in shared component
    • Browser-side polling requests status of job from the web dyno
      • Web dyno queries shared component for progress of background job and sends completed state back to browser

    As far as actual implementation goes I’m not too familiar with the best libraries in Node.js, but the components that glue this process together are available on Heroku as add-ons.

    Queue: AMQP is a well-supported queue protocol and the CloudAMQP add-on can serve as the message queue between your web and worker dynos.

    Shared state: You can use one of the Postgres add-ons to share the state of an job being processed or something more performant such as Memcache or Redis.

    So, to summarize, you must use an intermediate add-on component to communicate between dynos on Heroku. While this approach involves a little more engineering, the result is a properly-decoupled and scalable architecture.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Heroku can run Web Dynos and Worker Dynos so that Web Dynos take care
web.config: <customErrors mode=On defaultRedirect=~/Foo.aspx /> When Foo.aspx.cs is running, how can I know that
Web A is https while Web B is http only Which path is secure?
web.xml fragment <!-- Handles all requests into the application --> <servlet> <servlet-name>Spring MVC Dispatcher
I was curious as to what the difference between web and worker dynos is
Web services is a Service Oriented Architecture implementation. But, can we say that CORBA,
I'm using HireFireApp to autoscale my web and worker dynos on Heroku. However, when
I currently have an app deployed on Heroku which runs on two web dynos
Web.Config? Website properties? I'm looking for suggestions/best practices with reasons you recommend them.
web page : http://sideradesign.com/eco-art/gallery/ This code works fine in all brwosers except IE8 (haven't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.