forked from danielwaterworth/Raphters
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RAPHT
53 lines (37 loc) · 1.06 KB
/
RAPHT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
RAPHT, a architectural pattern for writing applications
=======================================================
Overview
========
RAPHT was designed for the web. It is basically an extension to MVC that
provides greater security and flexibility.
Parts
=====
R - Resource
A - Action
P - Processor
H - Handler
T - Template
Resources
=========
Resources are things that you can interact with. This could be a database or an
external API for example.
Action
======
A action is a way to interact with a resource. Typically it is given
information that relates to authentication as well as information about the
request. Resources are not accessed without actions.
Processor
=========
A transformation of data.
Handler
=======
The entry point for a request. In a web application, a url regex is typically
mapped to a handler.
Template
========
Renders data.
Afterword
=========
There is a clear divide between the RA parts and the HPT parts. Whereas the HPT
parts can be executed on the untrusted client-side, the RA parts must be
executed under a trusted environment.