A method masking data failures, when a master copy of data is unavailable
comprises storing a single master copy of data and a replica copy of the
data; writing to the master using a middleware component; and reading
from either the master or the replica using the middleware component,
when the master copy is unavailable. When the master is unavailable, the
writes are stored in a table located in the middleware component as
stored write requests, in which the stored write requests comprise UDI's
to be made to the master. The reads are also performed from the table and
the replica when the master is unavailable. When the master becomes
available, the stored write requests are propagated to the master. Thus,
the middleware allows the writes to run during times when the master is
unavailable.