Asynchronous processing support

Most server processing is driven by client interaction. However, some tasks are best performed asynchronously; for example, maintaining copies of cached data retrieved from a slower source, updating search indexes on a regular schedule, or performing lengthy calculations. EAServer provides two vehicles to support asynchronous processing:

External processing

The EAServer component model allows you incorporate legacy business logic code into a component. However, if legacy code is unstable, it can cause the server to crash.

Stateless components of any type can run externally, with full access to server-side features such as cached connections. When you mark a component to run externally, EAServer runs it in a separate server process. You can identify which external server runs the component, and assign groups of related components to run in the same external server. EAServer starts the external server when required, and restarts the server if it stops responding.

See “Running components externally” in Chapter 4, “Defining Components,” in the EAServer Programmer’s Guide.