We have just launched a Play 2 website

閲覧: 1,178 回
最初の未読メッセージにスキップ

Grant

未読、
2012/11/26 9:43:462012/11/26
To: play-fr...@googlegroups.com
Hi all

I mentioned a while back we were re-doing our mobile site in Play 2 (scala + default templating), well we just launched...

http://m.guardian.co.uk (best on mobile devices)



Grant
メッセージは削除されました

Guillaume Bort

未読、
2012/11/26 17:18:462012/11/26
To: play-fr...@googlegroups.com
Thanks Grant; it's a really nice website!
--
 
 

Eric Jain

未読、
2012/11/26 21:02:222012/11/26
To: play-fr...@googlegroups.com

Choon Kee

未読、
2012/11/26 21:06:102012/11/26
To: play-fr...@googlegroups.com、play-fr...@googlegroups.com
Nice!!! :) 

--
 
 

James Roper

未読、
2012/11/27 0:17:252012/11/27
To: play-fr...@googlegroups.com
This is great, the site loads very fast on my android.

Sean Brady

未読、
2012/11/27 0:21:142012/11/27
To: <play-framework@googlegroups.com>
Agree!  @Grant -- anything you can share about your deployment architecture and scaling challenges/solutions would be awesome!

On Nov 26, 2012, at 9:17 PM, James Roper <jro...@gmail.com>
 wrote:

--
 
 

Grant Klopper

未読、
2012/11/27 11:10:212012/11/27
To: play-fr...@googlegroups.com
Hi

Firstly thanks for all the positive feedback.

I should have mentioned our code is up on GitHub so feel free to take a look. https://github.com/guardian/frontend (also, yes, we wrote the asset hash)

The architecture is pretty simple....

The different types of things you see (such as an article or a video) are Play apps that runs on separate clusters (simple EC2 instances in auto scaling groups) and we route to these via an Nginx cluster (again EC2 autoscale group).

Scalability and speed are handled by some simple rules (not really specific to Play) ...

1. Everything is cached (behind Akamai), even live stuff (but just for a few seconds).
2. No request ever spawns more than one blocking IO request (mainly to our content API).
3. Keep Javascript and css as small as possible and do as much as possible after page load.
4. We do not expect total consistency (no complicated de-cache or launch rules).

Grant


--
 
 

Alex Jarvis

未読、
2012/11/28 11:33:312012/11/28
To: play-fr...@googlegroups.com
Thanks for posting this Grant, it looks awesome!

What were the reasons for splitting the different sections of the website into different apps? Was it to scale the load independently, modularise development or a mixture of both?

Cheers,
Alex
全員に返信
投稿者に返信
転送
新着メール 0 件