-неизвестно

 -Поиск по дневнику

Поиск сообщений в ATUM

 -Подписка по e-mail

 

 -Постоянные читатели

 -Статистика

Статистика LiveInternet.ru: показано количество хитов и посетителей
Создан: 17.02.2006
Записей:
Комментариев:
Написано: 1139


Distributed MVC Application model

Среда, 28 Ноября 2012 г. 17:36 + в цитатник
Distributed MVC Application model

Planet implements a distributed version of the Model-View-Controller Pattern (MVC). In this pattern, a web request starts in a Controller, which calls one more Services fetching Models (usually stored in databases), which is used by Templates (View) to render the web response.

http://www.planetframework.com/documentation/1.8/D...ributed-MVC-Application-model/


Distributed Command Pattern - an extension of command pattern for connected systems


The problem of distributed systems

While designing the architecture of connected systems, the design needs to consider how commands are executed not only in the application where it originated, but also on all other connected systems. For example, in a chat application which is connected to a chat room, if one user writes a message, the message needs to be shown on the user’s screen and also simultaneously on screens of all other users who are present on the chat room. This raises an architectural design issue where a command needs to be invoked on the originating application and necessary data be sent to the server in order to broadcast the message to all other connected users. Each connected user needs to receive the data from server, translate it, and then show it on the screen.

This situation results in extra architectural design and coding for the communication performed for each action. First of all, following the command pattern, we can only perform action on the same application, more specifically, on the same process. Then we need to prepare for a network transmission. So, there is some specific protocol developed to maintain communication with the server and the client. Both the server and the client maintain a code base to understand this protocol. When a message is received from the network, the message needs to be processed and then some specific code needs to be written in order to perform actions based on the message.

Here is a design which shows how a typical chat application is developed:


http://www.codeproject.com/Articles/9415/Distribut...Pattern-an-extension-of-comman
Метки:  

ATUM   обратиться по имени Среда, 28 Ноября 2012 г. 17:38 (ссылка)
Composite Device
Using a Distributed MVC Architecture


This thesis evaluates whether a distributed MVC architecture is a feasible way to incorporate
available computing resources in the surrounding area into a composite device for solving
specific tasks.
When a PDA uses a service from a nearby PC, e.g. using the screen of the PC, they together
form a composite device. The goal of this is primarily to overcome the physical limitations of
the PDA. The infrastructure for managing composite devices will be described and analyzed.
To put the architecture into context, a number of usage scenarios are described, tested and used
for validation.
To support the architecture, a proof of concept prototype is developed. The developed
prototype implements a distributed MVC architecture with the following key functionalities
implemented:
• Ability to dynamically switch between one service and another internally in the PC or
in a composite device composed of a PC and a PDA.
• Ability to dynamically switch between service types (between MVC trinities)
• Registration of available services
• Discovery of available services
• Infrastructure to handle creation of a composite device in the form of a MVC structure
composed of a mixture of internal and external MVC components
The view and controller services in the MVC architecture are abstractions of corresponding
visual objects, e.g. PC screen and PC keyboard, making it easy for the user to understand.
It is concluded that the distributed MVC Architecture represents an improvement of the user’s
possibilities and an improvement over standard service architecture, due to the support for
building composite devices and administrating the relations between the components in the
MVC triad.
Keywords: Pervasive computing, composite device, MVC, middleware, distributed MVC
architecture

http://www.daimi.au.dk/fileadmin/images/common/secretaries/HansenSS.pdf
Ответить С цитатой В цитатник
Ответить С цитатой В цитатник
 

Добавить комментарий:
Текст комментария: смайлики

Проверка орфографии: (найти ошибки)

Прикрепить картинку:

 Переводить URL в ссылку
 Подписаться на комментарии
 Подписать картинку