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 8139751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:55:58+00:00 2026-06-06T11:55:58+00:00

I have a unique set-up I am trying to determine if Heroku can accommodate.

  • 0

I have a unique set-up I am trying to determine if Heroku can accommodate. There is so much marketing around polygot applications, but only one example I can actually find!

My application consists of:

  1. A website written in Django
  2. A separate Java application, which takes files uploaded by users, parses them, and stores the data in a database
  3. A shared database accessible by both applications

Because these user-uploaded files can be enormous, I want the uploaded file to go directly to the Java application. My preferred architecture is:

  1. The Django-generated webpage displays the upload form.
  2. The form does an AJAX submit to the Java application
  3. The browser starts polling the database to see if the Java application has inserted the data
  4. Meanwhile the Java application does its thing w/ the user-uploaded file and updates the database when it’s done
  5. The Django webpage AJAX-refreshes a div with the results of the user upload once the polling mechanism sees that the upload is complete

The big issue I can’t figure out here is if I can get both the Django the Java apps either running on the same set of dynos or on different dynos but under the same domain to avoid AJAX cross-domain issues. Does Heroku support URL-level routing? For ex:

  1. Django application available at http://www.myawesomewebsite.com
  2. Java application available at http://www.myawesomewebsite.com/javaurl/

If this is not possible, does anyone have any ideas for work-arounds? I know I could have the user upload the file to Django and have Django send the request to Java from the server-side instead of the client side, but that’s an awful lot of passing around of enormous files.

Thanks so much!

  • 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-06T11:55:59+00:00Added an answer on June 6, 2026 at 11:55 am

    Heroku does not support the ability to route via the URL. Polyglot components should exist as their own subdomains and operate in a cross-domain fashion.

    As a side-note: Have you considered directly uploading to S3 instead of uploading to your app on Heroku which will then (presumably) upload to S3. If you’re dealing with cross-domain file uploads this is worth considering for its high level of scalability.

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

Sidebar

Related Questions

I have a set of unique elements (there are not two identical elements). And
I have a unique problem. There are two processes (P0 and P1) trying to
I'm trying to set a unique ID for a phone, but each time the
I have an SQL database with a set of tables that have Unique Id's.
Is MongoDB _id unique by default, or do I have to set it to
All Hadoop jobs have unique jobid. You can use jobid to get job status
I've got an app with three spinners, they have unique IDs and I'm trying
I have a unique situation that is hard to debug. I need to set
I'm trying to SELECT, and get a unique result set, from a MySQL database,
I'm trying to retrieve a unique set of category/sub-category relationships from a table and

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.