Solace JavaScript API Concepts
The Solace Messaging API for JavaScript is designed with the same core concepts as other Solace Messaging APIs. It uses the same fundamental components to process messages and data and is is necessary to develop applications to send and receive messages over Solace event brokers for JavaScript applications.
This section provides an introduction to these core concepts and processing components.
Messaging Domains
The Solace JavaScript API supports both point-to-point (PTP) and publish and subscribe (Pub/Sub) messaging domains.
- point-to-point
PTP messaging is built around the concept of message queues that clients can publish messages to. Each message is addressed to a specific queue. Consuming clients can also extract messages from queues that hold messages for them.
- publish and subscribe
Pub/Sub clients address messages to some node in a content hierarchy. These nodes are defined topics. Publishers and subscribers are generally anonymous and may dynamically publish or subscribe to the content hierarchy. The Solace message bus distributes the messages published to a node to those clients that have subscribed to the same node.
The Solace JavaScript API provides many features, including:
- connection management to Solace event brokers
- addition and removal of topic-based subscriptions
- sending and receiving messages (blocking and non-blocking)
- Direct and Guaranteed message delivery modes
- structured data types that do not rely on a specific architecture or programming language
- extensive support for logging and customizing through property parameters
- request/reply messaging support
- queue browser support
- Solace Cache client API support