P. 1
Distributed Architectures with Rack

Distributed Architectures with Rack

5.0

|Views: 92|Likes:
Publicado porSeñor Smiles

More info:

Categories:Types, Speeches
Published by: Señor Smiles on Jul 28, 2010
Direitos Autorais:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/12/2014

pdf

text

original

Distributed Systems with Rack

About Me

About Scribd

Participation!

$ gem install distributed_demo $ distributed_demo 10.99.255.232:9876 Your role: "something"

I suck at talking.

The Problem

So, what's the problem?

Advantages of Distribution

How do we make it faster?

Advantages of Distribution

Simplify the Code

Separation of Concerns

Advantages of Distribution

Availability

Availability

What is the failure rate?

Harvest vs. Yield

Yield is Overall Availability

Harvest measures the completeness of

Hopefully you're convinced.

Great, but how?

Demo time!

$ gem install distributed_demo $ distributed_demo 10.99.255.232:9876 Your role: "something"

<html> <body> <div id="foo"> <!--# block name="bar" --> Default content! <!--# endblock --> <!--# include virtual="/foo" stub="bar" --> </div> </body> </html>

SSI vs. ESI

<html> <body> <div id="foo"> <esi:try> <esi:attempt> <esi:include src="mysite.com/foo" /> </esi> <esi:except> Default content! </esi:except> </esi:try> </div> </body> </html>

<html> <body> <div id="foo"> <esi:try> <esi:attempt> <esi:include src="mysite.com/foo" alt="backup.mysite.com/foo" /> </esi> <esi:except> Default content! </esi:except> </esi:try> </div> </body> </html>

<html> <body> <div id="foo"> <!--# block name="default" --> Default content! <!--# endblock --> <!--# block name="backup" --> <!--# include virtual="/backup/foo" stub="default" --> <!--# endblock --> <!--# include virtual="/foo" stub="backup" --> </div> </body> </html>

class App def initialize @view = ERB.new(File.read('view.erb')) end def call(env) return [200, { 'Content-Type' => 'text/html' }, [@view.result(binding)]] end end

<html> <body> <div id="foo"> Actual content! </div> </body> </html>

<html> <body> <div id="foo"> Default content! </div> </body> </html>

To Summarize

Questions?

You're Reading a Free Preview

Descarregar
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->