1 | Introduction
|
---|
2 | |
|
---|
3 | The idea of SmartFACT++ is simple. A backend (<I>smartfact</I>) updates some
|
---|
4 | data-files continously which can then be retrieved from a web-server
|
---|
5 | and the data is displayed in your browser. To keep the network traffic
|
---|
6 | low the data is not encapsulated in html, but transmitted <I>as is</I>.
|
---|
7 | A JavaScript, running client side, <I>i.e.</I> on the machine running
|
---|
8 | the browser is then creating the html around it dynamically which is then
|
---|
9 | displayed by the browser. The backend writing the data-files can be basically
|
---|
10 | everything. In case of FACT it is a program called <I>smartfact</I> which
|
---|
11 | subscribes to all dim-services in the dim-network which are needed.
|
---|
12 | Whenever a service is updated, the corresponding files are also updated.
|
---|
13 | The disadvantage is that it is difficult to mix information which is
|
---|
14 | not updated together in a single file and display it on a single page.
|
---|
15 | This, <I>e.g.</I>, means that a file which is only updated every two
|
---|
16 | hours (because new information is only available every two hours) cannot
|
---|
17 | reasonably store information which can change every minute, <I>e.g.</I>
|
---|
18 | general warnings. Every page is restricted to reload a single file, to
|
---|
19 | keep network traffic low. A simple solution would be a php which concatenates
|
---|
20 | information before the information is transfered, but this is (not yet?)
|
---|
21 | available. Consequently, all pages which are not updated frequently or
|
---|
22 | are guranteed to be updated frequently will not show fats updateing
|
---|
23 | information as warning. Some pages, <I>e.g.</I>, the main page are
|
---|
24 | updated once every seconcd or few seconds rather than updated
|
---|
25 | event-driven by the reception of a new service. These pages will then
|
---|
26 | show informations like the current warning status of the system.
|
---|
27 |
|
---|
28 | The page description is reloaded whenver a page has been clicked to
|
---|
29 | avoid a lot of network traffic at startup. The disadvantage is a little
|
---|
30 | network traffic (in the order of a few hundred bytes) whenever a page
|
---|
31 | is changed.
|
---|
32 | |
|
---|