MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Guide de l'utilisateur Page 74

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 256
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 73
74 Building a Flex Data Services Application
Publish-subscribe messaging
Flex supports publish-subscribe messaging, also known as topic-based messaging. In Flex
Message Service, a topic is synonymous with a message service destination. In publish-
subscribe messaging, each message can have multiple consumers. You use this type of
messaging when you want more than one consumer to receive the same message. Examples of
applications that might use publish-subscribe messaging are auction sites, stock quote services,
and other applications that require one message to be sent to many subscribers.
Producers publish messages to specific topics on a message server, and consumers subscribe to
those topics to receive messages. Consumers can only consume messages that were published
to a topic after they subscribed to the topic.
The following example shows a simple publish-subscribe message flow:
Using Flex Data Services in an application
Flex provides MXML and ActionScript APIs that let you use Flex Data Services in your
applications. You can create applications that act as producers, consumers, or both. Flex Data
Services applications send messages over channels declared on the Flex server to destinations
also declared on the Flex server.
Flex Data Services uses XML configuration files to manage message topics and queues on the
server. As part of configuring messaging, you can set the maximum message size. If a message
exceeds this maximum value, multiple message batches are used, where the separate messages
are reassembled by the client. This enables asynchronous data paging across the network.
About RPC services
Flex Data Services includes a Remoting Service and a Proxy Service for configuring RPC
services. These features build on the RPC services available in the Flex 2 SDK.
Producer
Message
Topic
(destination)
Message
Subscribing
consumer
Message
Subscribing
consumer
Vue de la page 73
1 2 ... 69 70 71 72 73 74 75 76 77 78 79 ... 255 256

Commentaires sur ces manuels

Pas de commentaire