News for hackers. Stuff that matters.
Re:Running Rails on Heroku Update by wmf on Sunday March 17, 2013 @03:01PM (#5390519)
Why is a single app mapped to multiple routers? Why not just map it to one?
Re:Running Rails on Heroku Update by cpleppert on Sunday March 17, 2013 @03:16PM (#5390580)
Because you don't want to scale up just by adding more shards that consist of a single router. The distribution of the traffic to each shard isn't random, some applications are more popular than others. Additionally, you don't have any redundancy if a router goes down.
Re:Running Rails on Heroku Update by mixedbit on Sunday March 17, 2013 @03:13PM (#5390565)
Then you would need another level of HTTP routers that would route to this application specific router. Also the router becomes a single point of failure and possibly a bottleneck: if a backend returns large responses, all of them go through this single router.
Re:Running Rails on Heroku Update by wmf on Sunday March 17, 2013 @03:15PM (#5390571)
Or you could use DNS to map each app to its assigned router. (Of course, when I say "router" I mean at minimum a redundant active/passive pair.)
Re:Running Rails on Heroku Update by jfim on Sunday March 17, 2013 @03:18PM (#5390587)
What happens if your single router catches on fire?