LibraryToggle FramesPrintFeedback

Message data is cached in the broker using message cursors, where a cursor instance is associated with each destination. A message cursor represents a batch of messages cached in memory. When necessary, a message cursor will retrieve persisted messages through the persistence adapter. But the key point you need to understand about message cursors is that the cursors are essentially independent of the persistence layer.

Message cursors provide a means for optimizing a persistent message store. They allow the persistent store to maintain a pointer to the next batch of messages to pull from the persistent message store. Fuse Message Broker has three types of cursors that can be used depending on the needs of your application:

  • Store-based cursors are used by default to handle persistent messages.

  • VM cursors are very fast, but cannot handle slow message consumers.

  • File-based cursors are used by default to handle non-persistent messages. They are useful when the message store is slow and message consumers are relatively fast.

Comments powered by Disqus