Re: [rails-oceania] Re: Amazon Sydney EC2 Latency

2012-11-14 Thread Bruce Wang
On Wed, Nov 14, 2012 at 8:02 PM, James Healy  wrote:

>
> An alternative would be to host a nginx/varnish/something proxy on EC2
> in Australia that maintains a keep alive HTTP connection to the
> upstream app servers in the US.
>
>
> This sounds like what CloudFront does, and Sydney already has a edge
location.
see
http://aws.typepad.com/aws/2012/05/amazon-cloudfront-support-for-dynamic-content.html

Cheers,
Bruce

-- 
simple is good
http://brucewang.net
http://twitter.com/number5

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Railscamp tomorrow - still need a projector

2012-11-14 Thread Warren Seen
And when it rains, it pours :) Thanks Adam, we have two projectors coming, so 
you don't need to worry now. Really appreciate the offer though.

On 15/11/2012, at 3:00 PM, Adam McNeil  wrote:

> I can bring a small Dell M110 which will work for relatively low light 
> conditions if no one has anything better?
> 
> 
> On 15 November 2012 14:02, Tim McEwan  wrote:
> At Byron, a few camps ago, we hired one locally. Is that an option?
> 
> 
> On 15/11/2012, at 13:21, Warren Seen  wrote:
> 
> > Hey all,
> >
> > Just wondering if any of you coming to Railscamp tomorrow are able to bring 
> > a projector? Or if you know someone coming and are able to send one down 
> > with them for the weekend?
> >
> > I've asked a couple of times, and had no response so far :(
> >
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Ruby or Rails Oceania" group.
> > To post to this group, send email to rails-oceania@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > rails-oceania+unsubscr...@googlegroups.com.
> > For more options, visit this group at 
> > http://groups.google.com/group/rails-oceania?hl=en.
> >
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to 
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rails-oceania?hl=en.
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to 
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rails-oceania?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Railscamp tomorrow - still need a projector

2012-11-14 Thread Warren Seen
That would be fantastic, and much appreciated Luke. Thanks heaps.

Thanks also to the guys at Inspire9, who've agreed to bring one along as well.

I think we can call this one: case closed! 

On 15/11/2012, at 2:56 PM, Luke Chadwick  wrote:

> realestate.com.au can supply one. I've got it under my desk ready now.
> 
> - Luke
> 
> -- 
> Senior Developer / DevOp - realestate.com.au
> email: luke.a.chadw...@gmail.com
> phone: +61402203606
> twitter: @vertis
> 
> On 15 November 2012 14:02, Tim McEwan  wrote:
> At Byron, a few camps ago, we hired one locally. Is that an option?
> 
> 
> On 15/11/2012, at 13:21, Warren Seen  wrote:
> 
> > Hey all,
> >
> > Just wondering if any of you coming to Railscamp tomorrow are able to bring 
> > a projector? Or if you know someone coming and are able to send one down 
> > with them for the weekend?
> >
> > I've asked a couple of times, and had no response so far :(
> >
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Ruby or Rails Oceania" group.
> > To post to this group, send email to rails-oceania@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > rails-oceania+unsubscr...@googlegroups.com.
> > For more options, visit this group at 
> > http://groups.google.com/group/rails-oceania?hl=en.
> >
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to 
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rails-oceania?hl=en.
> 
> 
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to 
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rails-oceania?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Railscamp tomorrow - still need a projector

2012-11-14 Thread Adam McNeil
I can bring a small Dell M110 which will work for relatively low light
conditions if no one has anything better?


On 15 November 2012 14:02, Tim McEwan  wrote:

> At Byron, a few camps ago, we hired one locally. Is that an option?
>
>
> On 15/11/2012, at 13:21, Warren Seen  wrote:
>
> > Hey all,
> >
> > Just wondering if any of you coming to Railscamp tomorrow are able to
> bring a projector? Or if you know someone coming and are able to send one
> down with them for the weekend?
> >
> > I've asked a couple of times, and had no response so far :(
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Ruby or Rails Oceania" group.
> > To post to this group, send email to rails-oceania@googlegroups.com.
> > To unsubscribe from this group, send email to
> rails-oceania+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Railscamp tomorrow - still need a projector

2012-11-14 Thread Tim McEwan
At Byron, a few camps ago, we hired one locally. Is that an option?


On 15/11/2012, at 13:21, Warren Seen  wrote:

> Hey all,
> 
> Just wondering if any of you coming to Railscamp tomorrow are able to bring a 
> projector? Or if you know someone coming and are able to send one down with 
> them for the weekend?
> 
> I've asked a couple of times, and had no response so far :(
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to 
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rails-oceania?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



[rails-oceania] Railscamp tomorrow - still need a projector

2012-11-14 Thread Warren Seen
Hey all,

Just wondering if any of you coming to Railscamp tomorrow are able to bring a 
projector? Or if you know someone coming and are able to send one down with 
them for the weekend?

I've asked a couple of times, and had no response so far :(

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Re: Amazon Sydney EC2 Latency

2012-11-14 Thread Simon Russell
I think it's $200, but yes, it's not something you're going to use
everywhere...


On Thu, Nov 15, 2012 at 10:14 AM, Jak Charlton wrote:

> Apparently it costs around $800 per month per website
>
>
> On Thu, Nov 15, 2012 at 10:07 AM, Simon Russell wrote:
>
>> > An alternative would be to host a nginx/varnish/something proxy on EC2
>> > in Australia that maintains a keep alive HTTP connection to the
>> > upstream app servers in the US.
>>
>> This reminded me of:
>> https://www.cloudflare.com/railgun
>>
>> Which I'd been meaning to find out more about; anyone tried it?  Seems
>> like an interesting idea.
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby or Rails Oceania" group.
>> To post to this group, send email to rails-oceania@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rails-oceania+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/rails-oceania?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Injured man Railscamp ticket available

2012-11-14 Thread Mike Bailey
I want it

Sent from my iPhone

On 15/11/2012, at 10:32 AM, Charles Dale  wrote:

> Hi guys,
>
> I rolled my ankle on Monday and it's taking a while to improve. Not looking 
> forward to hobbling around Railscamp - let me know if you'd like my ticket.
>
> Cheers,
> Chuck
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to 
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rails-oceania?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



[rails-oceania] Injured man Railscamp ticket available

2012-11-14 Thread Charles Dale
Hi guys,

I rolled my ankle on Monday and it's taking a while to improve. Not looking 
forward to hobbling around Railscamp - let me know if you'd like my ticket.

Cheers,
Chuck

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Re: Amazon Sydney EC2 Latency

2012-11-14 Thread Jak Charlton
Apparently it costs around $800 per month per website


On Thu, Nov 15, 2012 at 10:07 AM, Simon Russell wrote:

> > An alternative would be to host a nginx/varnish/something proxy on EC2
> > in Australia that maintains a keep alive HTTP connection to the
> > upstream app servers in the US.
>
> This reminded me of:
> https://www.cloudflare.com/railgun
>
> Which I'd been meaning to find out more about; anyone tried it?  Seems
> like an interesting idea.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Re: Amazon Sydney EC2 Latency

2012-11-14 Thread Simon Russell
> An alternative would be to host a nginx/varnish/something proxy on EC2
> in Australia that maintains a keep alive HTTP connection to the
> upstream app servers in the US.

This reminded me of:
https://www.cloudflare.com/railgun

Which I'd been meaning to find out more about; anyone tried it?  Seems like
an interesting idea.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Re: Fake implementation of API library at runtime (development mode)

2012-11-14 Thread Simon Russell
The not using Rails.env.development? call is certainly a good idea, I
usually use a config yaml file, rather than the config/environment things
(that way I can configure it in production with capistrano or chef,
depending on need).


On Thu, Nov 15, 2012 at 8:04 AM, jamesl  wrote:

> Did this sort of thing yesterday, adding to config/initializers to setup
> the default provider and then in
> config/environments overriding as necessary.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rails-oceania/-/xwx705wwVw0J.
>
> To post to this group, send email to rails-oceania@googlegroups.com.
> To unsubscribe from this group, send email to
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Re: [OT] Railscamp Tassie and boardgames

2012-11-14 Thread Gabe Hollombe
I'd love to try Pandemic

On Wednesday, November 14, 2012 1:17:49 AM UTC+11, Daryl wrote:
>
> Pandemic is great. I *totally* distracted my entire dysfunctional family 
> over Xmas getting us to play that cooperatively. Love the mechanics of how 
> well it plays (and the math is pretty interesting too). Tried to build 
> something similar off of it, but bit of an abandoned project now. 
>
> (my friend loves FLuxx... if you've got the "zombie fluxx" extension, it's 
> pretty good.).
>
> D
>
>
> On Tue, Nov 13, 2012 at 5:59 PM, Louis Simoneau 
> 
> > wrote:
>
>> On Mon, Nov 12, 2012 at 10:58 PM, Daryl Manning 
>> 
>> > wrote:
>>
>>> Dominion and settlers would be most welcome. Both ones I want to play.
>>>
>>> I had Pandemic but it's back in Canada at mo. Interesting game tho. Hard 
>>> to beat even cooperatively.
>>>
>>
>> I have a copy of Pandemic, will bring that along. Also Fluxx, and a few 
>> other card games. I've been keen to try Dominion for awhile now, if anyone 
>> finds a copy to bring along :)
>>  
>>
>>>
>>> Anyone got Zombies: Last Night on Earth? I've heard good things...
>>>
>>> D
>>>
>>>
>>> On Mon, Nov 12, 2012 at 10:14 PM, Daniel 
>>> > wrote:
>>>
 I can bring a few things. Anything that's won Spiel des 
 Jahresis usually a good bet 
 (Settlers, Dominion etc).


 On Monday, November 12, 2012 6:50:47 PM UTC+11, Daryl wrote:
>
> One of the things I really love about Railscamp evenings is the fact 
> that more than a few game geeks drag some of their faves along to play in 
> the evenings. It's where I discovered Werewolf with which I now have a 
> deeply unhealthy relationship (and encourage you to play if you've never 
> done so before...).
>
> So, just wondering if people are thinking of bringing some interesting 
> boardgames along this time (Cataan, G Annihilation, Zombies: LNOE etc)? 
> Anything @DefectiveYeti has ever endorsed really is probably something 
> I'd 
> be interested in playing if you're on the fence about throwing something 
> in 
> your luggage.
>
> I'm  planning on bringing my poker set since I've already been called 
> out so if people are interested in a single table tourney like last time 
> I'll be running one so just trying to gauge interest  (... we'll need 
> someone to bring another set if we want say, a two table tourney etc). 
>
> And I'll have a werewolf pack with me... As I'm sure will many 
> others... (@pat, @ryanbigg etc). I imagine Durak will also be in full 
> swing 
> if you want to give a hand at that.
>
> ciao !
> Daryl
>
>  -- 
 You received this message because you are subscribed to the Google 
 Groups "Ruby or Rails Oceania" group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/rails-oceania/-/sh8dc46aOu0J.

 To post to this group, send email to 
 rails-...@googlegroups.com
 .
 To unsubscribe from this group, send email to 
 rails-oceani...@googlegroups.com .
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.

>>>
>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Ruby or Rails Oceania" group.
>>> To post to this group, send email to rails-...@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to 
>>> rails-oceani...@googlegroups.com .
>>> For more options, visit this group at 
>>> http://groups.google.com/group/rails-oceania?hl=en.
>>>
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Ruby or Rails Oceania" group.
>> To post to this group, send email to rails-...@googlegroups.com
>> .
>> To unsubscribe from this group, send email to 
>> rails-oceani...@googlegroups.com .
>> For more options, visit this group at 
>> http://groups.google.com/group/rails-oceania?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rails-oceania/-/xFaKxcYl51IJ.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Re: Amazon Sydney EC2 Latency

2012-11-14 Thread Daniel
+1 for having frontside cache servers in multiple regions.

As long as you have reasonably cacheable content it can be a pretty 
substantial speed improvement.

On Wednesday, November 14, 2012 8:02:50 PM UTC+11, James Healy wrote:
>
> On 14 November 2012 09:52, John Dalton > 
> wrote: 
> > Having an app hosted in Sydney talking to a DB server in the USA will 
> > be much slower than having both servers in the USA - this is because 
> > your app will typically make multiple DB calls per request, so you're 
> > multiplying the delay rather than reducing it. 
>
> An alternative would be to host a nginx/varnish/something proxy on EC2 
> in Australia that maintains a keep alive HTTP connection to the 
> upstream app servers in the US. 
>
> Users will have low latency to the local caching server, and despite 
> all requests still tromboning to the US and back, the response time 
> will be faster because the user avoids the multi-RTT TCP handshake 
> across the pacific. 
>
> I guess the trick is deciding whether the speed improvements are worth 
> the extra complexity in the architecture. 
>
> James 
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rails-oceania/-/zR45uNGp0QMJ.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



[rails-oceania] Re: Fake implementation of API library at runtime (development mode)

2012-11-14 Thread jamesl
Did this sort of thing yesterday, adding to config/initializers to setup 
the default provider and then in 
config/environments overriding as necessary.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rails-oceania/-/xwx705wwVw0J.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Fake implementation of API library at runtime (development mode)

2012-11-14 Thread Jon Rowe
Not overly relevant but I like how OmniAuth allows you to put it into test mode 
so it will return fake data rather than hitting providers. Very useful in 
development mode!

Also I tend to configure my APIs on a per environment basis, and have those 
settings in the relevant environment/#{env}.rb file. I find this to be a lot 
more flexible/cleaner than littering code with Rails.env.environment? calls. 

Jon Rowe
-
m...@jonrowe.co.uk
jonrowe.co.uk


On Wednesday, 14 November 2012 at 00:37, Sebastian Porto wrote:

> I think DI is a nice way to go. Combined with some constants in an 
> initializer.
> 
> class PurchaseProduct
> def buy_it_now
> acme = acme_provider.new(subscriber)
> result = acme.pay_money
> end
> 
> def acme_provider
> @acme_provider ||= ACME_PROVIDER
> end
> 
> def acme_provider=(obj)
> @acme_provider = obj
> end
> end
>  
> 
> if Rails.env.development?
> ACME_PROVIDER  = FakeAcme
> else
> ACME_PROVIDER  = Acme
> end
> 
> 
> It is also very easy to swap the dependency in the test:
> 
> pp = PurchaseProduct.new
> pp.acme_provider = FakeAcme
> 
> 
> Sebastian
> 
> 
> 
> 
> Steve Hoeksema wrote:
> > class PurchaseProduct(acme_provider)
> >   def buy_it_now
> > acme = acme_provider.new(subscriber)
> > result = acme.pay_money
> >   end
> > end
> > 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-oceania@googlegroups.com 
> (mailto:rails-oceania@googlegroups.com).
> To unsubscribe from this group, send email to 
> rails-oceania+unsubscr...@googlegroups.com 
> (mailto:rails-oceania+unsubscr...@googlegroups.com).
> For more options, visit this group at 
> http://groups.google.com/group/rails-oceania?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Re: Amazon Sydney EC2 Latency

2012-11-14 Thread James Healy
On 14 November 2012 09:52, John Dalton  wrote:
> Having an app hosted in Sydney talking to a DB server in the USA will
> be much slower than having both servers in the USA - this is because
> your app will typically make multiple DB calls per request, so you're
> multiplying the delay rather than reducing it.

An alternative would be to host a nginx/varnish/something proxy on EC2
in Australia that maintains a keep alive HTTP connection to the
upstream app servers in the US.

Users will have low latency to the local caching server, and despite
all requests still tromboning to the US and back, the response time
will be faster because the user avoids the multi-RTT TCP handshake
across the pacific.

I guess the trick is deciding whether the speed improvements are worth
the extra complexity in the architecture.

James

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Re: Amazon Sydney EC2 Latency

2012-11-14 Thread John Dalton
On Wed, Nov 14, 2012 at 4:15 PM, Jason Kotchoff
 wrote:
>
> Does anyone know whether there might be any heroku plans to be able to
> choose a data center for a heroku app?

Can't say anything for Heroku, but Engine Yard will have Sydney as an
option very soon.

> ie. would regional servers (eg. an australian, a european, an asian mongrel
> instance etc.) even achieve time savings for server-side rails code if they
> need to talk to a central once-off database (eg. in the USA)..  Or would
> this make sense with master-slave database servers..

Having an app hosted in Sydney talking to a DB server in the USA will
be much slower than having both servers in the USA - this is because
your app will typically make multiple DB calls per request, so you're
multiplying the delay rather than reducing it.

That said, with smart caching and local DB read slave[s] a read-heavy
app might work out with this approach. Your writes back to a central
DB will still be slow, and your local read slave will be much more
susceptible to replication lag - however for some apps this isn't much
of a problem.  It really depends on the app, and is something you'd
have to test!

-- 
http://johndalton.info
http://www.linkedin.com/in/johnrdalton

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.