Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Communication between Heroku apps

Tags:

heroku

I've build a distributed system consisting of several web-services and some web applications consuming them.

They are all hosted on Heroku.

Is there some way for request between these applications to be done "inside heroku" without going through the web.

Something analog to using localhost.

like image 472
dwaynemac Avatar asked Apr 11 '13 06:04

dwaynemac


People also ask

How does Heroku router work?

Heroku's HTTP routers distribute incoming requests for your application across your running web dynos. A random selection algorithm is used for HTTP request load balancing across web dynos - and this routing handles both HTTP and HTTPS traffic.

Does Heroku do load balancing?

Motivation. Heroku has built-in load balancer: Heroku's HTTP routers distribute incoming requests for your application across your running web dynos. So scaling an app's capacity to handle web traffic involves scaling the number of web dynos.


2 Answers

You are maybe in luck: such a feature has currently reached the experimental phase.

Let me take a moment to underscore that: this feature may disappear or change at any time. It's not supported, but bug reports are appreciated. Don't build a bank with it. Don't get yourself in a position to be incredibly sad if severe problems are found that render it unshippable and it's aborted.

However, it is still cool, and here it is: containerized-network

like image 61
fdr Avatar answered Sep 23 '22 01:09

fdr


You can use, for example, the pub-sub interface of any of the hosted Redis solutions. Or any of the message brokers (IronMQ, RabbitMQ) to pass messages.

like image 40
Nitzan Shaked Avatar answered Sep 22 '22 01:09

Nitzan Shaked