Application Architecture

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

Application Architecture:

Reference link : https://www.youtube.com/watch?v=b5pFv9NB9fs

Architecture Diagram:

Modules: Each module’s job is to create a meaningful user experience


Code example for Registering Module

The sandbox ensures a consistent interface. Modules can rely on the methods to always be there
Sandbox Job:

 Consistency
 Security
 communication

Application Core:

The application core manages modules. That’s it.

The application core tells a module when it should initialize and when it should shutdown.

Sample code:
Register modules in the core:
Example code to register timeline, timeline-filter and status-poster modules:
Application Core Jobs:

 Manage module lifecycle


 Enable inter-module communication
 General error handling
 Be extensible

What is for Extensions?

 Error handling
 Ajax communication
 New module capabilities
 General utilities
 Anything!
Example Ajax extension jobs:

 Hide ajax communication details


 Provide common request interface
 Provide common response interface
 Manage server failures
The base library provides basic functionality

Example libraries

Basic Library Jobs:

 Browser normalization
 General-purpose utilities
o Parsers/serializers for xml, json, etc.
o Object manipulation
o DOM manipulation
o Ajax communication
 Provide low-level extensibility

You might also like