A method uses template messages to optimize software messaging system. A
message is decomposed into a template message portion containing message
content, and a field message portion. A correlation identifier identifies
a template message and only those template messages with unique
correlation identifiers are stored or forwarded. A field message portion
includes a correlation identifier associated with a template message. A
recomposition function combines a field message portion with the
appropriate template message portion as identified in the field message
portion.