SOA Patterns | Design Patterns | State Repository


SOA Patterns > Inventory Implementation Patterns > State Repository
Home > Design Patterns > State Repository

State Repository (Erl)

How can service state data be persisted for extended periods without consuming service runtime resources?

State Repository

Problem

Large amounts of state data cached to support the activity within a running service composition can consume too much memory, especially for long-running activities, thereby decreasing scalability.

Solution

State data can be temporarily written to and then later retrieved from a dedicated state repository.

Application

A shared or dedicated repository is made available as part of the inventory or service architecture.

Impacts

The addition of required write and read functionality increases the service design complexity and can negatively affect performance.

Architecture

Inventory, Service

State Repository: By deferring state data to a state repository, the service is able to transition to a stateless condition during pauses in the activity, thereby temporarily freeing system resources.

By deferring state data to a state repository, the service is able to transition to a stateless condition during pauses in the activity, thereby temporarily freeing system resources.

Related Patterns in This Catalog

Canonical Resources, Partial State Deferral, Process Centralization, Service Grid, Stateful Services

Related Patterns in Other Catalogs

Database Session State

Related Service-Oriented Computing Goals

Increased ROI, Increased Vendor Diversification Options, Reduced IT Burden


Module 7: Advanced SOA Design & Architecture with Services & Microservices

This pattern is covered in SOACP Module 7: Advanced SOA Design & Architecture with Services & Microservices.

For more information regarding the SOA Certified Pofessional (SOACP) curriculum,
visit www.arcitura.com/soa.

SOA Design Patterns

This page contains excerpts from:

SOA Design Patterns by Thomas Erl

(ISBN: 0136135161, Hardcover, Full-Color, 400+ Illustrations, 865 pages)

For more information about this book, visit www.arcitura.com/books.