Reputation: 1073
Would heroku support if my application has three web services out of which two of them are Java and third one is node.js?
Can we deploy more than one WAR in Heroku application?
Kindly let me know the details of deploying it over heroku.
Upvotes: 1
Views: 450
Reputation: 19983
That's kind of contrary to Heroku's design philosophy, which tends to separate out services between dynos. It would be ideal to use two or three Heroku apps to serve your application, separated by language or by web service.
From a technical standpoint, you can't do it with the default Heroku web dyno environment, since different software is loaded onto the dyno depending on whether the application is Java or node.js. An application that is detected as being java will not have the requisite binaries and libraries for node.js and vice versa.
However, there's technically nothing stopping you from crafting your own Heroku buildpack which includes all necessary software to run both Java and node.js simultaneously. You can take a look at Heroku's github account to see how they did their Java and their node.js buildpacks and merge the software somehow. This is a big project, since you'll have to use the Heroku buildpack build environment via Vulcan and dissect the build and app detection scripts for both buildpacks to merge them. But, there's no actual rule against it and there's no technical reason why you couldn't get it to work eventually.
Upvotes: 3