SlideShare a Scribd company logo
1 of 15
Frontend Architecture



Prem Gurbani
Senior Tech Lead
prem@tuenti.com
@premdg                                    #io11Mad
About Tuenti
Largest social network in Spain

Highest trafficked website in Spain

Over 10 million users

Over a 1,000 million page-views / day
What will be the Agenda for
  next 20-25 minutes?


There's so much to tell about
I can talk about our culture




               We love what we do
About our Coding Competitions
But Today We'll Get Technical

       Let's Look at
    Tuenti's Architecture
New FE Architecture & Strategy (i)
Concerns addressed: flexibility, cost,
schedule, integrability, organizational
performance
Responsibilities
  UI interaction & behavior
  Templating and UI rendering
  Client - server communication
  Interact with Backend & Domain API
  Controllers logic & produce data output
New FE Architecture & Strategy (ii)

Principle: a highly decoupled system

How? Natural separation of concerns:
  Structure (HTML)
  Style (CSS)
  Behavior & Control (JS)
  Data (JSON-RPC)
Overall Architecture
Closer look at the Server-Side FW (i)
 Server no longer generates presentation. Only data

 We have data-centric Controllers that freely interact
 between each other to provide the requested data.

 We called this design PCA: Printer-Controller-
 Abstraction
    Inspired by the architectural pattern known as PAC
    (Presentation-Abstraction-Controller)
Closer look at the Server-Side FW (ii)
Closer Look at the Client Side FW
Where everything starts: a request
Digging into JavaScript
Questions?

More Related Content

Similar to Tuenti architecture

How to Intersect Digital and Physical Product by WeWork Sr PM
How to Intersect Digital and Physical Product by WeWork Sr PMHow to Intersect Digital and Physical Product by WeWork Sr PM
How to Intersect Digital and Physical Product by WeWork Sr PMProduct School
 
IN PARTIAL FULFILLMENT OF POST GRADUATE DIPLOMA IN COMPUTER APPLICATIONS
IN PARTIAL FULFILLMENT OF  POST GRADUATE DIPLOMA IN COMPUTER APPLICATIONSIN PARTIAL FULFILLMENT OF  POST GRADUATE DIPLOMA IN COMPUTER APPLICATIONS
IN PARTIAL FULFILLMENT OF POST GRADUATE DIPLOMA IN COMPUTER APPLICATIONSssuserb054d21
 
S-Cube at City
S-Cube at CityS-Cube at City
S-Cube at Citysbbc775
 
Alfresco Day Roma 2015: Digital Renaissance
Alfresco Day Roma 2015: Digital RenaissanceAlfresco Day Roma 2015: Digital Renaissance
Alfresco Day Roma 2015: Digital RenaissanceAlfresco Software
 
Cytoscape CI Chapter 2
Cytoscape CI Chapter 2Cytoscape CI Chapter 2
Cytoscape CI Chapter 2bdemchak
 
MAKHANLAL CHATURVEDI RASHTRIYA PATRAKARITA AVAM SANCHAR VISHWAVIDYALAYA
MAKHANLAL CHATURVEDI RASHTRIYA PATRAKARITA AVAM SANCHAR VISHWAVIDYALAYAMAKHANLAL CHATURVEDI RASHTRIYA PATRAKARITA AVAM SANCHAR VISHWAVIDYALAYA
MAKHANLAL CHATURVEDI RASHTRIYA PATRAKARITA AVAM SANCHAR VISHWAVIDYALAYAssuserb054d21
 
Web 2.0, sustainability and sharing AEC data
Web 2.0, sustainability and sharing AEC dataWeb 2.0, sustainability and sharing AEC data
Web 2.0, sustainability and sharing AEC datapwcom.co.uk Ltd
 
Web 2.0 and LiveQuotes Presentation
Web 2.0 and LiveQuotes PresentationWeb 2.0 and LiveQuotes Presentation
Web 2.0 and LiveQuotes PresentationJamie Thingelstad
 
Perkembangan teknologi informasi
Perkembangan teknologi informasiPerkembangan teknologi informasi
Perkembangan teknologi informasiseolangit2
 
Leveraging The Web 2.0 Movement, Dion Hinchliffe
Leveraging The Web 2.0 Movement, Dion HinchliffeLeveraging The Web 2.0 Movement, Dion Hinchliffe
Leveraging The Web 2.0 Movement, Dion HinchliffeGiuliano Prati
 
Cavalcare l'onda del Web 2.0 - Dion Hinchcliffe
Cavalcare l'onda del Web 2.0 - Dion HinchcliffeCavalcare l'onda del Web 2.0 - Dion Hinchcliffe
Cavalcare l'onda del Web 2.0 - Dion HinchcliffeTommaso Sorchiotti
 
An Innovative Big-Data Web Scraping Tech Company
An Innovative Big-Data Web Scraping Tech CompanyAn Innovative Big-Data Web Scraping Tech Company
An Innovative Big-Data Web Scraping Tech CompanyRoger Giuffre
 
Building Construction Project Summary
Building Construction Project SummaryBuilding Construction Project Summary
Building Construction Project SummaryMichelle Madero
 
Modern front end development
Modern front end developmentModern front end development
Modern front end developmentTomislav Mesić
 
01 web 2.0 - more than a pretty face for soa
01   web 2.0 - more than a pretty face for soa01   web 2.0 - more than a pretty face for soa
01 web 2.0 - more than a pretty face for soaTechnology Transfer
 

Similar to Tuenti architecture (20)

How to Intersect Digital and Physical Product by WeWork Sr PM
How to Intersect Digital and Physical Product by WeWork Sr PMHow to Intersect Digital and Physical Product by WeWork Sr PM
How to Intersect Digital and Physical Product by WeWork Sr PM
 
IN PARTIAL FULFILLMENT OF POST GRADUATE DIPLOMA IN COMPUTER APPLICATIONS
IN PARTIAL FULFILLMENT OF  POST GRADUATE DIPLOMA IN COMPUTER APPLICATIONSIN PARTIAL FULFILLMENT OF  POST GRADUATE DIPLOMA IN COMPUTER APPLICATIONS
IN PARTIAL FULFILLMENT OF POST GRADUATE DIPLOMA IN COMPUTER APPLICATIONS
 
S-Cube at City
S-Cube at CityS-Cube at City
S-Cube at City
 
Alfresco Day Roma 2015: Digital Renaissance
Alfresco Day Roma 2015: Digital RenaissanceAlfresco Day Roma 2015: Digital Renaissance
Alfresco Day Roma 2015: Digital Renaissance
 
Israel IT Market 2007-2009
Israel IT  Market 2007-2009Israel IT  Market 2007-2009
Israel IT Market 2007-2009
 
Cytoscape CI Chapter 2
Cytoscape CI Chapter 2Cytoscape CI Chapter 2
Cytoscape CI Chapter 2
 
MAKHANLAL CHATURVEDI RASHTRIYA PATRAKARITA AVAM SANCHAR VISHWAVIDYALAYA
MAKHANLAL CHATURVEDI RASHTRIYA PATRAKARITA AVAM SANCHAR VISHWAVIDYALAYAMAKHANLAL CHATURVEDI RASHTRIYA PATRAKARITA AVAM SANCHAR VISHWAVIDYALAYA
MAKHANLAL CHATURVEDI RASHTRIYA PATRAKARITA AVAM SANCHAR VISHWAVIDYALAYA
 
Web 2.0, sustainability and sharing AEC data
Web 2.0, sustainability and sharing AEC dataWeb 2.0, sustainability and sharing AEC data
Web 2.0, sustainability and sharing AEC data
 
Web 2.0 and LiveQuotes Presentation
Web 2.0 and LiveQuotes PresentationWeb 2.0 and LiveQuotes Presentation
Web 2.0 and LiveQuotes Presentation
 
Perkembangan teknologi informasi
Perkembangan teknologi informasiPerkembangan teknologi informasi
Perkembangan teknologi informasi
 
Leveraging The Web 2.0 Movement, Dion Hinchliffe
Leveraging The Web 2.0 Movement, Dion HinchliffeLeveraging The Web 2.0 Movement, Dion Hinchliffe
Leveraging The Web 2.0 Movement, Dion Hinchliffe
 
Cavalcare l'onda del Web 2.0 - Dion Hinchcliffe
Cavalcare l'onda del Web 2.0 - Dion HinchcliffeCavalcare l'onda del Web 2.0 - Dion Hinchcliffe
Cavalcare l'onda del Web 2.0 - Dion Hinchcliffe
 
OEM to ISF Transformation (Final)
OEM to ISF Transformation (Final)OEM to ISF Transformation (Final)
OEM to ISF Transformation (Final)
 
An Innovative Big-Data Web Scraping Tech Company
An Innovative Big-Data Web Scraping Tech CompanyAn Innovative Big-Data Web Scraping Tech Company
An Innovative Big-Data Web Scraping Tech Company
 
Building Construction Project Summary
Building Construction Project SummaryBuilding Construction Project Summary
Building Construction Project Summary
 
L12 Digital Transformation
L12 Digital TransformationL12 Digital Transformation
L12 Digital Transformation
 
Internet of Things and Big Data
Internet of Things and Big DataInternet of Things and Big Data
Internet of Things and Big Data
 
ProjeX
ProjeXProjeX
ProjeX
 
Modern front end development
Modern front end developmentModern front end development
Modern front end development
 
01 web 2.0 - more than a pretty face for soa
01   web 2.0 - more than a pretty face for soa01   web 2.0 - more than a pretty face for soa
01 web 2.0 - more than a pretty face for soa
 

Tuenti architecture

  • 1. Frontend Architecture Prem Gurbani Senior Tech Lead prem@tuenti.com @premdg #io11Mad
  • 2. About Tuenti Largest social network in Spain Highest trafficked website in Spain Over 10 million users Over a 1,000 million page-views / day
  • 3. What will be the Agenda for next 20-25 minutes? There's so much to tell about
  • 4. I can talk about our culture We love what we do
  • 5. About our Coding Competitions
  • 6. But Today We'll Get Technical Let's Look at Tuenti's Architecture
  • 7. New FE Architecture & Strategy (i) Concerns addressed: flexibility, cost, schedule, integrability, organizational performance Responsibilities UI interaction & behavior Templating and UI rendering Client - server communication Interact with Backend & Domain API Controllers logic & produce data output
  • 8. New FE Architecture & Strategy (ii) Principle: a highly decoupled system How? Natural separation of concerns: Structure (HTML) Style (CSS) Behavior & Control (JS) Data (JSON-RPC)
  • 10. Closer look at the Server-Side FW (i) Server no longer generates presentation. Only data We have data-centric Controllers that freely interact between each other to provide the requested data. We called this design PCA: Printer-Controller- Abstraction Inspired by the architectural pattern known as PAC (Presentation-Abstraction-Controller)
  • 11. Closer look at the Server-Side FW (ii)
  • 12. Closer Look at the Client Side FW