Overview of GMD


Under normal operation in SmartSockets, all messages sent through connections are delivered successfully and processed in a timely manner. If a network failure occurs, however, data can be lost. For some applications, such as bank transactions or Internet commerce, missed messages or duplicate messages are unacceptable. With GMD, an RTclient can stay informed as to whether a message was delivered to some or all subscribers. GMD fully recovers from failures and ensures that messages are transmitted as required.

There are two types of GMD:

Memory-based GMD works well for transient network problems, but it does not protect an RTclient from system crashes. Because it stores the messages only in memory, a system crash before the message is delivered can cause the message to be lost.

File-based GMD writes the messages to a file, which can be accessed for re-delivery if there is a system crash. This means file-based GMD is much more reliable, but slower than memory-based GMD. For any software product, performance is slower when data is written to disk frequently and that performance depends on the speed of your local file system. However, writing crucial information, such as a message, to disk is still the best way to ensure system reliability.

When deciding whether to use GMD, you need to decide what is most important for your system, balancing performance and reliability, and determining your tolerance for missed or duplicate messages in the event of network and system crashes.

GMD Features

GMD has these features:

How GMD Works

After you initially configure GMD for your system, certain steps occur automatically, without any intervention. Figure 10 shows the order of events:

Figure 10 Steps Involved in GMD Successful Delivery

  1. Message is saved to GMD area.
  1. Message is sent to RTserver.
  2. Message is sent to Receiver.
  3. After processing message, highest sequence number is updated.
  4. Acknowledgment message is sent to RTserver.
  5. Acknowledgment message is sent to Sender.
  6. Message is deleted from GMD area.

TIBCO SmartSockets™ Java Library User’s Guide and Tutorial
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com