Skip to main content
×
×
Home
  • Print publication year: 2005
  • Online publication date: January 2010

17 - Distributed computing – the client

Summary

Introduction

Chapter 16 introduced distributed computing and enough UML to describe server-side interactions. In this chapter we describe the design of the client for a distributed scientific application in which the computationally intense calculations are performed on a remote server. Like the server, the client details necessarily depend heavily on the calculation being performed and the data that is to be presented to the user. Nevertheless we can provide some general guidelines that should apply to many scientific applications.

Multithreaded client

Recall that the server in Chapter 16 is running on a remote machine, at least conceptually, and is generating results continuously as the simulation is running. To avoid problems with intervening firewalls, we designed the server to be polled by the client rather than using a callback from the server to the client when new data is available. That is, the client must poll the server periodically to retrieve the results being calculated by the server. Assuming that the server calculation is generating results somewhat uniformly, we clearly would prefer for the client to poll the server on a regular basis. Meanwhile, once the client receives the current set of results, the client must display them to the user in some fashion and allow the user to interact with the displayed data. Whenever human users are involved, one can be assured that the user's actions will not be uniform and regular.

Recommend this book

Email your librarian or administrator to recommend adding this book to your organisation's collection.

JavaTech, an Introduction to Scientific and Technical Computing with Java
  • Online ISBN: 9780511615948
  • Book DOI: https://doi.org/10.1017/CBO9780511615948
Please enter your name
Please enter a valid email address
Who would you like to send this to *
×
Resources
Model-View-Controller, Design Patterns Catalog, Sun Microsystems, http://java.sun.com/blueprints/patterns/catalog.html
Model-View-Controller Architecture, Fundamentals of JFC/Swing, Sun short course, http://java.sun.com/developer/onlineTraining/GUI/Swing/shortcourse.html