SlideShare a Scribd company logo
1 of 24
Download to read offline
Modern webbutveckling med Play Framework 2

Johan Andrén
johan.andren@mejsla.se
Agenda
Skalbarhet
Upp

Ut
Upp
Traditionell modell
Varje fråga tar upp en tråd

Fråga

Tråd

Logik

Fråga

Blockerad

Webbtjänst
Svar

Svar

Logik
Asynkron modell

Bara exekverande logik tar upp en tråd

Fråga

Tråd

Logik
Fråga

Ledig tid
Tråd

Svar

Webbtjänst
Svar

Logik
Gemensamt data

Förändring kräver synkronisering
Fråga 1
Fråga 2

Svar 1

Tråd 1

Svar 2

Tråd 2

Blockerade

Fråga 3

Tråd 3

Svar 3

Gemensam
resurs
Gemensamt data

Oföränderlighet - inga flaskhalsar

Fråga 1

Svar 1

Fråga 2

Svar 2

Fråga 3

Svar 3

Gemensam
resurs
Gemensamt data
Med Akka Actors

Fråga 1

Svar 1

Fråga 2

Svar 2

Ledig tid

Tråd

Fråga 3

Tråd

Gemensam
resurs

Svar 3
Ut
Traditionell modell
Stateful - kräver synkronisering

Server 1

1

Klient

12
3

Tillstånd

Lastbalanserare

Tillstånd

2

3

2
Server
Tillstånd

Server 3

Tillstånd

Tillstånd
Zero shared state
Ingenting att synkronisera

Server 1

1

Klient

12

3

Tillstånd

Lastbalanserare

2

Server 2

3

Tillstånd

Server 3
Produktivitet
”Av webbutvecklare
för webbutvecklare”
”Hit refresh workflow”
Typsäkra templates
Testverktyg inbyggda
Unittester
Direkt mot vår webbapp.
Mot webbserver
Med webbläsare
Tunna abstraktioner
Enkla flexibla verktyg

Din affärs
logik

Abstraktion

Din affärslogik
Abstraktion

Underliggande teknik

Underliggande teknik
Tunna abstraktioner
Traditionellt Java-ramverk
Tunna abstraktioner
Play

Fråga

Svar

URL-mappn

ing

Din logik
Modern webb
HTML5
JavaScript, CoffeeScript,
LessCSS
Websockets, Comet, EventSource
REST och JSON
Lätt att pröva på
En van Javautvecklare kan utan vidare
vara igång och skriva enklare
webbapplikationer på en timme eller två.

playframework.com
Summering
Modern webbutveckling med Play Framework 2
www.playframework.com

Johan Andrén
johan.andren@mejsla.se

More Related Content

Viewers also liked

Investigacion_conducta_punible_del_hurto
Investigacion_conducta_punible_del_hurtoInvestigacion_conducta_punible_del_hurto
Investigacion_conducta_punible_del_hurto
Ernesto Fernández
 
Online Dret Pac4
Online Dret Pac4Online Dret Pac4
Online Dret Pac4
ONLINEDRET
 
"Aplicaciones_en_linea"
"Aplicaciones_en_linea""Aplicaciones_en_linea"
"Aplicaciones_en_linea"
david
 
Discurso Ministro Ricardo Lewandowski
Discurso Ministro Ricardo LewandowskiDiscurso Ministro Ricardo Lewandowski
Discurso Ministro Ricardo Lewandowski
Conversa Afiada
 
Dispoditivos de processamento
Dispoditivos de processamentoDispoditivos de processamento
Dispoditivos de processamento
rofelin123
 
IRATI DESKRIBAPENA
IRATI DESKRIBAPENAIRATI DESKRIBAPENA
IRATI DESKRIBAPENA
juneerauzkin
 
VILLANCICOS EN LA BODEGA DE JOSE
VILLANCICOS EN LA BODEGA DE JOSEVILLANCICOS EN LA BODEGA DE JOSE
VILLANCICOS EN LA BODEGA DE JOSE
guest321add
 

Viewers also liked (19)

Cursoblog2012
Cursoblog2012Cursoblog2012
Cursoblog2012
 
DlFall2013
DlFall2013DlFall2013
DlFall2013
 
110918 bartimeo retiro 110918
110918 bartimeo retiro 110918110918 bartimeo retiro 110918
110918 bartimeo retiro 110918
 
Cambio climatico
Cambio climaticoCambio climatico
Cambio climatico
 
Investigacion_conducta_punible_del_hurto
Investigacion_conducta_punible_del_hurtoInvestigacion_conducta_punible_del_hurto
Investigacion_conducta_punible_del_hurto
 
Online Dret Pac4
Online Dret Pac4Online Dret Pac4
Online Dret Pac4
 
"Aplicaciones_en_linea"
"Aplicaciones_en_linea""Aplicaciones_en_linea"
"Aplicaciones_en_linea"
 
ESPIONAJE INTERIOR DEL TITANIC
ESPIONAJE INTERIOR DEL TITANICESPIONAJE INTERIOR DEL TITANIC
ESPIONAJE INTERIOR DEL TITANIC
 
Discurso Ministro Ricardo Lewandowski
Discurso Ministro Ricardo LewandowskiDiscurso Ministro Ricardo Lewandowski
Discurso Ministro Ricardo Lewandowski
 
Wisata kabupaten muna
Wisata kabupaten munaWisata kabupaten muna
Wisata kabupaten muna
 
Dispoditivos de processamento
Dispoditivos de processamentoDispoditivos de processamento
Dispoditivos de processamento
 
IRATI DESKRIBAPENA
IRATI DESKRIBAPENAIRATI DESKRIBAPENA
IRATI DESKRIBAPENA
 
Compupartes S
Compupartes SCompupartes S
Compupartes S
 
Apresentação SantaDani Social Media
Apresentação SantaDani Social MediaApresentação SantaDani Social Media
Apresentação SantaDani Social Media
 
Palestra ipa
Palestra ipaPalestra ipa
Palestra ipa
 
Brasil sem Miséria - Sexta com debate
Brasil sem Miséria - Sexta com debateBrasil sem Miséria - Sexta com debate
Brasil sem Miséria - Sexta com debate
 
VILLANCICOS EN LA BODEGA DE JOSE
VILLANCICOS EN LA BODEGA DE JOSEVILLANCICOS EN LA BODEGA DE JOSE
VILLANCICOS EN LA BODEGA DE JOSE
 
Icfes 1999 la_investigacion
Icfes 1999 la_investigacionIcfes 1999 la_investigacion
Icfes 1999 la_investigacion
 
ppowersept2016
ppowersept2016ppowersept2016
ppowersept2016
 

More from Johan Andrén

More from Johan Andrén (19)

Next generation message driven systems with Akka
Next generation message driven systems with AkkaNext generation message driven systems with Akka
Next generation message driven systems with Akka
 
Buiilding reactive distributed systems with Akka
Buiilding reactive distributed systems with AkkaBuiilding reactive distributed systems with Akka
Buiilding reactive distributed systems with Akka
 
Next generation actors with Akka
Next generation actors with AkkaNext generation actors with Akka
Next generation actors with Akka
 
Next generation message driven systems with Akka
Next generation message driven systems with AkkaNext generation message driven systems with Akka
Next generation message driven systems with Akka
 
Reactive stream processing using Akka streams
Reactive stream processing using Akka streams Reactive stream processing using Akka streams
Reactive stream processing using Akka streams
 
Networks and types - the future of Akka
Networks and types - the future of AkkaNetworks and types - the future of Akka
Networks and types - the future of Akka
 
Reactive streams processing using Akka Streams
Reactive streams processing using Akka StreamsReactive streams processing using Akka Streams
Reactive streams processing using Akka Streams
 
Building reactive distributed systems with Akka
Building reactive distributed systems with Akka Building reactive distributed systems with Akka
Building reactive distributed systems with Akka
 
Akka streams - Umeå java usergroup
Akka streams - Umeå java usergroupAkka streams - Umeå java usergroup
Akka streams - Umeå java usergroup
 
Streaming all the things with akka streams
Streaming all the things with akka streams   Streaming all the things with akka streams
Streaming all the things with akka streams
 
Asynchronous stream processing with Akka Streams
Asynchronous stream processing with Akka StreamsAsynchronous stream processing with Akka Streams
Asynchronous stream processing with Akka Streams
 
Scala usergroup stockholm - reactive integrations with akka streams
Scala usergroup stockholm - reactive integrations with akka streamsScala usergroup stockholm - reactive integrations with akka streams
Scala usergroup stockholm - reactive integrations with akka streams
 
VJUG24 - Reactive Integrations with Akka Streams
VJUG24  - Reactive Integrations with Akka StreamsVJUG24  - Reactive Integrations with Akka Streams
VJUG24 - Reactive Integrations with Akka Streams
 
Introduction to akka actors with java 8
Introduction to akka actors with java 8Introduction to akka actors with java 8
Introduction to akka actors with java 8
 
Scala frukostseminarium
Scala frukostseminariumScala frukostseminarium
Scala frukostseminarium
 
Introduction to Akka
Introduction to AkkaIntroduction to Akka
Introduction to Akka
 
Akka frukostseminarium
Akka   frukostseminariumAkka   frukostseminarium
Akka frukostseminarium
 
Introduction to Scala
Introduction to ScalaIntroduction to Scala
Introduction to Scala
 
Duchess scala-2012
Duchess scala-2012Duchess scala-2012
Duchess scala-2012
 

Mejsla Frukostseminarium Playframework 2