15.06.2013 Views

Dispensa in PDF - Dipartimento di Scienze Ambientali, Informatica e ...

Dispensa in PDF - Dipartimento di Scienze Ambientali, Informatica e ...

Dispensa in PDF - Dipartimento di Scienze Ambientali, Informatica e ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.4.2 Application server<br />

Carnielli Efrem: Programmazione a componenti<br />

Client/server <strong>in</strong> dettaglio<br />

Immag<strong>in</strong>iamo un’ applicazione <strong>di</strong>stribuita nella quale i client, per eseguire il loro<br />

compito, necessitano <strong>di</strong> <strong>in</strong>formazioni provenienti da altri client (applicazione multiuser).<br />

Questa situazione non può essere implementata nel modo rappresentato <strong>in</strong><br />

figura 2.48, <strong>in</strong> quanto i client non hanno modo <strong>di</strong> ottenere i dati dagli altri client.<br />

Client Client Client<br />

Client<br />

DB Server<br />

Figura 2.19. In questa situazione un client non può conoscere nulla <strong>di</strong> un altro client.<br />

Per risolvere il problema, tra i client e il server, si <strong>in</strong>troduce un application server<br />

(AS) che funge da erogatore <strong>di</strong> servizi (applicativi). Dal punto <strong>di</strong> vista dei client,<br />

l’AS è un server, mentre per il DB Server è un client (si veda la figura 2.16). Una<br />

macch<strong>in</strong>a come questa che si comporta da client e da server si <strong>di</strong>ce surrogato <strong>di</strong><br />

client. L’application server può essere client <strong>di</strong> più server, <strong>in</strong> questo modo può<br />

sod<strong>di</strong>sfare un client raccogliendo <strong>in</strong>formazioni da server <strong>di</strong>versi. Tale tecnologia è<br />

molto utile per la raccolta <strong>di</strong> <strong>in</strong>formazioni.<br />

Non possiamo banalizzare l’application server considerandolo un semplice<br />

processo filtro perché l’AS è sempre consapevole dei servizi che fornisce.<br />

42

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!